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

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

702 active golfers, 3520 entries

Solutions by @DHM29978992:
19
#142 - DHM / @DHM29978992

04/14/2018 at 03:00AM

21
#>213 - DHM / @DHM29978992

04/14/2018 at 02:58AM

22
#>224 - DHM / @DHM29978992

04/14/2018 at 02:56AM

23
#>231 - DHM / @DHM29978992

04/14/2018 at 02:55AM

25
#>247 - DHM / @DHM29978992

04/14/2018 at 02:54AM

26
#>273 - DHM / @DHM29978992

04/14/2018 at 02:48AM

26
#>273 - DHM / @DHM29978992

04/14/2018 at 02:49AM

26
#>273 - DHM / @DHM29978992

04/14/2018 at 02:53AM

27
#>296 - DHM / @DHM29978992

04/14/2018 at 02:48AM

29
#>352 - DHM / @DHM29978992

04/14/2018 at 02:46AM

30
#>382 - DHM / @DHM29978992

04/14/2018 at 02:44AM

31
#>439 - DHM / @DHM29978992

04/14/2018 at 02:38AM

32
#>496 - DHM / @DHM29978992

04/14/2018 at 02:28AM

33
#>534 - DHM / @DHM29978992

04/14/2018 at 02:10AM