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):
34
#121 - Anon75639 / @anon75639

12/11/2018 at 02:06AM

34
#122 - tweets about snakes / @theryangeary

12/30/2018 at 03:34AM

34
#123 - William Robson / @wnrbs

01/02/2019 at 12:20AM

34
#124 - Mac Goever / @MacGoever

01/04/2019 at 03:45PM

34
#125 - melts / @melts

01/09/2019 at 08:21PM

34
#126 - Dominic Z / @thammaaa

01/31/2019 at 12:29AM

35
#127 - John Doe / @JohnDoe42098020

12/12/2018 at 01:58PM

35
#128 - xwlearn / @ixw1991

12/18/2018 at 02:32PM

35
#129 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:50PM

35
#130 - Sam Miller / @sam_miller93

02/17/2019 at 10:23AM

36
#131 - しーまん / @nemusoudane

11/16/2018 at 01:03AM

36
#132 - Dom Armstrong / @dom_cycleface

11/30/2018 at 04:00PM

36
#133 - Kim Hwa Joong / @hanmwoi

12/13/2018 at 01:25PM

36
#134 - AKYS / @G0G0BIKE

12/27/2018 at 01:45AM

36
#135 - Luis Rodriguez / @luisthecoder

01/02/2019 at 05:59AM

36
#136 - Thomas Surlykke / @THSurlykke

01/15/2019 at 12:56AM

36
#137 - eduardo torres / @etdavila10

01/18/2019 at 10:04AM

36
#138 - Wei Wen / @goweiwen

02/14/2019 at 02:47AM

37
#139 - Edgard Leal / @EdgardLeal

11/16/2018 at 01:00PM

37
#140 - Levi Self / @LeviRSelf

11/18/2018 at 05:43AM

37
#141 - King / @AshleysBrother

11/18/2018 at 08:22PM

37
#142 - Bracaval Elias / @BracavalE

11/21/2018 at 09:12AM

37
#143 - Pouet / @PouetForever

11/21/2018 at 01:36PM

37
#144 - william cedervall / @Master_smily

11/22/2018 at 03:21PM

37
#145 - garry quested / @GQuested

11/22/2018 at 04:13PM

37
#146 - Rossi / @mrossinek

12/02/2018 at 11:57AM

37
#147 - Zeeshan Ahmad / @zeeshahmad

12/16/2018 at 11:14AM

37
#148 - Jared Knutson / @Knu750n_0xcc

12/24/2018 at 05:57PM

37
#149 - thesilentone / @thesile99543104

12/30/2018 at 04:00PM

38
#150 - zzndb / @zdb_lx

11/25/2018 at 07:12AM