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

396 active golfers, 2032 entries

Leaderboard (lowest score wins):
21
#61 - T A / @SirAviles

02/09/2019 at 09:51AM

21
#62 - sjcomp / @sjcomp

02/19/2019 at 08:43PM

21
#63 - ahm4711 / @ahm4711

03/01/2019 at 10:10PM

21
#64 - enji / @enji_ja

03/15/2019 at 04:56PM

21
#65 - Parsa Amini / @ParsaAmini

03/19/2019 at 05:23AM

21
#66 - Sam Kim / @samkimhis

03/20/2019 at 04:20PM

21
#67 - adir ohayon / @AdirKip

03/21/2019 at 12:49AM

21
#68 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 02:26AM

21
#69 - Maximilian F. / @TheMaex

03/30/2019 at 01:28AM

22
#70 - Jon Krause / @jkrause314

11/16/2018 at 02:06AM

22
#71 - Daniel Hjelm / @dhjelm

11/19/2018 at 06:39PM

22
#72 - A / @777Android777

11/20/2018 at 04:34AM

22
#73 - Tänka tanken / @Tevippen

11/22/2018 at 01:21AM

22
#74 - io / @iovis9

11/22/2018 at 12:07PM

22
#75 - Johannes Noe / @videjonoe

11/23/2018 at 08:49AM

22
#76 - name / @name65894813

11/26/2018 at 03:42PM

22
#77 - unclewangshushu / @shuwushu

11/28/2018 at 08:14PM

22
#78 - 土豆 / @hujianxincn

12/09/2018 at 02:13AM

22
#79 - Quark / @PuzzleQuark

12/11/2018 at 07:23PM

22
#80 - Greg Anders / @gregory_anders

12/30/2018 at 04:53PM

22
#81 - Nate / @natedoran

12/31/2018 at 11:01PM

22
#82 - zh0ng / @zh00ng

03/06/2019 at 07:05AM

22
#83 - Brad Daniels / @JBradDaniels

03/27/2019 at 05:11AM

22
#84 - Rob Pilling / @bobrippling

04/15/2019 at 10:02AM

22
#85 - Michał Łowicki / @mlowicki

04/16/2019 at 04:49PM

22
#86 - Chris Robson / @cjrobson5

04/17/2019 at 09:30AM

22
#87 - Norbert / @mullno

04/18/2019 at 05:49PM

22
#88 - Olle NoRdesjö / @Rasinj

04/20/2019 at 10:59PM

23
#89 - Maxim Kim / @mxmkm

11/15/2018 at 08:12AM

23
#90 - Kai Yuan / @kentyuan

11/15/2018 at 04:13PM