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

703 active golfers, 3522 entries

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

04/25/2017 at 04:53AM

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

12/15/2017 at 04:35AM

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

04/25/2017 at 04:53AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:52AM

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

04/25/2017 at 04:51AM

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

04/25/2017 at 04:49AM

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

04/25/2017 at 04:50AM

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

04/25/2017 at 04:48AM

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

04/25/2017 at 04:49AM

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

04/25/2017 at 04:46AM

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

04/25/2017 at 04:45AM

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

04/25/2017 at 04:43AM

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

04/25/2017 at 04:41AM

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

04/25/2017 at 04:40AM

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

04/25/2017 at 04:37AM