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

692 active golfers, 3444 entries

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

11/29/2020 at 04:48AM

21
#>210 - chocolate / @chocola81394123

11/29/2020 at 04:47AM

22
#>220 - chocolate / @chocola81394123

11/29/2020 at 04:44AM

23
#>228 - chocolate / @chocola81394123

11/29/2020 at 04:43AM

24
#>232 - chocolate / @chocola81394123

11/29/2020 at 04:42AM

25
#>246 - chocolate / @chocola81394123

11/29/2020 at 04:41AM

26
#>275 - chocolate / @chocola81394123

11/29/2020 at 04:41AM

27
#>297 - chocolate / @chocola81394123

11/29/2020 at 04:33AM

27
#>297 - chocolate / @chocola81394123

11/29/2020 at 04:40AM

28
#>329 - chocolate / @chocola81394123

11/29/2020 at 04:32AM

29
#>347 - chocolate / @chocola81394123

11/29/2020 at 04:30AM

29
#>347 - chocolate / @chocola81394123

11/29/2020 at 04:39AM

32
#>493 - chocolate / @chocola81394123

11/29/2020 at 04:29AM