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

386 active golfers, 1989 entries

Leaderboard (lowest score wins):
25
#121 - Sören Schellhoff / @Jackokomm

11/15/2018 at 03:58PM

25
#122 - Kritixi Lithos / @kritixilithos

11/15/2018 at 06:06PM

25
#123 - PRK / @NoMoTo

11/16/2018 at 12:52AM

25
#124 - succcubbus / @succcubbus

11/20/2018 at 09:52PM

25
#125 - Grorco / @grorco

01/07/2019 at 03:04PM

25
#126 - John Smith / @JohnSmi14480159

01/09/2019 at 06:34AM

25
#127 - Christopher Weyand / @swordman378

02/08/2019 at 02:54PM

25
#128 - BareTull / @BareTull3

02/22/2019 at 12:49AM

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

11/16/2018 at 06:12PM

26
#130 - churaki / @churaki

01/24/2019 at 01:26PM

26
#131 - ktbffh / @ktbffh73607665

03/19/2019 at 05:14PM

27
#132 - Ben Weinstein-Raun / @benwr

04/10/2019 at 09:40PM

27
#133 - Tucker Hayden / @TuckNRollio

04/17/2019 at 09:46PM

28
#134 - 永森 / @nagakei05

11/15/2018 at 11:35AM

29
#135 - Alex Fall / @alexandfall

12/03/2018 at 12:02AM

30
#136 - luzzyzhang / @luzzyzhang

11/16/2018 at 05:03PM

30
#137 - Seòras / @Komos90

11/26/2018 at 11:38PM

30
#138 - daniel / @daniel31464605

12/28/2018 at 06:48AM

30
#139 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 10:37PM

30
#140 - andrwyoung / @andrwyoung1

03/01/2019 at 06:02PM

30
#141 - Robert Orr / @orrrobert

03/08/2019 at 04:56AM

30
#142 - Duke Du / @DukeDu2

03/20/2019 at 02:52AM

31
#143 - drswaghawk / @drswaghawk

01/04/2019 at 07:05PM

31
#144 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:07AM

32
#145 - TimMcGuire / @mcguire

12/23/2018 at 07:34PM

32
#146 - Walker Boh / @walker_boh

12/28/2018 at 05:42PM

32
#147 - Andrew Halberstadt / @halbersa

01/26/2019 at 06:22PM

32
#148 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:50PM

32
#149 - scottarver / @scottarver

03/02/2019 at 05:11AM

32
#150 - Skywalker 666 / @MemeMasterXXI

03/31/2019 at 09:20PM