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

692 active golfers, 3444 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
#>187 - floyd / @floyd10086

03/20/2020 at 09:29AM

21
#>210 - floyd / @floyd10086

03/20/2020 at 09:27AM

22
#>220 - floyd / @floyd10086

03/20/2020 at 09:25AM

23
#>227 - floyd / @floyd10086

03/20/2020 at 09:23AM

24
#>232 - floyd / @floyd10086

03/20/2020 at 09:21AM

25
#>244 - floyd / @floyd10086

03/20/2020 at 09:08AM

26
#>273 - floyd / @floyd10086

03/20/2020 at 09:07AM

27
#>296 - floyd / @floyd10086

03/20/2020 at 09:05AM

28
#>328 - floyd / @floyd10086

03/20/2020 at 09:03AM

29
#>347 - floyd / @floyd10086

03/20/2020 at 04:51AM

30
#>379 - floyd / @floyd10086

03/19/2020 at 10:22AM

31
#>442 - floyd / @floyd10086

03/19/2020 at 10:16AM

33
#>529 - floyd / @floyd10086

03/19/2020 at 10:12AM

34
#>569 - floyd / @floyd10086

03/19/2020 at 10:15AM