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):
38
#211 - sisi100 / @s1si100

02/24/2019 at 01:20PM

38
#212 - vince / @vincentvangott

03/02/2019 at 05:55PM

38
#213 - p2ni / @p2noc

04/14/2019 at 03:08PM

39
#214 - Tact Overflow / @muppling

11/22/2018 at 02:20PM

39
#215 - Puj / @MrPuj

11/25/2018 at 11:43PM

39
#216 - Korgan / @Korgan36725554

11/29/2018 at 04:02AM

39
#217 - Mike / @xxxx457656455xx

12/13/2018 at 03:51AM

39
#218 - Yogesh Lonkar / @yogeshlor

12/19/2018 at 11:42AM

39
#219 - Noah Moss / @noahbmoss

12/26/2018 at 03:52AM

39
#220 - Josep #Dempeus / @jm_s_p

12/27/2018 at 06:21PM

39
#221 - Rasmus P / @rasmup

12/29/2018 at 04:01PM

39
#222 - Tim White / @antichrist65535

01/26/2019 at 08:53PM

39
#223 - David Accomazzo / @WordsofDefiance

02/27/2019 at 07:35PM

39
#224 - Amado Antonini / @AmadoAntonini

03/05/2019 at 06:24PM

39
#225 - Jasper Armstrong / @jasperarmstrong

03/13/2019 at 06:56AM

39
#226 - Emil Braserud / @Erdustiggen

03/16/2019 at 03:19PM

39
#227 - Iván Burgos / @Navo_Tivetano

04/11/2019 at 11:11PM

40
#228 - Miki Tebeka / @tebeka

11/19/2018 at 10:27AM

40
#229 - Paul Weaver / @UKWeaver

11/21/2018 at 07:03PM

40
#230 - MuadDev / @MuadDev

01/18/2019 at 08:28AM

40
#231 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:51PM

41
#232 - faisal / @faisalhackshah

11/25/2018 at 12:51AM

41
#233 - Why Am / @WhysDeCatOnFire

12/01/2018 at 02:02AM

41
#234 - Slawek Ligus / @ooz_ie

01/08/2019 at 06:28PM

41
#235 - Carl Blomqvist / @calleblomqvist

02/18/2019 at 05:50PM

41
#236 - severij / @severij_

03/04/2019 at 11:52PM

42
#237 - Adam Procio / @AdamProcio

12/10/2018 at 01:32AM

42
#238 - Richard Knight / @thisistherk

01/05/2019 at 08:05PM

42
#239 - bajidu / @bajidu

01/24/2019 at 10:40PM

42
#240 - Ng Sek Long / @NgSekLong

02/14/2019 at 06:50AM