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

486 active golfers, 2565 entries

Leaderboard (lowest score wins):
34
#211 - PJ Frazer / @pj_frazer

11/22/2018 at 02:22AM

34
#212 - robinro / @robinro

11/22/2018 at 06:55PM

34
#213 - Omar / @ombako

12/03/2018 at 09:10AM

34
#214 - Paulo H Baumann / @PauloBaumann

12/05/2018 at 05:37PM

34
#215 - Anon75639 / @anon75639

12/11/2018 at 02:06AM

34
#216 - carly stan account / @theryangeary

12/30/2018 at 03:34AM

34
#217 - William Robson / @wnrbs

01/02/2019 at 12:20AM

34
#218 - Mac Goever / @MacGoever

01/04/2019 at 03:45PM

34
#219 - melts / @melts

01/09/2019 at 08:21PM

34
#220 - Dominic Z / @thammaaa

01/31/2019 at 12:29AM

34
#221 - Kristian Haug / @krimhaug

02/26/2019 at 12:09PM

34
#222 - Manos Koutselakis / @koutselakis_m

05/04/2019 at 11:08PM

34
#223 - vimgolfer24271 / @vimgolfer24271

05/14/2019 at 07:19AM

35
#224 - John Doe / @JohnDoe42098020

12/12/2018 at 01:58PM

35
#225 - xwlearn / @ixw1991

12/18/2018 at 02:32PM

35
#226 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:50PM

35
#227 - Sam Miller / @sam_miller93

02/17/2019 at 10:23AM

35
#228 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:42AM

35
#229 - Isaak Meier / @IsaakMeier

03/14/2019 at 07:36PM

35
#230 - Herman Stavelin / @HsBruker

04/23/2019 at 04:39PM

35
#231 - Leiser Fernández / @leiserfg

05/17/2019 at 05:29AM

35
#232 - Ari Sweedler / @Adsweed

06/07/2019 at 01:35AM

36
#233 - しーまん / @nemusoudane

11/16/2018 at 01:03AM

36
#234 - Dom Armstrong / @dom_cycleface

11/30/2018 at 04:00PM

36
#235 - Kim Hwa Joong / @hanmwoi

12/13/2018 at 01:25PM

36
#236 - AKYS / @G0G0BIKE

12/27/2018 at 01:45AM

36
#237 - Luis Rodriguez / @luisthecoder

01/02/2019 at 05:59AM

36
#238 - Thomas Surlykke / @THSurlykke

01/15/2019 at 12:56AM

36
#239 - eduardo torres / @etdavila10

01/18/2019 at 10:04AM

36
#240 - Wei Wen / @goweiwen

02/14/2019 at 02:47AM