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

572 active golfers, 3067 entries

Leaderboard (lowest score wins):
21
#121 - Joel Elkins / @dice_tea

08/01/2019 at 11:40PM

21
#122 - Bradley M. Small / @BradleySmall

08/02/2019 at 02:45AM

21
#123 - りんご / @ringo9971

08/06/2019 at 07:41AM

21
#124 - André Reigoto / @AndreReigoto

08/08/2019 at 04:33PM

21
#125 - kokiteru / @hommakoki

08/09/2019 at 04:05AM

21
#126 - Chester Yap / @Chest_ErYap

08/10/2019 at 03:02AM

22
#127 - Jon Krause / @jkrause314

11/16/2018 at 02:06AM

22
#128 - Daniel Hjelm / @dhjelm

11/19/2018 at 06:39PM

22
#129 - A / @777Android777

11/20/2018 at 04:34AM

22
#130 - Tänka tanken / @Tevippen

11/22/2018 at 01:21AM

22
#131 - io / @iovis9

11/22/2018 at 12:07PM

22
#132 - Johannes Noe / @videjonoe

11/23/2018 at 08:49AM

22
#133 - name / @name65894813

11/26/2018 at 03:42PM

22
#134 - unclewangshushu / @shuwushu

11/28/2018 at 08:14PM

22
#135 - 土豆 / @hujianxincn

12/09/2018 at 02:13AM

22
#136 - Quark / @PuzzleQuark

12/11/2018 at 07:23PM

22
#137 - Greg Anders / @gregory_anders

12/30/2018 at 04:53PM

22
#138 - Nate / @natedoran

12/31/2018 at 11:01PM

22
#139 - zh0ng / @zh00ng

03/06/2019 at 07:05AM

22
#140 - Brad Daniels / @JBradDaniels

03/27/2019 at 05:11AM

22
#141 - Rob Pilling / @bobrippling

04/15/2019 at 10:02AM

22
#142 - Michał Łowicki / @mlowicki

04/16/2019 at 04:49PM

22
#143 - Chris Robson / @cjrobson5

04/17/2019 at 09:30AM

22
#144 - Norbert / @mullno

04/18/2019 at 05:49PM

22
#145 - Olle NoRdesjö / @Rasinj

04/20/2019 at 10:59PM

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

06/07/2019 at 04:09PM

22
#147 - Scott Schlesier / @sschlesier

07/21/2019 at 04:44PM

23
#148 - Maxim Kim / @mxmkm

11/15/2018 at 08:12AM

23
#149 - Kai Yuan / @kentyuan

11/15/2018 at 04:13PM

23
#150 - owen s vallis / @OwenVallis

11/17/2018 at 07:18AM