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

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

692 active golfers, 3444 entries

Solutions by @alek_fed:
19
#151 - alekfed / @alek_fed

04/15/2019 at 09:16AM

19
#>151 - alekfed / @alek_fed

04/15/2019 at 09:17AM

20
#>184 - alekfed / @alek_fed

04/15/2019 at 09:15AM

21
#>210 - alekfed / @alek_fed

04/15/2019 at 09:15AM

23
#>227 - alekfed / @alek_fed

04/15/2019 at 09:14AM

24
#>232 - alekfed / @alek_fed

04/15/2019 at 09:14AM

25
#>244 - alekfed / @alek_fed

04/15/2019 at 09:12AM

26
#>270 - alekfed / @alek_fed

04/15/2019 at 09:12AM

27
#>291 - alekfed / @alek_fed

04/15/2019 at 09:11AM

28
#>328 - alekfed / @alek_fed

04/15/2019 at 09:10AM

29
#>347 - alekfed / @alek_fed

04/15/2019 at 09:09AM

30
#>379 - alekfed / @alek_fed

04/15/2019 at 09:08AM

31
#>439 - alekfed / @alek_fed

04/15/2019 at 09:07AM

33
#>528 - alekfed / @alek_fed

04/15/2019 at 09:05AM