Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 9v006283b31d00000000021d

delete swap

delete all swap

Start file
1
2
3
4
5
6
7
End file
1234567

View Diff

1,7c1
< 1
< 2
< 3
< 4
< 5
< 6
< 7
---
> 1234567

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 556 remaining solutions by signing in and submitting your own entry
#557 WangPei / @WangPei-hitman - Score: 112 - 07/02/24 @ 13:22
:s/\r/g<Left><Left><Left><Left><Left><Left>%<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><CR><0xef><0xbc><0x9a>j:s<BS>$<BS>%s/r<BS>\r\n//<CR><Up><Up>:<Up><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>JjJJJJkJhhxlxlxlxlxlxl:wq<CR>

0 comments


Created by: @vanniuner

557 active golfers, 1788 entries

Leaderboard (lowest score wins):
5
#1 - Gen / @gen_f_74

05/17/2022 at 11:33PM

5
#2 - Jon Krause / @jkrause314

05/18/2022 at 01:29AM

5
#3 - x03n046 / @x03n046

05/18/2022 at 05:02AM

5
#4 - Regan Tackett / @arrowtackett

05/18/2022 at 05:22AM

5
#5 - Saki Gw / @Sakigw

05/18/2022 at 07:22AM

5
#6 - russellzhaomao / @russellzhaomao

05/18/2022 at 08:21AM

5
#7 - Jean George / @JeanGeo20504212

05/18/2022 at 09:33AM

5
#8 - "Smylers" / @Smylers2

05/18/2022 at 11:46AM

5
#9 - sdfghjk / @sdfghjk88424595

05/18/2022 at 09:26PM

5
#10 - Enrique Santana / @esantanaya

05/19/2022 at 12:30AM

5
#11 - Dan / @dstein64

05/19/2022 at 02:51AM

5
#12 - onedayrex / @onedayrex

05/19/2022 at 07:30AM

5
#13 - quemeraisc / @quemeraisc

05/19/2022 at 09:56AM

5
#14 - Bart / @oneofmanybarts

05/19/2022 at 01:08PM

5
#15 - John Braxler / @braxler

05/19/2022 at 04:36PM

5
#16 - Pablo Cárdenas / @pablo_cardenasb

05/20/2022 at 04:22AM

5
#17 - Ron / @ronnie9ball

05/20/2022 at 05:03AM

5
#18 - Jakub Parapura / @JakubParapura

05/20/2022 at 03:19PM

5
#19 - Eduardo / @earada

05/20/2022 at 04:09PM

5
#20 - Daniel Qu / @danielq9871

05/20/2022 at 05:40PM

5
#21 - jcbglbmn / @JacobGelbman

05/20/2022 at 06:08PM

5
#22 - Robberechts Arne / @ArneRobberechts

05/21/2022 at 11:47AM

5
#23 - Alex / @AlexanderHeatl2

05/21/2022 at 08:36PM

5
#24 - Irakli Chigvaria / @tchigvaria

05/22/2022 at 05:57AM

5
#25 - steve / @steve35773420

05/22/2022 at 08:30PM

5
#26 - P37vo4WS / @p37vo4

05/23/2022 at 01:27PM

5
#27 - Levi Wheeler / @LeviWhe68726437

05/23/2022 at 09:07PM

5
#28 - 余超 / @SpicyChicken_yc

05/24/2022 at 02:58AM

5
#29 - Xiaohuan Ye / @ikmijkk7

05/24/2022 at 06:10AM

5
#30 - andro wei / @androwei1

05/24/2022 at 03:04PM