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

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

692 active golfers, 3444 entries

Solutions by @bachelorwang:
19
#164 - Bachelor / @bachelorwang

02/04/2020 at 10:07AM

20
#>187 - Bachelor / @bachelorwang

02/04/2020 at 10:06AM

21
#>210 - Bachelor / @bachelorwang

02/04/2020 at 10:03AM

22
#>220 - Bachelor / @bachelorwang

02/04/2020 at 10:01AM

23
#>227 - Bachelor / @bachelorwang

02/04/2020 at 10:00AM

24
#>232 - Bachelor / @bachelorwang

02/04/2020 at 09:55AM

25
#>244 - Bachelor / @bachelorwang

02/04/2020 at 09:53AM

26
#>273 - Bachelor / @bachelorwang

02/04/2020 at 09:52AM

27
#>295 - Bachelor / @bachelorwang

02/04/2020 at 09:49AM

28
#>328 - Bachelor / @bachelorwang

02/04/2020 at 09:44AM

29
#>347 - Bachelor / @bachelorwang

02/04/2020 at 09:41AM

30
#>379 - Bachelor / @bachelorwang

02/04/2020 at 09:38AM

31
#>442 - Bachelor / @bachelorwang

02/04/2020 at 09:27AM

32
#>493 - Bachelor / @bachelorwang

02/04/2020 at 09:19AM