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

386 active golfers, 1989 entries

Leaderboard (lowest score wins):
32
#151 - Paweł Styczewski / @kryspuss

04/12/2019 at 09:02AM

32
#152 - 이종혁 / @BluePaisa

04/17/2019 at 07:20AM

33
#153 - Steve Bitner / @fourbitbots

11/18/2018 at 02:29AM

33
#154 - Tomoya Ishihama / @ishmt

11/19/2018 at 09:43AM

33
#155 - Egor Fedkin / @Jet_Flynn

11/28/2018 at 06:52PM

33
#156 - Arkadiusz Gabryś / @ArkadiuszGabrys

12/21/2018 at 06:06PM

33
#157 - Bobby Tables / @BobbyTables12

01/08/2019 at 07:14PM

33
#158 - Yes,THAT John McAvoy / @aboy_John

01/14/2019 at 03:29AM

33
#159 - Brandon Pfeifer / @BrandonPfeifer6

04/05/2019 at 07:05PM

33
#160 - Nicolas Daval / @ndaval

04/07/2019 at 06:14PM

34
#161 - PJ Frazer / @pj_frazer

11/22/2018 at 02:22AM

34
#162 - robinro / @robinro

11/22/2018 at 06:55PM

34
#163 - Omar / @ombako

12/03/2018 at 09:10AM

34
#164 - Paulo H Baumann / @PauloBaumann

12/05/2018 at 05:37PM

34
#165 - Anon75639 / @anon75639

12/11/2018 at 02:06AM

34
#166 - carly stan account / @theryangeary

12/30/2018 at 03:34AM

34
#167 - William Robson / @wnrbs

01/02/2019 at 12:20AM

34
#168 - Mac Goever / @MacGoever

01/04/2019 at 03:45PM

34
#169 - melts / @melts

01/09/2019 at 08:21PM

34
#170 - Dominic Z / @thammaaa

01/31/2019 at 12:29AM

34
#171 - Kristian Haug / @krimhaug

02/26/2019 at 12:09PM

35
#172 - John Doe / @JohnDoe42098020

12/12/2018 at 01:58PM

35
#173 - xwlearn / @ixw1991

12/18/2018 at 02:32PM

35
#174 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:50PM

35
#175 - Sam Miller / @sam_miller93

02/17/2019 at 10:23AM

35
#176 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:42AM

35
#177 - Isaak Meier / @IsaakMeier

03/14/2019 at 07:36PM

36
#178 - しーまん / @nemusoudane

11/16/2018 at 01:03AM

36
#179 - Dom Armstrong / @dom_cycleface

11/30/2018 at 04:00PM

36
#180 - Kim Hwa Joong / @hanmwoi

12/13/2018 at 01:25PM