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 524e1a20b81fe50002000008

attr_aligner

Two attr keywords. Two separate indentations. Align the colons.

Start file
attr_reader :align, :variables, :with
attr_accessor :spaces, :to, :complete, :challenge
# vim: set expandtab:
End file
attr_reader :align,
            :variables,
            :with
attr_accessor :spaces,
              :to,
              :complete,
              :challenge
# vim: set expandtab:

View Diff

1,2c1,7
< attr_reader :align, :variables, :with
< attr_accessor :spaces, :to, :complete, :challenge
---
> attr_reader :align,
>             :variables,
>             :with
> attr_accessor :spaces,
>               :to,
>               :complete,
>               :challenge

Solutions by @loki2441:

Unlock 17 remaining solutions by signing in and submitting your own entry
Created by: @udioica

692 active golfers, 3444 entries

Solutions by @loki2441:
19
#120 - loki2441 / @loki2441

09/10/2016 at 08:43PM

20
#>182 - loki2441 / @loki2441

09/10/2016 at 08:44PM

21
#>205 - loki2441 / @loki2441

09/10/2016 at 08:42PM

22
#>218 - loki2441 / @loki2441

09/10/2016 at 08:36PM

23
#>226 - loki2441 / @loki2441

09/10/2016 at 08:36PM

25
#>243 - loki2441 / @loki2441

09/10/2016 at 08:35PM

26
#>265 - loki2441 / @loki2441

09/10/2016 at 08:33PM

27
#>289 - loki2441 / @loki2441

09/10/2016 at 08:33PM

28
#>324 - loki2441 / @loki2441

09/10/2016 at 08:31PM

28
#>324 - loki2441 / @loki2441

09/10/2016 at 08:32PM

29
#>346 - loki2441 / @loki2441

09/10/2016 at 08:30PM

30
#>375 - loki2441 / @loki2441

09/10/2016 at 08:29PM

31
#>433 - loki2441 / @loki2441

09/10/2016 at 08:28PM

32
#>487 - loki2441 / @loki2441

09/10/2016 at 08:27PM

33
#>526 - loki2441 / @loki2441

09/10/2016 at 08:24PM

34
#>566 - loki2441 / @loki2441

09/10/2016 at 08:23PM

34
#>566 - loki2441 / @loki2441

09/10/2016 at 08:27PM