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

709 active golfers, 3565 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
#>194 - floyd / @floyd10086

03/20/2020 at 09:29AM

21
#>217 - floyd / @floyd10086

03/20/2020 at 09:27AM

22
#>227 - floyd / @floyd10086

03/20/2020 at 09:25AM

23
#>235 - floyd / @floyd10086

03/20/2020 at 09:23AM

24
#>240 - floyd / @floyd10086

03/20/2020 at 09:21AM

25
#>252 - floyd / @floyd10086

03/20/2020 at 09:08AM

26
#>281 - floyd / @floyd10086

03/20/2020 at 09:07AM

27
#>305 - floyd / @floyd10086

03/20/2020 at 09:05AM

28
#>337 - floyd / @floyd10086

03/20/2020 at 09:03AM

29
#>356 - floyd / @floyd10086

03/20/2020 at 04:51AM

30
#>388 - floyd / @floyd10086

03/19/2020 at 10:22AM

31
#>451 - floyd / @floyd10086

03/19/2020 at 10:16AM

33
#>540 - floyd / @floyd10086

03/19/2020 at 10:12AM

34
#>581 - floyd / @floyd10086

03/19/2020 at 10:15AM