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

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

692 active golfers, 3444 entries

Solutions by @KnightdeadJohn:
19
#165 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:55PM

20
#>187 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:50PM

21
#>210 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:48PM

22
#>220 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:46PM

23
#>227 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:45PM

24
#>232 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:44PM

25
#>244 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:41PM

26
#>273 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:40PM

27
#>296 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:38PM

27
#>296 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:39PM

28
#>328 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:35PM

30
#>379 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:32PM

31
#>442 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:27PM

32
#>493 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:24PM

33
#>529 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:21PM