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

703 active golfers, 3522 entries

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

06/15/2015 at 12:21PM

22
#>221 - Hao Deng / @haodeng

06/15/2015 at 12:20PM

23
#>229 - Hao Deng / @haodeng

06/15/2015 at 12:17PM

25
#>244 - Hao Deng / @haodeng

06/15/2015 at 12:16PM

26
#>268 - Hao Deng / @haodeng

06/15/2015 at 12:13PM

27
#>294 - Hao Deng / @haodeng

06/15/2015 at 12:11PM

28
#>328 - Hao Deng / @haodeng

06/15/2015 at 12:09PM

29
#>349 - Hao Deng / @haodeng

06/15/2015 at 12:06PM

30
#>376 - Hao Deng / @haodeng

06/15/2015 at 12:04PM

31
#>429 - Hao Deng / @haodeng

06/15/2015 at 12:02PM

32
#>489 - Hao Deng / @haodeng

06/15/2015 at 12:01PM

33
#>530 - Hao Deng / @haodeng

06/15/2015 at 11:53AM

34
#>571 - Hao Deng / @haodeng

06/15/2015 at 11:50AM

35
#>586 - Hao Deng / @haodeng

06/15/2015 at 11:48AM

44
#>655 - Hao Deng / @haodeng

06/13/2015 at 11:43AM