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

706 active golfers, 3525 entries

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

02/04/2020 at 10:07AM

20
#>192 - Bachelor / @bachelorwang

02/04/2020 at 10:06AM

21
#>215 - Bachelor / @bachelorwang

02/04/2020 at 10:03AM

22
#>225 - Bachelor / @bachelorwang

02/04/2020 at 10:01AM

23
#>233 - Bachelor / @bachelorwang

02/04/2020 at 10:00AM

24
#>238 - Bachelor / @bachelorwang

02/04/2020 at 09:55AM

25
#>250 - Bachelor / @bachelorwang

02/04/2020 at 09:53AM

26
#>279 - Bachelor / @bachelorwang

02/04/2020 at 09:52AM

27
#>302 - Bachelor / @bachelorwang

02/04/2020 at 09:49AM

28
#>335 - Bachelor / @bachelorwang

02/04/2020 at 09:44AM

29
#>354 - Bachelor / @bachelorwang

02/04/2020 at 09:41AM

30
#>386 - Bachelor / @bachelorwang

02/04/2020 at 09:38AM

31
#>449 - Bachelor / @bachelorwang

02/04/2020 at 09:27AM

32
#>501 - Bachelor / @bachelorwang

02/04/2020 at 09:19AM