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 by @maraisf:

Unlock 6 remaining solutions by signing in and submitting your own entry
Created by: @oneandoneis2

110 active golfers, 392 entries

Solutions by @maraisf:
17
#31 - Francois Marais / @maraisf

04/05/2018 at 06:59PM

18
#>48 - Francois Marais / @maraisf

04/05/2018 at 06:58PM

19
#>62 - Francois Marais / @maraisf

04/05/2018 at 06:57PM

19
#>62 - Francois Marais / @maraisf

05/20/2021 at 06:13AM

20
#>65 - Francois Marais / @maraisf

04/05/2018 at 06:56PM

21
#>72 - Francois Marais / @maraisf

05/20/2021 at 06:12AM