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

706 active golfers, 3525 entries

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

12/30/2019 at 01:06PM

20
#>191 - Delon / @delonleonard

12/30/2019 at 01:05PM

21
#>215 - Delon / @delonleonard

12/30/2019 at 01:05PM

22
#>225 - Delon / @delonleonard

12/30/2019 at 01:03PM

23
#>233 - Delon / @delonleonard

12/30/2019 at 01:03PM

24
#>238 - Delon / @delonleonard

12/30/2019 at 01:02PM

25
#>250 - Delon / @delonleonard

12/30/2019 at 01:02PM

26
#>279 - Delon / @delonleonard

12/30/2019 at 01:01PM

27
#>302 - Delon / @delonleonard

12/30/2019 at 01:00PM

28
#>335 - Delon / @delonleonard

12/30/2019 at 01:00PM

29
#>354 - Delon / @delonleonard

12/30/2019 at 12:56PM

30
#>386 - Delon / @delonleonard

12/30/2019 at 12:55PM

31
#>449 - Delon / @delonleonard

12/30/2019 at 12:53PM

32
#>501 - Delon / @delonleonard

12/30/2019 at 12:50PM

33
#>538 - Delon / @delonleonard

12/30/2019 at 12:48PM

38
#>623 - Delon / @delonleonard

12/30/2019 at 12:45PM

40
#>627 - Delon / @delonleonard

12/30/2019 at 06:43AM