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
#61 - 张忠荣 / @ZZRcooperation

08/07/2019 at 08:16AM

20
#62 - sooqua / @sooqua

08/07/2019 at 02:07PM

20
#63 - Martin Delille / @martinodelilo

08/13/2019 at 04:26PM

20
#64 - nlfrocks / @nlfrocks

08/17/2019 at 03:41AM

20
#65 - Adam Hartz / @awareofnow

08/18/2019 at 01:40AM

21
#66 - Saki Gw / @Sakigw

11/15/2018 at 11:06AM

21
#67 - Smylers / @Smylers2

11/15/2018 at 11:47AM

21
#68 - John Braxler / @braxler

11/15/2018 at 01:59PM

21
#69 - Dax / @zacoxi

11/16/2018 at 12:59AM

21
#70 - Bruno Cunha / @bruncun

11/17/2018 at 01:58PM

21
#71 - h3is3nd3rp / @h3is3nd3rp

11/20/2018 at 10:04PM

21
#72 - Liu Sha / @xinkele

11/22/2018 at 01:43PM

21
#73 - Mihai / @mihaicristiant

11/25/2018 at 08:53AM

21
#74 - Jonathan Cabezas / @John_Harkan

11/25/2018 at 05:24PM

21
#75 - Turkey Man / @lvturkeyman

11/30/2018 at 07:44AM

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

12/01/2018 at 02:01PM

21
#77 - Angry Dev / @AngryDev7

12/01/2018 at 02:34PM

21
#78 - Artur Mróz / @MrozArtur

12/05/2018 at 05:54PM

21
#79 - Cabal51 / @Cabal51

12/05/2018 at 10:44PM

21
#80 - shw / @shw30127562

12/06/2018 at 12:44PM

21
#81 - hogehoge / @hogehoge_1234

12/12/2018 at 04:35AM

21
#82 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 01:20AM

21
#83 - Kris Ezra / @kris_ezra

12/18/2018 at 03:56AM

21
#84 - Alexandros Giouzenis / @agiouz

12/19/2018 at 01:11PM

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

12/21/2018 at 01:27PM

21
#86 - omrisarig / @omrisarig

12/27/2018 at 08:42AM

21
#87 - Aru / @IAmAru

12/31/2018 at 02:31AM

21
#88 - Mangeart Yoric / @yoricm

01/14/2019 at 10:55AM

21
#89 - JhNJhs / @JhNJhs

01/17/2019 at 10:21AM

21
#90 - 默罕默德 / @Rt6RjEAJ987Woes

01/21/2019 at 12:55PM