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):
35
#271 - John Doe / @JohnDoe42098020

12/12/2018 at 01:58PM

35
#272 - xwlearn / @ixw1991

12/18/2018 at 02:32PM

35
#273 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:50PM

35
#274 - Sam Miller / @sam_miller93

02/17/2019 at 10:23AM

35
#275 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:42AM

35
#276 - Isaak Meier / @IsaakMeier

03/14/2019 at 07:36PM

35
#277 - Herman Stavelin / @HsBruker

04/23/2019 at 04:39PM

35
#278 - Leiser Fernández / @leiserfg

05/17/2019 at 05:29AM

35
#279 - Ari Sweedler / @Adsweed

06/07/2019 at 01:35AM

35
#280 - Peter Demin / @peterdemin

07/11/2019 at 05:28PM

35
#281 - Crystal L / @Cartsly

07/13/2019 at 11:01PM

35
#282 - Matt Vaughn / @mattttvaughn

07/29/2019 at 12:36AM

35
#283 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 09:46AM

35
#284 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 02:02PM

36
#285 - しーまん / @nemusoudane

11/16/2018 at 01:03AM

36
#286 - Dom Armstrong / @dom_cycleface

11/30/2018 at 04:00PM

36
#287 - Kim Hwa Joong / @hanmwoi

12/13/2018 at 01:25PM

36
#288 - AKYS / @G0G0BIKE

12/27/2018 at 01:45AM

36
#289 - Luis Rodriguez / @luisthecoder

01/02/2019 at 05:59AM

36
#290 - Thomas Surlykke / @THSurlykke

01/15/2019 at 12:56AM

36
#291 - eduardo torres / @etdavila10

01/18/2019 at 10:04AM

36
#292 - Wei Wen / @goweiwen

02/14/2019 at 02:47AM

36
#293 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 10:53AM

36
#294 - Daniel Li / @delete12_

04/11/2019 at 03:15AM

36
#295 - Przemek Kurek / @PrzemekKurek

05/21/2019 at 06:49AM

36
#296 - Chloe Adeline / @SimpleRabbit

08/04/2019 at 02:42AM

37
#297 - Edgard Leal / @EdgardLeal

11/16/2018 at 01:00PM

37
#298 - Levi Self / @LeviRSelf

11/18/2018 at 05:43AM

37
#299 - King / @AshleysBrother

11/18/2018 at 08:22PM

37
#300 - Bracaval Elias / @BracavalE

11/21/2018 at 09:12AM