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

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

692 active golfers, 3444 entries

Solutions by @ViktorStyrud:
19
#162 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:25AM

20
#>186 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:22AM

21
#>210 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:22AM

22
#>220 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:21AM

23
#>227 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:20AM

24
#>232 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:18AM

25
#>244 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:17AM

26
#>273 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:15AM

30
#>379 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:14AM

31
#>440 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 03:08PM

32
#>493 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 03:01PM