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

692 active golfers, 3444 entries

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

04/25/2017 at 04:53AM

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

12/15/2017 at 04:35AM

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

04/25/2017 at 04:53AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:51AM

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

04/25/2017 at 04:49AM

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

04/25/2017 at 04:50AM

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

04/25/2017 at 04:48AM

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

04/25/2017 at 04:49AM

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

04/25/2017 at 04:46AM

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

04/25/2017 at 04:45AM

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

04/25/2017 at 04:43AM

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

04/25/2017 at 04:41AM

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

04/25/2017 at 04:40AM

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

04/25/2017 at 04:37AM