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

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

683 active golfers, 3387 entries

Solutions by @delonleonard:
19
#163 - Delon / @delonleonard

12/30/2019 at 01:06PM

20
#>181 - Delon / @delonleonard

12/30/2019 at 01:05PM

21
#>205 - Delon / @delonleonard

12/30/2019 at 01:05PM

22
#>215 - Delon / @delonleonard

12/30/2019 at 01:03PM

23
#>221 - Delon / @delonleonard

12/30/2019 at 01:03PM

24
#>226 - Delon / @delonleonard

12/30/2019 at 01:02PM

25
#>238 - Delon / @delonleonard

12/30/2019 at 01:02PM

26
#>267 - Delon / @delonleonard

12/30/2019 at 01:01PM

27
#>289 - Delon / @delonleonard

12/30/2019 at 01:00PM

28
#>322 - Delon / @delonleonard

12/30/2019 at 01:00PM

29
#>341 - Delon / @delonleonard

12/30/2019 at 12:56PM

30
#>373 - Delon / @delonleonard

12/30/2019 at 12:55PM

31
#>436 - Delon / @delonleonard

12/30/2019 at 12:53PM

32
#>487 - Delon / @delonleonard

12/30/2019 at 12:50PM

33
#>521 - Delon / @delonleonard

12/30/2019 at 12:48PM

38
#>603 - Delon / @delonleonard

12/30/2019 at 12:45PM

40
#>607 - Delon / @delonleonard

12/30/2019 at 06:43AM