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 @37fatos:

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

692 active golfers, 3444 entries

Solutions by @37fatos:
19
#172 - A A A / @37fatos

01/15/2021 at 09:47PM

20
#>189 - A A A / @37fatos

01/15/2021 at 09:47PM

21
#>210 - A A A / @37fatos

01/15/2021 at 09:45PM

22
#>220 - A A A / @37fatos

01/15/2021 at 09:43PM

23
#>228 - A A A / @37fatos

01/15/2021 at 09:42PM

23
#>228 - A A A / @37fatos

01/15/2021 at 09:45PM

24
#>232 - A A A / @37fatos

01/15/2021 at 09:40PM

25
#>246 - A A A / @37fatos

01/15/2021 at 12:57AM

26
#>276 - A A A / @37fatos

01/15/2021 at 12:55AM

27
#>297 - A A A / @37fatos

01/15/2021 at 12:45AM

28
#>329 - A A A / @37fatos

01/15/2021 at 12:38AM

28
#>329 - A A A / @37fatos

01/15/2021 at 12:53AM

28
#>329 - A A A / @37fatos

01/15/2021 at 12:54AM

29
#>347 - A A A / @37fatos

01/15/2021 at 12:33AM

33
#>529 - A A A / @37fatos

01/13/2021 at 04:19PM

38
#>612 - A A A / @37fatos

01/13/2021 at 04:32PM