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

292 active golfers, 1451 entries

Leaderboard (lowest score wins):
21
#31 - Angry Dev / @AngryDev7

12/01/2018 at 02:34PM

21
#32 - Artur Mróz / @MrozArtur

12/05/2018 at 05:54PM

21
#33 - Cabal51 / @Cabal51

12/05/2018 at 10:44PM

21
#34 - shw / @shw30127562

12/06/2018 at 12:44PM

21
#35 - hogehoge / @hogehoge_1234

12/12/2018 at 04:35AM

21
#36 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 01:20AM

21
#37 - Kris Ezra / @kris_ezra

12/18/2018 at 03:56AM

21
#38 - Alexandros Giouzenis / @agiouz

12/19/2018 at 01:11PM

21
#39 - Bård Dybwad Kristensen / @BardDybwad

12/21/2018 at 01:27PM

21
#40 - omrisarig / @omrisarig

12/27/2018 at 08:42AM

21
#41 - Aru / @IAmAru

12/31/2018 at 02:31AM

21
#42 - Mangeart Yoric / @yoricm

01/14/2019 at 10:55AM

21
#43 - JhNJhs / @JhNJhs

01/17/2019 at 10:21AM

21
#44 - 默罕默德 / @Rt6RjEAJ987Woes

01/21/2019 at 12:55PM

21
#45 - LC / @leeren

01/22/2019 at 04:07AM

21
#46 - Marc Päpper / @mpaepper

01/28/2019 at 06:35AM

21
#47 - Kerson Hsiao / @KersonHsiao

02/03/2019 at 10:44AM

21
#48 - T A / @SirAviles

02/09/2019 at 09:51AM

21
#49 - sjcomp / @sjcomp

02/19/2019 at 08:43PM

22
#50 - Jon Krause / @jkrause314

11/16/2018 at 02:06AM

22
#51 - Daniel Hjelm / @dhjelm

11/19/2018 at 06:39PM

22
#52 - A / @777Android777

11/20/2018 at 04:34AM

22
#53 - Tänka tanken / @Tevippen

11/22/2018 at 01:21AM

22
#54 - io / @iovis9

11/22/2018 at 12:07PM

22
#55 - Johannes Noe / @videjonoe

11/23/2018 at 08:49AM

22
#56 - name / @name65894813

11/26/2018 at 03:42PM

22
#57 - unclewangshushu / @shuwushu

11/28/2018 at 08:14PM

22
#58 - 土豆 / @hujianxincn

12/09/2018 at 02:13AM

22
#59 - Quark / @PuzzleQuark

12/11/2018 at 07:23PM

22
#60 - Greg Anders / @gregory_anders

12/30/2018 at 04:53PM