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

496 active golfers, 2607 entries

Leaderboard (lowest score wins):
116
#481 - David McDonald / @dmcdona

05/15/2019 at 05:50PM

117
#482 - Kevin Varela / @morokei_v92

12/06/2018 at 11:49PM

118
#483 - maojun / @imaojun

12/25/2018 at 06:36AM

118
#484 - whj / @whj768702

05/22/2019 at 11:43AM

119
#485 - LucaSimplon / @LucaSimplon

11/15/2018 at 11:04PM

123
#486 - Anar Enhsaihan / @nomadic_coder

12/21/2018 at 07:24PM

123
#487 - 강현 / @Applesquiz

01/20/2019 at 01:31PM

126
#488 - david@@@@wang / @davidwa86717152

11/16/2018 at 08:59AM

128
#489 - Vivek Rai / @raivivek_

12/20/2018 at 05:19PM

129
#490 - lee james / @leejame40959199

12/08/2018 at 05:25PM

132
#491 - Andy Falcon-Gonzalez / @Andyfg29

05/20/2019 at 05:27AM

162
#492 - Eilon Nahari / @EilonNahari

01/04/2019 at 11:57AM

163
#493 - gurjit singh / @sgurjit

04/06/2019 at 06:11AM

177
#494 - Thilo Rörig / @scholith

02/21/2019 at 09:42PM

225
#495 - aced cibi / @acedcibi

11/28/2018 at 04:48AM

317
#496 - Alex Standke / @xanderstrike

12/29/2018 at 12:30AM