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

702 active golfers, 3520 entries

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

09/10/2016 at 08:43PM

20
#>186 - loki2441 / @loki2441

09/10/2016 at 08:44PM

21
#>209 - loki2441 / @loki2441

09/10/2016 at 08:42PM

22
#>222 - loki2441 / @loki2441

09/10/2016 at 08:36PM

23
#>230 - loki2441 / @loki2441

09/10/2016 at 08:36PM

25
#>247 - loki2441 / @loki2441

09/10/2016 at 08:35PM

26
#>269 - loki2441 / @loki2441

09/10/2016 at 08:33PM

27
#>294 - loki2441 / @loki2441

09/10/2016 at 08:33PM

28
#>329 - loki2441 / @loki2441

09/10/2016 at 08:31PM

28
#>329 - loki2441 / @loki2441

09/10/2016 at 08:32PM

29
#>351 - loki2441 / @loki2441

09/10/2016 at 08:30PM

30
#>380 - loki2441 / @loki2441

09/10/2016 at 08:29PM

31
#>438 - loki2441 / @loki2441

09/10/2016 at 08:28PM

32
#>493 - loki2441 / @loki2441

09/10/2016 at 08:27PM

33
#>533 - loki2441 / @loki2441

09/10/2016 at 08:24PM

34
#>574 - loki2441 / @loki2441

09/10/2016 at 08:23PM

34
#>574 - loki2441 / @loki2441

09/10/2016 at 08:27PM