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

703 active golfers, 3522 entries

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

10/08/2019 at 06:25AM

20
#>191 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:22AM

21
#>215 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:22AM

22
#>225 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:21AM

23
#>232 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:20AM

24
#>237 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:18AM

25
#>249 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:17AM

26
#>278 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:15AM

30
#>385 - Viktor Styrud / @ViktorStyrud

10/08/2019 at 06:14AM

31
#>446 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 03:08PM

32
#>500 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 03:01PM