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):
23
#91 - CptBong / @cpt1bong

11/21/2018 at 09:53AM

23
#92 - samsuma000 / @samsuma000

11/22/2018 at 03:32PM

23
#93 - Michael Rose / @mdroseDev

11/23/2018 at 06:28AM

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

11/24/2018 at 04:54AM

23
#95 - Rebin Silva / @RebinSilva

11/27/2018 at 05:14PM

23
#96 - thvdburgt / @thvdburgt

11/28/2018 at 04:15PM

23
#97 - fucus / @fishlovebanana

12/08/2018 at 10:08AM

23
#98 - sjyu / @sjyu12

12/09/2018 at 12:24PM

23
#99 - zaperrer / @zaperrer

12/11/2018 at 09:52PM

23
#100 - aka / @aaik4

12/23/2018 at 01:34AM

23
#101 - Sebastien Nicoud / @sebnukem

12/23/2018 at 02:15AM

23
#102 - wes / @_weslly

12/30/2018 at 06:39AM

23
#103 - PuppySaturation / @PuppySaturation

12/30/2018 at 10:57AM

23
#104 - Marcos Moritz / @marcosmoritz

01/07/2019 at 08:50AM

23
#105 - Daniel Steinberg / @dstein64

01/28/2019 at 03:27AM

23
#106 - r / @revanthedarth

02/09/2019 at 02:44AM

23
#107 - hn9u / @hn9u

02/28/2019 at 12:27PM

23
#108 - LUTZ Jean / @Croustibot

02/28/2019 at 01:00PM

23
#109 - Matthew Barry / @komputerwiz

03/02/2019 at 05:24AM

23
#110 - Jonathan / @jreyes33

04/05/2019 at 06:05PM

23
#111 - Pratik / @prathik_t

04/11/2019 at 05:43AM

24
#112 - Andreas Nordahl / @andreasnordahl

11/18/2018 at 09:40AM

24
#113 - Bob_V / @Bob_V

11/23/2018 at 09:37PM

24
#114 - Yuriy / @skriyka

11/24/2018 at 02:53PM

24
#115 - Jonathan Stinson / @KnightdeadJohn

11/25/2018 at 03:18PM

24
#116 - Ruslan / @versicode

11/25/2018 at 06:29PM

24
#117 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 01:46AM

24
#118 - longB / @longB77353628

03/21/2019 at 02:47PM

24
#119 - Malo Bourgon / @m_bourgon

04/11/2019 at 06:52PM

24
#120 - Correct Battery Horse / @horse_battery

04/16/2019 at 08:32PM