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

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

702 active golfers, 3520 entries

Solutions by @angelchiang:
19
#128 - Angel Chiang / @angelchiang

03/06/2017 at 07:16PM

21
#>210 - Angel Chiang / @angelchiang

03/06/2017 at 07:14PM

22
#>222 - Angel Chiang / @angelchiang

03/06/2017 at 07:12PM

23
#>230 - Angel Chiang / @angelchiang

03/06/2017 at 07:09PM

25
#>247 - Angel Chiang / @angelchiang

03/06/2017 at 07:07PM

26
#>272 - Angel Chiang / @angelchiang

03/06/2017 at 07:00PM

27
#>295 - Angel Chiang / @angelchiang

03/06/2017 at 06:57PM

28
#>331 - Angel Chiang / @angelchiang

03/06/2017 at 06:38PM

29
#>352 - Angel Chiang / @angelchiang

03/06/2017 at 06:30PM

29
#>352 - Angel Chiang / @angelchiang

03/06/2017 at 06:33PM

29
#>352 - Angel Chiang / @angelchiang

03/06/2017 at 06:34PM

30
#>381 - Angel Chiang / @angelchiang

03/06/2017 at 06:28PM

31
#>438 - Angel Chiang / @angelchiang

03/06/2017 at 06:24PM

32
#>494 - Angel Chiang / @angelchiang

03/06/2017 at 06:20PM

33
#>533 - Angel Chiang / @angelchiang

03/06/2017 at 06:14PM

34
#>575 - Angel Chiang / @angelchiang

03/06/2017 at 05:54PM

46
#>661 - Angel Chiang / @angelchiang

03/06/2017 at 06:17PM