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

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

683 active golfers, 3387 entries

Solutions by @chocola81394123:
20
#184 - chocolate / @chocola81394123

11/29/2020 at 04:48AM

21
#>205 - chocolate / @chocola81394123

11/29/2020 at 04:47AM

22
#>215 - chocolate / @chocola81394123

11/29/2020 at 04:44AM

23
#>222 - chocolate / @chocola81394123

11/29/2020 at 04:43AM

24
#>226 - chocolate / @chocola81394123

11/29/2020 at 04:42AM

25
#>240 - chocolate / @chocola81394123

11/29/2020 at 04:41AM

26
#>269 - chocolate / @chocola81394123

11/29/2020 at 04:41AM

27
#>291 - chocolate / @chocola81394123

11/29/2020 at 04:33AM

27
#>291 - chocolate / @chocola81394123

11/29/2020 at 04:40AM

28
#>323 - chocolate / @chocola81394123

11/29/2020 at 04:32AM

29
#>341 - chocolate / @chocola81394123

11/29/2020 at 04:30AM

29
#>341 - chocolate / @chocola81394123

11/29/2020 at 04:39AM

32
#>487 - chocolate / @chocola81394123

11/29/2020 at 04:29AM