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

711 active golfers, 3568 entries

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

09/10/2016 at 08:43PM

20
#>191 - loki2441 / @loki2441

09/10/2016 at 08:44PM

21
#>214 - loki2441 / @loki2441

09/10/2016 at 08:42PM

22
#>227 - loki2441 / @loki2441

09/10/2016 at 08:36PM

23
#>236 - loki2441 / @loki2441

09/10/2016 at 08:36PM

25
#>253 - loki2441 / @loki2441

09/10/2016 at 08:35PM

26
#>275 - loki2441 / @loki2441

09/10/2016 at 08:33PM

27
#>300 - loki2441 / @loki2441

09/10/2016 at 08:33PM

28
#>335 - loki2441 / @loki2441

09/10/2016 at 08:31PM

28
#>335 - loki2441 / @loki2441

09/10/2016 at 08:32PM

29
#>357 - loki2441 / @loki2441

09/10/2016 at 08:30PM

30
#>386 - loki2441 / @loki2441

09/10/2016 at 08:29PM

31
#>444 - loki2441 / @loki2441

09/10/2016 at 08:28PM

32
#>499 - loki2441 / @loki2441

09/10/2016 at 08:27PM

33
#>539 - loki2441 / @loki2441

09/10/2016 at 08:24PM

34
#>580 - loki2441 / @loki2441

09/10/2016 at 08:23PM

34
#>580 - loki2441 / @loki2441

09/10/2016 at 08:27PM