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

572 active golfers, 3067 entries

Leaderboard (lowest score wins):
23
#151 - tPenguinLTG / @tpenguinltg

11/18/2018 at 05:10PM

23
#152 - zealotrush / @zealotrush

11/19/2018 at 05:34AM

23
#153 - Timothy Michael Fox / @Timothy_M_Fox

11/20/2018 at 09:35PM

23
#154 - CptBong / @cpt1bong

11/21/2018 at 09:53AM

23
#155 - samsuma000 / @samsuma000

11/22/2018 at 03:32PM

23
#156 - Michael Rose / @mdroseDev

11/23/2018 at 06:28AM

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

11/24/2018 at 04:54AM

23
#158 - Rebin Silva / @RebinSilva

11/27/2018 at 05:14PM

23
#159 - thvdburgt / @thvdburgt

11/28/2018 at 04:15PM

23
#160 - fucus / @fishlovebanana

12/08/2018 at 10:08AM

23
#161 - sjyu / @sjyu12

12/09/2018 at 12:24PM

23
#162 - zaperrer / @zaperrer

12/11/2018 at 09:52PM

23
#163 - aka / @aaik4

12/23/2018 at 01:34AM

23
#164 - Sebastien Nicoud / @sebnukem

12/23/2018 at 02:15AM

23
#165 - wes / @_weslly

12/30/2018 at 06:39AM

23
#166 - PuppySaturation / @PuppySaturation

12/30/2018 at 10:57AM

23
#167 - Marcos Moritz / @marcosmoritz

01/07/2019 at 08:50AM

23
#168 - Daniel Steinberg / @dstein64

01/28/2019 at 03:27AM

23
#169 - r / @revanthedarth

02/09/2019 at 02:44AM

23
#170 - hn9u / @hn9u

02/28/2019 at 12:27PM

23
#171 - LUTZ Jean / @Croustibot

02/28/2019 at 01:00PM

23
#172 - Matthew Barry / @komputerwiz

03/02/2019 at 05:24AM

23
#173 - Jonathan / @jreyes33

04/05/2019 at 06:05PM

23
#174 - Pratik / @prathik_t

04/11/2019 at 05:43AM

23
#175 - Kai.Li / @KaiLi19

04/28/2019 at 12:44AM

23
#176 - tenfy / @tenfy4

04/30/2019 at 02:14AM

23
#177 - Daniel Hakimian / @danrafhak

05/15/2019 at 02:56AM

23
#178 - Michael Loescher / @LoescherMichael

05/19/2019 at 04:37PM

23
#179 - mkaminaga / @mkmng3

06/01/2019 at 03:55AM

23
#180 - Floyd Gantt / @fgantt

06/27/2019 at 08:27PM