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

702 active golfers, 3520 entries

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

06/15/2015 at 12:21PM

22
#>220 - Hao Deng / @haodeng

06/15/2015 at 12:20PM

23
#>228 - Hao Deng / @haodeng

06/15/2015 at 12:17PM

25
#>243 - Hao Deng / @haodeng

06/15/2015 at 12:16PM

26
#>267 - Hao Deng / @haodeng

06/15/2015 at 12:13PM

27
#>293 - Hao Deng / @haodeng

06/15/2015 at 12:11PM

28
#>327 - Hao Deng / @haodeng

06/15/2015 at 12:09PM

29
#>348 - Hao Deng / @haodeng

06/15/2015 at 12:06PM

30
#>375 - Hao Deng / @haodeng

06/15/2015 at 12:04PM

31
#>428 - Hao Deng / @haodeng

06/15/2015 at 12:02PM

32
#>488 - Hao Deng / @haodeng

06/15/2015 at 12:01PM

33
#>529 - Hao Deng / @haodeng

06/15/2015 at 11:53AM

34
#>570 - Hao Deng / @haodeng

06/15/2015 at 11:50AM

35
#>585 - Hao Deng / @haodeng

06/15/2015 at 11:48AM

44
#>654 - Hao Deng / @haodeng

06/13/2015 at 11:43AM