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):
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

20
#49 - Takayuki Sato / @yukitaka1974

06/21/2019 at 04:18PM

20
#50 - lofoneax / @lofoneax

07/01/2019 at 09:08AM

20
#51 - as-night / @asnight2

07/05/2019 at 05:15PM

20
#52 - Gustavo Almeida / @gustaalmeidaws

07/12/2019 at 03:28PM

20
#53 - Neil Struthers / @struthersneil

07/15/2019 at 01:54PM

20
#54 - Malcolm Sharpe / @blueblimpms

07/17/2019 at 02:38AM

20
#55 - James Raubenheimer / @jamzrob

07/18/2019 at 10:31PM

20
#56 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 05:42PM

20
#57 - Matt / @m4tty1c3

07/25/2019 at 06:31PM

20
#58 - Adam Katz / @AdamKat01277576

07/28/2019 at 12:43PM

20
#59 - Hayden Wang / @HaydenWang2

07/31/2019 at 07:50AM

20
#60 - XiaoXiaoLui / @XiaoXiaoLui1

08/04/2019 at 05:28AM