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

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

706 active golfers, 3525 entries

Solutions by @floyd10086:
19
#166 - floyd / @floyd10086

03/20/2020 at 09:30AM

19
#>166 - floyd / @floyd10086

03/20/2020 at 09:32AM

20
#>192 - floyd / @floyd10086

03/20/2020 at 09:29AM

21
#>215 - floyd / @floyd10086

03/20/2020 at 09:27AM

22
#>225 - floyd / @floyd10086

03/20/2020 at 09:25AM

23
#>233 - floyd / @floyd10086

03/20/2020 at 09:23AM

24
#>238 - floyd / @floyd10086

03/20/2020 at 09:21AM

25
#>250 - floyd / @floyd10086

03/20/2020 at 09:08AM

26
#>279 - floyd / @floyd10086

03/20/2020 at 09:07AM

27
#>303 - floyd / @floyd10086

03/20/2020 at 09:05AM

28
#>335 - floyd / @floyd10086

03/20/2020 at 09:03AM

29
#>354 - floyd / @floyd10086

03/20/2020 at 04:51AM

30
#>386 - floyd / @floyd10086

03/19/2020 at 10:22AM

31
#>449 - floyd / @floyd10086

03/19/2020 at 10:16AM

33
#>538 - floyd / @floyd10086

03/19/2020 at 10:12AM

34
#>579 - floyd / @floyd10086

03/19/2020 at 10:15AM