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

710 active golfers, 3566 entries

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

12/30/2019 at 01:06PM

20
#>194 - Delon / @delonleonard

12/30/2019 at 01:05PM

21
#>218 - Delon / @delonleonard

12/30/2019 at 01:05PM

22
#>228 - Delon / @delonleonard

12/30/2019 at 01:03PM

23
#>236 - Delon / @delonleonard

12/30/2019 at 01:03PM

24
#>241 - Delon / @delonleonard

12/30/2019 at 01:02PM

25
#>253 - Delon / @delonleonard

12/30/2019 at 01:02PM

26
#>282 - Delon / @delonleonard

12/30/2019 at 01:01PM

27
#>305 - Delon / @delonleonard

12/30/2019 at 01:00PM

28
#>338 - Delon / @delonleonard

12/30/2019 at 01:00PM

29
#>357 - Delon / @delonleonard

12/30/2019 at 12:56PM

30
#>389 - Delon / @delonleonard

12/30/2019 at 12:55PM

31
#>452 - Delon / @delonleonard

12/30/2019 at 12:53PM

32
#>504 - Delon / @delonleonard

12/30/2019 at 12:50PM

33
#>541 - Delon / @delonleonard

12/30/2019 at 12:48PM

38
#>626 - Delon / @delonleonard

12/30/2019 at 12:45PM

40
#>630 - Delon / @delonleonard

12/30/2019 at 06:43AM