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):
20
#31 - Darren Weston / @dazWestonUK

04/21/2019 at 04:43PM

20
#32 - お薬手帳 / @iW4Wz6PpCiqyGqH

04/22/2019 at 02:35AM

20
#33 - Peter Dolan / @PeterDo76228680

04/25/2019 at 07:49PM

20
#34 - hoge2341836 / @RootShunsuke

05/04/2019 at 03:01AM

20
#35 - eric huang / @EricGodhand4826

05/04/2019 at 04:46PM

20
#36 - Paul Yates / @PYates77

05/10/2019 at 05:32PM

20
#37 - Elcio Ferreira / @elcio

05/15/2019 at 02:42AM

20
#38 - Fiffy / @sr21486642

05/16/2019 at 06:26AM

20
#39 - Foo Bar / @foobar01123

05/20/2019 at 08:05AM

20
#40 - Vitaly Sinilin / @unterwulf

05/28/2019 at 09:59PM

20
#41 - maximilian / @maximil61408276

05/28/2019 at 10:01PM

20
#42 - Romain Bitard / @RBitard

05/31/2019 at 01:23PM

20
#43 - laerling / @laerling1

05/31/2019 at 04:07PM

20
#44 - Sæther / @baltre1

06/07/2019 at 09:54AM

20
#45 - Joo Ming / @JooMingJoo

06/07/2019 at 10:42AM

20
#46 - Alex Yu / @sixianyu

06/07/2019 at 11:35PM

20
#47 - Magnus Bjuvensjö / @mbjuvensjo

06/10/2019 at 03:40PM

20
#48 - Tim Dean / @Tmdean

06/10/2019 at 06:49PM

21
#49 - Saki Gw / @Sakigw

11/15/2018 at 11:06AM

21
#50 - Smylers / @Smylers2

11/15/2018 at 11:47AM

21
#51 - John Braxler / @braxler

11/15/2018 at 01:59PM

21
#52 - Dax / @zacoxi

11/16/2018 at 12:59AM

21
#53 - Bruno Cunha / @bruncun

11/17/2018 at 01:58PM

21
#54 - h3is3nd3rp / @h3is3nd3rp

11/20/2018 at 10:04PM

21
#55 - Liu Sha / @xinkele

11/22/2018 at 01:43PM

21
#56 - Mihai / @mihaicristiant

11/25/2018 at 08:53AM

21
#57 - Jonathan Cabezas / @John_Harkan

11/25/2018 at 05:24PM

21
#58 - Turkey Man / @lvturkeyman

11/30/2018 at 07:44AM

21
#59 - あすたちん / @astatine0x55

12/01/2018 at 02:01PM

21
#60 - Angry Dev / @AngryDev7

12/01/2018 at 02:34PM