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 55771cc4750ef86573003b83

Line 'em up!

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

Start file
foo {
    a   => "a",
    bc  => "bc",
    def => "def",
    ghij => "ghij",
    k => "k",
    lmn => "lmn",
    opqrst => "opqrst",
    uvw => "uvw",
    xyz => "xyz",
}
End file
foo {
    a       => "a",
    bc      => "bc",
    def     => "def",
    ghij    => "ghij",
    k       => "k",
    lmn     => "lmn",
    opqrst  => "opqrst",
    uvw     => "uvw",
    xyz     => "xyz",
}

View Diff

2,10c2,10
<     a   => "a",
<     bc  => "bc",
<     def => "def",
<     ghij => "ghij",
<     k => "k",
<     lmn => "lmn",
<     opqrst => "opqrst",
<     uvw => "uvw",
<     xyz => "xyz",
---
>     a       => "a",
>     bc      => "bc",
>     def     => "def",
>     ghij    => "ghij",
>     k       => "k",
>     lmn     => "lmn",
>     opqrst  => "opqrst",
>     uvw     => "uvw",
>     xyz     => "xyz",

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 112 remaining solutions by signing in and submitting your own entry
#113 hidnasio / @hidnasio - Score: 85 - 06/15/15 @ 00:05
/-<BS>-<BS>=<CR>i <Esc>3.n4.un4.nn4.Nnn3.Nnn6.nn4.nn11111111111<Esc><Esc>1nN.u1.nn3.u4>..u4.nn3.u4.:q<CR>:wq<CR>

0 comments


Created by: @oneandoneis2

113 active golfers, 420 entries

Leaderboard (lowest score wins):
17
#1 - Urtica dioica / @udioica

06/09/2015 at 06:31PM

17
#2 - Vimgolf Guy / @Guy_acct

06/09/2015 at 09:53PM

17
#3 - pftb12345 / @pftb12345

06/09/2015 at 10:44PM

17
#4 - antew / @antewcode

06/10/2015 at 01:56AM

17
#5 - Hao Deng / @haodeng

06/10/2015 at 04:54AM

17
#6 - How Si Wei / @houxiwu

06/10/2015 at 12:13PM

17
#7 - ahumph / @ahumph

06/10/2015 at 02:13PM

17
#8 - John Braxler / @braxler

06/10/2015 at 05:40PM

17
#9 - Spy / @thatspysaspy

06/11/2015 at 08:29PM

17
#10 - Reese Wilson / @shinyvimgolf

06/12/2015 at 06:24AM

17
#11 - Matt / @mcr05

06/13/2015 at 08:53AM

17
#12 - Petro Тrouq / @zulolosi

06/14/2015 at 11:09PM

17
#13 - Lifepillar / @lifepillar

06/15/2015 at 06:23PM

17
#14 - Kévin R / @shaiton_

06/16/2015 at 09:16AM

17
#15 - qwe31asd / @qwe31asd

06/19/2015 at 08:56PM

17
#16 - Noud Speijcken / @noudspeijcken

06/20/2015 at 07:39PM

17
#17 - Andres Manz / @manz_andres

06/24/2015 at 01:23PM

17
#18 - Ferdev vimgolf / @fergvimgolf

08/11/2015 at 08:51AM

17
#19 - Liam Thurston / @lthurston188

08/17/2015 at 04:29AM

17
#20 - Veritas / @_VeritasL

09/01/2015 at 02:25PM

17
#21 - oscar / @zonza_mas

09/04/2015 at 11:14AM

17
#22 - Mike Adams / @davis_cromwell

10/02/2015 at 02:17PM

17
#23 - Walker Boh / @walker_boh

10/05/2015 at 11:10AM

17
#24 - Aleksey Zhidkov / @AlexeyZhidkov

02/24/2016 at 09:04AM

17
#25 - Jon Krause / @jkrause314

03/09/2016 at 03:10AM

17
#26 - Cristian Lupașcu / @clupasq

03/19/2016 at 08:47PM

17
#27 - jj johnson / @jcassj1

08/23/2016 at 09:50AM

17
#28 - Will / @obiwan__k3n00bi

09/03/2016 at 06:01AM

17
#29 - Daniel / @Daniel00288663

03/31/2017 at 08:20AM

17
#30 - Turkey Man / @lvturkeyman

11/24/2017 at 07:08PM