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

396 active golfers, 2032 entries

Leaderboard (lowest score wins):
35
#181 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:42AM

35
#182 - Isaak Meier / @IsaakMeier

03/14/2019 at 07:36PM

36
#183 - しーまん / @nemusoudane

11/16/2018 at 01:03AM

36
#184 - Dom Armstrong / @dom_cycleface

11/30/2018 at 04:00PM

36
#185 - Kim Hwa Joong / @hanmwoi

12/13/2018 at 01:25PM

36
#186 - AKYS / @G0G0BIKE

12/27/2018 at 01:45AM

36
#187 - Luis Rodriguez / @luisthecoder

01/02/2019 at 05:59AM

36
#188 - Thomas Surlykke / @THSurlykke

01/15/2019 at 12:56AM

36
#189 - eduardo torres / @etdavila10

01/18/2019 at 10:04AM

36
#190 - Wei Wen / @goweiwen

02/14/2019 at 02:47AM

36
#191 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 10:53AM

36
#192 - Daniel Li / @delete12_

04/11/2019 at 03:15AM

37
#193 - Edgard Leal / @EdgardLeal

11/16/2018 at 01:00PM

37
#194 - Levi Self / @LeviRSelf

11/18/2018 at 05:43AM

37
#195 - King / @AshleysBrother

11/18/2018 at 08:22PM

37
#196 - Bracaval Elias / @BracavalE

11/21/2018 at 09:12AM

37
#197 - Pouet / @PouetForever

11/21/2018 at 01:36PM

37
#198 - william cedervall / @Master_smily

11/22/2018 at 03:21PM

37
#199 - garry quested / @GQuested

11/22/2018 at 04:13PM

37
#200 - Rossi / @mrossinek

12/02/2018 at 11:57AM

37
#201 - Zeeshan Ahmad / @zeeshahmad

12/16/2018 at 11:14AM

37
#202 - Jared Knutson / @Knu750n_0xcc

12/24/2018 at 05:57PM

37
#203 - thesilentone / @thesile99543104

12/30/2018 at 04:00PM

37
#204 - Jonathan Eidsness / @jonathaneidsnes

03/04/2019 at 10:15PM

37
#205 - Chris AtLee / @chrisatlee

03/05/2019 at 04:52PM

37
#206 - Johannes Braun / @jbhannenz

03/11/2019 at 11:06PM

37
#207 - Timothy Bryan / @tim_bryan

04/09/2019 at 12:43PM

38
#208 - zzndb / @zdb_lx

11/25/2018 at 07:12AM

38
#209 - Performa / @performa6400

11/27/2018 at 04:24PM

38
#210 - Théo / @Theodnls

12/16/2018 at 05:22PM