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):
28
#211 - tnagai / @tnagai

04/25/2019 at 01:44AM

28
#212 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 12:27PM

29
#213 - Alex Fall / @alexandfall

12/03/2018 at 12:02AM

29
#214 - Lingyu Yi / @LgxLingyu

07/08/2019 at 03:49AM

30
#215 - luzzyzhang / @luzzyzhang

11/16/2018 at 05:03PM

30
#216 - Seòras / @Komos90

11/26/2018 at 11:38PM

30
#217 - daniel / @daniel31464605

12/28/2018 at 06:48AM

30
#218 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 10:37PM

30
#219 - andrwyoung / @andrwyoung1

03/01/2019 at 06:02PM

30
#220 - Robert Orr / @orrrobert

03/08/2019 at 04:56AM

30
#221 - Duke Du / @DukeDu2

03/20/2019 at 02:52AM

30
#222 - TimMcGuire / @mcguire

05/06/2019 at 05:04PM

30
#223 - soundscope / @__soundscope__

06/25/2019 at 01:12PM

30
#224 - Ron Holt / @ron_holt

07/31/2019 at 07:01PM

31
#225 - drswaghawk / @drswaghawk

01/04/2019 at 07:05PM

31
#226 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:07AM

31
#227 - Grant / @grant_7788

04/25/2019 at 07:58AM

31
#228 - shaz / @shaz30307204

05/23/2019 at 09:41AM

31
#229 - version 34.053a / @Age_of_machines

05/29/2019 at 03:24PM

31
#230 - Matt Burg / @matsbleurgh

06/21/2019 at 09:11PM

32
#231 - Walker Boh / @walker_boh

12/28/2018 at 05:42PM

32
#232 - Andrew Halberstadt / @halbersa

01/26/2019 at 06:22PM

32
#233 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:50PM

32
#234 - scottarver / @scottarver

03/02/2019 at 05:11AM

32
#235 - Skywalker 666 / @MemeMasterXXI

03/31/2019 at 09:20PM

32
#236 - Paweł Styczewski / @kryspuss

04/12/2019 at 09:02AM

32
#237 - 이종혁 / @BluePaisa

04/17/2019 at 07:20AM

32
#238 - Jon Miller / @jmillxyz

07/21/2019 at 04:06AM

33
#239 - Steve Bitner / @fourbitbots

11/18/2018 at 02:29AM

33
#240 - Tomoya Ishihama / @ishmt

11/19/2018 at 09:43AM