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

486 active golfers, 2565 entries

Leaderboard (lowest score wins):
24
#151 - Bob_V / @Bob_V

11/23/2018 at 09:37PM

24
#152 - Yuriy / @skriyka

11/24/2018 at 02:53PM

24
#153 - Jonathan Stinson / @KnightdeadJohn

11/25/2018 at 03:18PM

24
#154 - Ruslan / @versicode

11/25/2018 at 06:29PM

24
#155 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 01:46AM

24
#156 - longB / @longB77353628

03/21/2019 at 02:47PM

24
#157 - Malo Bourgon / @m_bourgon

04/11/2019 at 06:52PM

24
#158 - Correct Battery Horse / @horse_battery

04/16/2019 at 08:32PM

25
#159 - Sören Schellhoff / @Jackokomm

11/15/2018 at 03:58PM

25
#160 - Kritixi Lithos / @kritixilithos

11/15/2018 at 06:06PM

25
#161 - PRK / @NoMoTo

11/16/2018 at 12:52AM

25
#162 - succcubbus / @succcubbus

11/20/2018 at 09:52PM

25
#163 - Grorco / @grorco

01/07/2019 at 03:04PM

25
#164 - John Smith / @JohnSmi14480159

01/09/2019 at 06:34AM

25
#165 - Christopher Weyand / @swordman378

02/08/2019 at 02:54PM

25
#166 - BareTull / @BareTull3

02/22/2019 at 12:49AM

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

11/16/2018 at 06:12PM

26
#168 - churaki / @churaki

01/24/2019 at 01:26PM

26
#169 - ktbffh / @ktbffh73607665

03/19/2019 at 05:14PM

26
#170 - Daren Hayward / @DarenHayward

04/18/2019 at 09:03PM

26
#171 - Quinn Collins / @Quinn00239061

05/06/2019 at 07:35PM

27
#172 - Ben Weinstein-Raun / @benwr

04/10/2019 at 09:40PM

27
#173 - Tucker Hayden / @TuckNRollio

04/17/2019 at 09:46PM

27
#174 - Just...That / @I_am_JustThat

06/05/2019 at 12:41PM

28
#175 - 永森 / @nagakei05

11/15/2018 at 11:35AM

28
#176 - tnagai / @tnagai

04/25/2019 at 01:44AM

28
#177 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 12:27PM

29
#178 - Alex Fall / @alexandfall

12/03/2018 at 12:02AM

30
#179 - luzzyzhang / @luzzyzhang

11/16/2018 at 05:03PM

30
#180 - Seòras / @Komos90

11/26/2018 at 11:38PM