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

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

692 active golfers, 3444 entries

Solutions by @haodeng:
21
#198 - Hao Deng / @haodeng

06/15/2015 at 12:21PM

22
#>216 - Hao Deng / @haodeng

06/15/2015 at 12:20PM

23
#>224 - Hao Deng / @haodeng

06/15/2015 at 12:17PM

25
#>239 - Hao Deng / @haodeng

06/15/2015 at 12:16PM

26
#>263 - Hao Deng / @haodeng

06/15/2015 at 12:13PM

27
#>288 - Hao Deng / @haodeng

06/15/2015 at 12:11PM

28
#>322 - Hao Deng / @haodeng

06/15/2015 at 12:09PM

29
#>343 - Hao Deng / @haodeng

06/15/2015 at 12:06PM

30
#>370 - Hao Deng / @haodeng

06/15/2015 at 12:04PM

31
#>423 - Hao Deng / @haodeng

06/15/2015 at 12:02PM

32
#>482 - Hao Deng / @haodeng

06/15/2015 at 12:01PM

33
#>522 - Hao Deng / @haodeng

06/15/2015 at 11:53AM

34
#>562 - Hao Deng / @haodeng

06/15/2015 at 11:50AM

35
#>577 - Hao Deng / @haodeng

06/15/2015 at 11:48AM

44
#>644 - Hao Deng / @haodeng

06/13/2015 at 11:43AM