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 485 remaining solutions by signing in and submitting your own entry
#486 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

486 active golfers, 2565 entries

Leaderboard (lowest score wins):
21
#91 - Arno / @arnoxmp

05/09/2019 at 08:40AM

21
#92 - Nolen Royalty / @NolenRoyalty

05/14/2019 at 01:04AM

21
#93 - heppen / @heppen_He

05/14/2019 at 12:34PM

21
#94 - Seunghun Lee / @earlbread

05/25/2019 at 05:12PM

21
#95 - aggums / @touhoueurobeat

05/25/2019 at 08:20PM

21
#96 - James Whitlock / @Keitarusm

06/06/2019 at 08:08PM

21
#97 - overlookedhashmap / @overlookedhash1

06/07/2019 at 05:12PM

22
#98 - Jon Krause / @jkrause314

11/16/2018 at 02:06AM

22
#99 - Daniel Hjelm / @dhjelm

11/19/2018 at 06:39PM

22
#100 - A / @777Android777

11/20/2018 at 04:34AM

22
#101 - Tänka tanken / @Tevippen

11/22/2018 at 01:21AM

22
#102 - io / @iovis9

11/22/2018 at 12:07PM

22
#103 - Johannes Noe / @videjonoe

11/23/2018 at 08:49AM

22
#104 - name / @name65894813

11/26/2018 at 03:42PM

22
#105 - unclewangshushu / @shuwushu

11/28/2018 at 08:14PM

22
#106 - 土豆 / @hujianxincn

12/09/2018 at 02:13AM

22
#107 - Quark / @PuzzleQuark

12/11/2018 at 07:23PM

22
#108 - Greg Anders / @gregory_anders

12/30/2018 at 04:53PM

22
#109 - Nate / @natedoran

12/31/2018 at 11:01PM

22
#110 - zh0ng / @zh00ng

03/06/2019 at 07:05AM

22
#111 - Brad Daniels / @JBradDaniels

03/27/2019 at 05:11AM

22
#112 - Rob Pilling / @bobrippling

04/15/2019 at 10:02AM

22
#113 - Michał Łowicki / @mlowicki

04/16/2019 at 04:49PM

22
#114 - Chris Robson / @cjrobson5

04/17/2019 at 09:30AM

22
#115 - Norbert / @mullno

04/18/2019 at 05:49PM

22
#116 - Olle NoRdesjö / @Rasinj

04/20/2019 at 10:59PM

22
#117 - Tomasz Pędzimąż / @YATomasz

06/07/2019 at 04:09PM

23
#118 - Maxim Kim / @mxmkm

11/15/2018 at 08:12AM

23
#119 - Kai Yuan / @kentyuan

11/15/2018 at 04:13PM

23
#120 - owen s vallis / @OwenVallis

11/17/2018 at 07:18AM