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

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

712 active golfers, 3569 entries

Solutions by @WutongYujie:
19
#134 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:53AM

19
#>141 - 梧桐王子 / @WutongYujie

12/15/2017 at 04:35AM

21
#>216 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:53AM

22
#>228 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:52AM

23
#>237 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:52AM

25
#>254 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:52AM

26
#>279 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:51AM

27
#>303 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:49AM

27
#>303 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:50AM

28
#>338 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:48AM

28
#>338 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:49AM

29
#>359 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:46AM

30
#>389 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:45AM

31
#>446 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:43AM

32
#>502 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:41AM

33
#>540 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:40AM

34
#>583 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:37AM