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

702 active golfers, 3520 entries

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

01/15/2021 at 09:47PM

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

01/15/2021 at 09:47PM

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

01/15/2021 at 09:45PM

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

01/15/2021 at 09:43PM

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

01/15/2021 at 09:42PM

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

01/15/2021 at 09:45PM

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

01/15/2021 at 09:40PM

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

01/15/2021 at 12:57AM

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

01/15/2021 at 12:55AM

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

01/15/2021 at 12:45AM

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

01/15/2021 at 12:38AM

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

01/15/2021 at 12:53AM

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

01/15/2021 at 12:54AM

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

01/15/2021 at 12:33AM

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

01/13/2021 at 04:19PM

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

01/13/2021 at 04:32PM