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

703 active golfers, 3522 entries

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

09/10/2016 at 08:43PM

20
#>187 - loki2441 / @loki2441

09/10/2016 at 08:44PM

21
#>210 - loki2441 / @loki2441

09/10/2016 at 08:42PM

22
#>223 - loki2441 / @loki2441

09/10/2016 at 08:36PM

23
#>231 - loki2441 / @loki2441

09/10/2016 at 08:36PM

25
#>248 - loki2441 / @loki2441

09/10/2016 at 08:35PM

26
#>270 - loki2441 / @loki2441

09/10/2016 at 08:33PM

27
#>295 - loki2441 / @loki2441

09/10/2016 at 08:33PM

28
#>330 - loki2441 / @loki2441

09/10/2016 at 08:31PM

28
#>330 - loki2441 / @loki2441

09/10/2016 at 08:32PM

29
#>352 - loki2441 / @loki2441

09/10/2016 at 08:30PM

30
#>381 - loki2441 / @loki2441

09/10/2016 at 08:29PM

31
#>439 - loki2441 / @loki2441

09/10/2016 at 08:28PM

32
#>494 - loki2441 / @loki2441

09/10/2016 at 08:27PM

33
#>534 - loki2441 / @loki2441

09/10/2016 at 08:24PM

34
#>575 - loki2441 / @loki2441

09/10/2016 at 08:23PM

34
#>575 - loki2441 / @loki2441

09/10/2016 at 08:27PM