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):
22
#61 - Nate / @natedoran

12/31/2018 at 11:01PM

23
#62 - Maxim Kim / @mxmkm

11/15/2018 at 08:12AM

23
#63 - Kai Yuan / @kentyuan

11/15/2018 at 04:13PM

23
#64 - owen s vallis / @OwenVallis

11/17/2018 at 07:18AM

23
#65 - tPenguinLTG / @tpenguinltg

11/18/2018 at 05:10PM

23
#66 - zealotrush / @zealotrush

11/19/2018 at 05:34AM

23
#67 - Timothy Michael Fox / @Timothy_M_Fox

11/20/2018 at 09:35PM

23
#68 - CptBong / @cpt1bong

11/21/2018 at 09:53AM

23
#69 - samsuma000 / @samsuma000

11/22/2018 at 03:32PM

23
#70 - Michael Rose / @mdroseDev

11/23/2018 at 06:28AM

23
#71 - Gustavo Adolfo Mejía / @im_tavo

11/24/2018 at 04:54AM

23
#72 - Rebin Silva / @RebinSilva

11/27/2018 at 05:14PM

23
#73 - thvdburgt / @thvdburgt

11/28/2018 at 04:15PM

23
#74 - fucus / @fishlovebanana

12/08/2018 at 10:08AM

23
#75 - sjyu / @sjyu12

12/09/2018 at 12:24PM

23
#76 - zaperrer / @zaperrer

12/11/2018 at 09:52PM

23
#77 - aka / @aaik4

12/23/2018 at 01:34AM

23
#78 - Sebastien Nicoud / @sebnukem

12/23/2018 at 02:15AM

23
#79 - wes / @_weslly

12/30/2018 at 06:39AM

23
#80 - PuppySaturation / @PuppySaturation

12/30/2018 at 10:57AM

23
#81 - Marcos Moritz / @marcosmoritz

01/07/2019 at 08:50AM

23
#82 - Daniel Steinberg / @dstein64

01/28/2019 at 03:27AM

23
#83 - r / @revanthedarth

02/09/2019 at 02:44AM

24
#84 - Andreas Nordahl / @andreasnordahl

11/18/2018 at 09:40AM

24
#85 - Bob_V / @Bob_V

11/23/2018 at 09:37PM

24
#86 - Yuriy / @skriyka

11/24/2018 at 02:53PM

24
#87 - Jonathan Stinson / @KnightdeadJohn

11/25/2018 at 03:18PM

24
#88 - Ruslan / @versicode

11/25/2018 at 06:29PM

24
#89 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 01:46AM

25
#90 - Sören Schellhoff / @Jackokomm

11/15/2018 at 03:58PM