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

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

692 active golfers, 3444 entries

Solutions by @EricGodhand4826:
27
#292 - eric huang / @EricGodhand4826

05/05/2019 at 09:12AM

28
#>328 - eric huang / @EricGodhand4826

05/05/2019 at 09:10AM

30
#>379 - eric huang / @EricGodhand4826

05/05/2019 at 09:04AM

31
#>440 - eric huang / @EricGodhand4826

05/05/2019 at 09:00AM

32
#>492 - eric huang / @EricGodhand4826

05/05/2019 at 08:56AM

33
#>528 - eric huang / @EricGodhand4826

05/05/2019 at 08:55AM

39
#>615 - eric huang / @EricGodhand4826

05/05/2019 at 08:16AM

40
#>616 - eric huang / @EricGodhand4826

05/05/2019 at 08:52AM

49
#>662 - eric huang / @EricGodhand4826

05/05/2019 at 07:44AM

52
#>670 - eric huang / @EricGodhand4826

05/05/2019 at 07:41AM

57
#>678 - eric huang / @EricGodhand4826

05/05/2019 at 07:37AM

62
#>681 - eric huang / @EricGodhand4826

05/05/2019 at 07:35AM