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):
38
#271 - p2ni / @p2noc

04/14/2019 at 03:08PM

38
#272 - Raul / @Raul50174499

04/23/2019 at 04:52AM

38
#273 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:10AM

39
#274 - Tact Overflow / @muppling

11/22/2018 at 02:20PM

39
#275 - Puj / @MrPuj

11/25/2018 at 11:43PM

39
#276 - Korgan / @Korgan36725554

11/29/2018 at 04:02AM

39
#277 - Mike / @xxxx457656455xx

12/13/2018 at 03:51AM

39
#278 - Yogesh Lonkar / @yogeshlor

12/19/2018 at 11:42AM

39
#279 - Noah Moss / @noahbmoss

12/26/2018 at 03:52AM

39
#280 - Josep #Dempeus / @jm_s_p

12/27/2018 at 06:21PM

39
#281 - Rasmus P / @rasmup

12/29/2018 at 04:01PM

39
#282 - Tim White / @antichrist65535

01/26/2019 at 08:53PM

39
#283 - David Accomazzo / @WordsofDefiance

02/27/2019 at 07:35PM

39
#284 - Amado Antonini / @AmadoAntonini

03/05/2019 at 06:24PM

39
#285 - Jasper Armstrong / @jasperarmstrong

03/13/2019 at 06:56AM

39
#286 - Emil Braserud / @Erdustiggen

03/16/2019 at 03:19PM

39
#287 - Iván Burgos / @Navo_Tivetano

04/11/2019 at 11:11PM

39
#288 - jirgn / @jirgn

04/20/2019 at 06:48PM

39
#289 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 11:40PM

39
#290 - Damian Rodriguez / @damianrr

05/17/2019 at 02:08PM

39
#291 - Mat / @matpbo

05/28/2019 at 04:28PM

40
#292 - Miki Tebeka / @tebeka

11/19/2018 at 10:27AM

40
#293 - Paul Weaver / @UKWeaver

11/21/2018 at 07:03PM

40
#294 - MuadDev / @MuadDev

01/18/2019 at 08:28AM

40
#295 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:51PM

40
#296 - Matthias Kausl / @sig_segv

04/22/2019 at 07:55PM

40
#297 - Lingyu Yi / @LgxLingyu

05/15/2019 at 07:56AM

41
#298 - faisal / @faisalhackshah

11/25/2018 at 12:51AM

41
#299 - Why Am / @WhysDeCatOnFire

12/01/2018 at 02:02AM

41
#300 - Slawek Ligus / @ooz_ie

01/08/2019 at 06:28PM