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

702 active golfers, 3520 entries

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

10/08/2019 at 06:25AM

20
#>190 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:22AM

21
#>214 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:22AM

22
#>224 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:21AM

23
#>231 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:20AM

24
#>236 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:18AM

25
#>248 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:17AM

26
#>277 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:15AM

30
#>384 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:14AM

31
#>445 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 03:08PM

32
#>499 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 03:01PM