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):
25
#91 - Kritixi Lithos / @kritixilithos

11/15/2018 at 06:06PM

25
#92 - PRK / @NoMoTo

11/16/2018 at 12:52AM

25
#93 - succcubbus / @succcubbus

11/20/2018 at 09:52PM

25
#94 - Grorco / @grorco

01/07/2019 at 03:04PM

25
#95 - John Smith / @JohnSmi14480159

01/09/2019 at 06:34AM

25
#96 - Christopher Weyand / @swordman378

02/08/2019 at 02:54PM

25
#97 - BareTull / @BareTull3

02/22/2019 at 12:49AM

26
#98 - steve N ӾlvЮ / @xlvio

11/16/2018 at 06:12PM

26
#99 - churaki / @churaki

01/24/2019 at 01:26PM

28
#100 - 永森 / @nagakei05

11/15/2018 at 11:35AM

29
#101 - Alex Fall / @alexandfall

12/03/2018 at 12:02AM

30
#102 - luzzyzhang / @luzzyzhang

11/16/2018 at 05:03PM

30
#103 - Seòras / @Komos90

11/26/2018 at 11:38PM

30
#104 - daniel / @daniel31464605

12/28/2018 at 06:48AM

30
#105 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 10:37PM

31
#106 - drswaghawk / @drswaghawk

01/04/2019 at 07:05PM

32
#107 - TimMcGuire / @mcguire

12/23/2018 at 07:34PM

32
#108 - Walker Boh / @walker_boh

12/28/2018 at 05:42PM

32
#109 - Andrew Halberstadt / @halbersa

01/26/2019 at 06:22PM

32
#110 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:50PM

33
#111 - Steve Bitner / @fourbitbots

11/18/2018 at 02:29AM

33
#112 - Tomoya Ishihama / @ishmt

11/19/2018 at 09:43AM

33
#113 - Egor Fedkin / @Jet_Flynn

11/28/2018 at 06:52PM

33
#114 - Arkadiusz Gabryś / @ArkadiuszGabrys

12/21/2018 at 06:06PM

33
#115 - Bobby Tables / @BobbyTables12

01/08/2019 at 07:14PM

33
#116 - Yes,THAT John McAvoy / @aboy_John

01/14/2019 at 03:29AM

34
#117 - PJ Frazer / @pj_frazer

11/22/2018 at 02:22AM

34
#118 - robinro / @robinro

11/22/2018 at 06:55PM

34
#119 - Omar / @ombako

12/03/2018 at 09:10AM

34
#120 - Paulo H Baumann / @PauloBaumann

12/05/2018 at 05:37PM