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

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

692 active golfers, 3444 entries

Solutions by @Benoit_Mortgat:
19
#140 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:04PM

19
#>140 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:04PM

21
#>207 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:03PM

22
#>219 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:03PM

23
#>227 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:02PM

25
#>243 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:01PM

26
#>269 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:00PM

27
#>291 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:59AM

28
#>327 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:59AM

29
#>347 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:58AM

30
#>377 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:57AM

31
#>434 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:54AM

32
#>489 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:54AM

34
#>568 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:52AM

35
#>580 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 11:05AM