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

702 active golfers, 3520 entries

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

02/18/2020 at 04:55PM

20
#>191 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:50PM

21
#>214 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:48PM

22
#>224 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:46PM

23
#>231 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:45PM

24
#>236 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 04:44PM

25
#>248 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:41PM

26
#>277 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:40PM

27
#>301 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:38PM

27
#>301 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:39PM

28
#>333 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:35PM

30
#>384 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:32PM

31
#>447 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:27PM

32
#>499 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:24PM

33
#>536 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:21PM