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

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

703 active golfers, 3522 entries

Solutions by @Thermospore:
41
#639 - Thermospore / @Thermospore

05/20/2024 at 12:10PM

47
#>669 - Thermospore / @Thermospore

05/20/2024 at 12:07PM

48
#>671 - Thermospore / @Thermospore

05/20/2024 at 12:05PM

48
#>671 - Thermospore / @Thermospore

05/20/2024 at 12:06PM

58
#>690 - Thermospore / @Thermospore

05/20/2024 at 12:04PM

112
#>701 - Thermospore / @Thermospore

05/20/2024 at 12:01PM