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

498 active golfers, 2612 entries

Leaderboard (lowest score wins):
29
#181 - Alex Fall / @alexandfall

12/03/2018 at 12:02AM

30
#182 - luzzyzhang / @luzzyzhang

11/16/2018 at 05:03PM

30
#183 - Seòras / @Komos90

11/26/2018 at 11:38PM

30
#184 - daniel / @daniel31464605

12/28/2018 at 06:48AM

30
#185 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 10:37PM

30
#186 - andrwyoung / @andrwyoung1

03/01/2019 at 06:02PM

30
#187 - Robert Orr / @orrrobert

03/08/2019 at 04:56AM

30
#188 - Duke Du / @DukeDu2

03/20/2019 at 02:52AM

30
#189 - TimMcGuire / @mcguire

05/06/2019 at 05:04PM

30
#190 - soundscope / @__soundscope__

06/25/2019 at 01:12PM

31
#191 - drswaghawk / @drswaghawk

01/04/2019 at 07:05PM

31
#192 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:07AM

31
#193 - Grant / @grant_7788

04/25/2019 at 07:58AM

31
#194 - shaz / @shaz30307204

05/23/2019 at 09:41AM

31
#195 - version 34.053a / @Age_of_machines

05/29/2019 at 03:24PM

31
#196 - Matt Burg / @matsbleurgh

06/21/2019 at 09:11PM

32
#197 - Walker Boh / @walker_boh

12/28/2018 at 05:42PM

32
#198 - Andrew Halberstadt / @halbersa

01/26/2019 at 06:22PM

32
#199 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:50PM

32
#200 - scottarver / @scottarver

03/02/2019 at 05:11AM

32
#201 - Skywalker 666 / @MemeMasterXXI

03/31/2019 at 09:20PM

32
#202 - Paweł Styczewski / @kryspuss

04/12/2019 at 09:02AM

32
#203 - 이종혁 / @BluePaisa

04/17/2019 at 07:20AM

33
#204 - Steve Bitner / @fourbitbots

11/18/2018 at 02:29AM

33
#205 - Tomoya Ishihama / @ishmt

11/19/2018 at 09:43AM

33
#206 - Egor Fedkin / @Jet_Flynn

11/28/2018 at 06:52PM

33
#207 - Arkadiusz Gabryś / @ArkadiuszGabrys

12/21/2018 at 06:06PM

33
#208 - Bobby Tables / @BobbyTables12

01/08/2019 at 07:14PM

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

01/14/2019 at 03:29AM

33
#210 - Brandon Pfeifer / @BrandonPfeifer6

04/05/2019 at 07:05PM