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

702 active golfers, 3520 entries

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

04/25/2017 at 04:53AM

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

12/15/2017 at 04:35AM

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

04/25/2017 at 04:53AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:51AM

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

04/25/2017 at 04:49AM

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

04/25/2017 at 04:50AM

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

04/25/2017 at 04:48AM

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

04/25/2017 at 04:49AM

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

04/25/2017 at 04:46AM

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

04/25/2017 at 04:45AM

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

04/25/2017 at 04:43AM

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

04/25/2017 at 04:41AM

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

04/25/2017 at 04:40AM

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

04/25/2017 at 04:37AM