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

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

712 active golfers, 3569 entries

Solutions by @kantamana:
19
#187 - kantamana / @kantamana

04/25/2026 at 06:09PM

20
#>199 - kantamana / @kantamana

04/25/2026 at 06:07PM

21
#>220 - kantamana / @kantamana

04/25/2026 at 06:05PM

22
#>232 - kantamana / @kantamana

04/25/2026 at 06:05PM

23
#>239 - kantamana / @kantamana

04/25/2026 at 06:03PM

24
#>243 - kantamana / @kantamana

04/25/2026 at 06:02PM

25
#>257 - kantamana / @kantamana

04/25/2026 at 06:00PM

26
#>288 - kantamana / @kantamana

04/25/2026 at 05:59PM

27
#>309 - kantamana / @kantamana

04/25/2026 at 05:58PM

28
#>341 - kantamana / @kantamana

04/25/2026 at 05:55PM

28
#>341 - kantamana / @kantamana

04/25/2026 at 05:56PM

29
#>359 - kantamana / @kantamana

04/25/2026 at 05:54PM

30
#>392 - kantamana / @kantamana

04/25/2026 at 05:50PM

30
#>392 - kantamana / @kantamana

04/25/2026 at 05:52PM

31
#>460 - kantamana / @kantamana

04/25/2026 at 03:48PM

32
#>509 - kantamana / @kantamana

04/25/2026 at 03:47PM