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 5bed1691139d1c000cb0565d

simple format

make it look better.

Start file
one:1
two:2
three:3
four:4
five:5
six:6
seven:7
eight:8
nine:9
ten:10
End file
  "one":1
  "two":2
"three":3
 "four":4
 "five":5
  "six":6
"seven":7
"eight":8
 "nine":9
  "ten":10

View Diff

1,10c1,10
< one:1
< two:2
< three:3
< four:4
< five:5
< six:6
< seven:7
< eight:8
< nine:9
< ten:10
---
>   "one":1
>   "two":2
> "three":3
>  "four":4
>  "five":5
>   "six":6
> "seven":7
> "eight":8
>  "nine":9
>   "ten":10

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 291 remaining solutions by signing in and submitting your own entry
#292 Alex Standke / @xanderstrike - Score: 317 - 12/29/18 @ 00:30
:<BS>:%s/-w<BS><BS>\w*:\d*<Left><Left><Left><Left><Left><Left><Left>\(<Right><Right><Right>)<Right><Right><Left>(<End>)/:<BS>"\1":\2/g<CR>:<BS>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\<Right><Right><Right><Right><Right><Right><CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS>.<CR>:<CR><Up><Up>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\<CR>:<Esc>/\w.<BS>*<BS>:<Left>*<Right><Right>\d?<BS>&<BS>*<Left><Left><Left><Left><Left><Left><Left>\(<Right><Right>\)<Right><Right><Left><BS><Left><Left>*<End><Left><Left><Left>\(<End>)<BS>\)<Home><BS>:<BS><C-C>%:%s/\(\w*\):\(\d*\)/\1 \2<CR>u:<Up><Left><Left><Left><Left><Left>"<Right><Right>":<Del><Right><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><Right><Right><Right><Left>:<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Del><CR>  <Esc><Esc><Esc>kkkkkkkkkkkkhhi  <Esc>jh.jhj.xjhhi <Esc>ji  <Esc>jjjhi <Esc>ji  <BS><BS>  <Esc>:wq<CR>

0 comments


Created by: @zacoxi

292 active golfers, 1451 entries

Leaderboard (lowest score wins):
38
#151 - Performa / @performa6400

11/27/2018 at 04:24PM

38
#152 - Théo / @Theodnls

12/16/2018 at 05:22PM

38
#153 - Wayne Franklin / @waf1waf

12/24/2018 at 07:30PM

38
#154 - MrSunshineBug / @MrSunshineBug

12/29/2018 at 11:36AM

38
#155 - Daniel K. / @lan4k

12/29/2018 at 02:28PM

38
#156 - Phil Devitt / @GeneralHav0k

12/31/2018 at 09:30PM

38
#157 - JBL / @jbl428

02/06/2019 at 01:42PM

39
#158 - Tact Overflow / @muppling

11/22/2018 at 02:20PM

39
#159 - Puj / @MrPuj

11/25/2018 at 11:43PM

39
#160 - Korgan / @Korgan36725554

11/29/2018 at 04:02AM

39
#161 - Mike / @xxxx457656455xx

12/13/2018 at 03:51AM

39
#162 - Yogesh Lonkar / @yogeshlor

12/19/2018 at 11:42AM

39
#163 - Noah Moss / @noahbmoss

12/26/2018 at 03:52AM

39
#164 - Josep #Dempeus / @jm_s_p

12/27/2018 at 06:21PM

39
#165 - Rasmus P / @rasmup

12/29/2018 at 04:01PM

39
#166 - Tim White / @antichrist65535

01/26/2019 at 08:53PM

40
#167 - Miki Tebeka / @tebeka

11/19/2018 at 10:27AM

40
#168 - Paul Weaver / @UKWeaver

11/21/2018 at 07:03PM

40
#169 - MuadDev / @MuadDev

01/18/2019 at 08:28AM

40
#170 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:51PM

41
#171 - faisal / @faisalhackshah

11/25/2018 at 12:51AM

41
#172 - Why Am / @WhysDeCatOnFire

12/01/2018 at 02:02AM

41
#173 - Slawek Ligus / @ooz_ie

01/08/2019 at 06:28PM

41
#174 - Carl Blomqvist / @calleblomqvist

02/18/2019 at 05:50PM

42
#175 - Adam Procio / @AdamProcio

12/10/2018 at 01:32AM

42
#176 - Richard Knight / @thisistherk

01/05/2019 at 08:05PM

42
#177 - bajidu / @bajidu

01/24/2019 at 10:40PM

42
#178 - Ng Sek Long / @NgSekLong

02/14/2019 at 06:50AM

43
#179 - Matze / @ebaharilikult

11/19/2018 at 08:50AM

43
#180 - phoibos92@gmail.com / @phoibos92

11/19/2018 at 04:51PM