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

711 active golfers, 3568 entries

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

04/25/2026 at 06:09PM

20
#>198 - kantamana / @kantamana

04/25/2026 at 06:07PM

21
#>219 - kantamana / @kantamana

04/25/2026 at 06:05PM

22
#>231 - kantamana / @kantamana

04/25/2026 at 06:05PM

23
#>238 - kantamana / @kantamana

04/25/2026 at 06:03PM

24
#>242 - kantamana / @kantamana

04/25/2026 at 06:02PM

25
#>256 - kantamana / @kantamana

04/25/2026 at 06:00PM

26
#>287 - kantamana / @kantamana

04/25/2026 at 05:59PM

27
#>308 - kantamana / @kantamana

04/25/2026 at 05:58PM

28
#>340 - kantamana / @kantamana

04/25/2026 at 05:55PM

28
#>340 - kantamana / @kantamana

04/25/2026 at 05:56PM

29
#>358 - kantamana / @kantamana

04/25/2026 at 05:54PM

30
#>391 - kantamana / @kantamana

04/25/2026 at 05:50PM

30
#>391 - kantamana / @kantamana

04/25/2026 at 05:52PM

31
#>459 - kantamana / @kantamana

04/25/2026 at 03:48PM

32
#>508 - kantamana / @kantamana

04/25/2026 at 03:47PM