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

703 active golfers, 3522 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
#>232 - floyd / @floyd10086

03/20/2020 at 09:23AM

24
#>237 - floyd / @floyd10086

03/20/2020 at 09:21AM

25
#>249 - floyd / @floyd10086

03/20/2020 at 09:08AM

26
#>278 - floyd / @floyd10086

03/20/2020 at 09:07AM

27
#>302 - floyd / @floyd10086

03/20/2020 at 09:05AM

28
#>334 - floyd / @floyd10086

03/20/2020 at 09:03AM

29
#>353 - floyd / @floyd10086

03/20/2020 at 04:51AM

30
#>385 - floyd / @floyd10086

03/19/2020 at 10:22AM

31
#>448 - floyd / @floyd10086

03/19/2020 at 10:16AM

33
#>537 - floyd / @floyd10086

03/19/2020 at 10:12AM

34
#>578 - floyd / @floyd10086

03/19/2020 at 10:15AM