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

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

703 active golfers, 3522 entries

Solutions by @trxdbg:
19
#123 - trx / @trxdbg

10/11/2016 at 04:19PM

19
#>123 - trx / @trxdbg

10/12/2016 at 04:36AM

21
#>210 - trx / @trxdbg

10/11/2016 at 04:17PM

22
#>223 - trx / @trxdbg

10/11/2016 at 04:16PM

23
#>231 - trx / @trxdbg

10/11/2016 at 04:14PM

24
#>237 - trx / @trxdbg

10/11/2016 at 04:11PM

25
#>248 - trx / @trxdbg

10/11/2016 at 04:09PM

26
#>270 - trx / @trxdbg

10/11/2016 at 03:55PM