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 @vimgolf987:

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

692 active golfers, 3444 entries

Solutions by @vimgolf987:
19
#127 - Vimgolf / @vimgolf987

02/27/2017 at 05:22AM

21
#>206 - Vimgolf / @vimgolf987

02/27/2017 at 05:20AM

22
#>218 - Vimgolf / @vimgolf987

02/27/2017 at 05:19AM

23
#>226 - Vimgolf / @vimgolf987

02/27/2017 at 05:17AM

25
#>243 - Vimgolf / @vimgolf987

02/27/2017 at 05:15AM

26
#>268 - Vimgolf / @vimgolf987

02/27/2017 at 05:12AM

27
#>290 - Vimgolf / @vimgolf987

02/27/2017 at 05:09AM

28
#>326 - Vimgolf / @vimgolf987

02/27/2017 at 05:07AM

29
#>347 - Vimgolf / @vimgolf987

02/27/2017 at 04:59AM

29
#>347 - Vimgolf / @vimgolf987

02/27/2017 at 05:06AM

30
#>376 - Vimgolf / @vimgolf987

02/27/2017 at 04:57AM

31
#>433 - Vimgolf / @vimgolf987

02/27/2017 at 04:55AM

33
#>526 - Vimgolf / @vimgolf987

02/27/2017 at 04:52AM

34
#>567 - Vimgolf / @vimgolf987

02/27/2017 at 04:49AM