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

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

692 active golfers, 3444 entries

Solutions by @hepebexe:
19
#170 - hepebexè / @hepebexe

12/07/2020 at 09:39PM

20
#>189 - hepebexè / @hepebexe

12/07/2020 at 09:38PM

21
#>210 - hepebexè / @hepebexe

12/07/2020 at 09:36PM

22
#>220 - hepebexè / @hepebexe

12/07/2020 at 09:34PM

23
#>228 - hepebexè / @hepebexe

12/07/2020 at 09:19PM

24
#>232 - hepebexè / @hepebexe

12/07/2020 at 08:58PM

25
#>246 - hepebexè / @hepebexe

12/07/2020 at 08:54PM

26
#>275 - hepebexè / @hepebexe

12/07/2020 at 08:45PM

26
#>275 - hepebexè / @hepebexe

12/07/2020 at 08:48PM

26
#>275 - hepebexè / @hepebexe

12/07/2020 at 08:49PM

27
#>297 - hepebexè / @hepebexe

12/06/2020 at 11:13PM

28
#>329 - hepebexè / @hepebexe

12/06/2020 at 11:10PM

28
#>329 - hepebexè / @hepebexe

12/07/2020 at 08:42PM

29
#>347 - hepebexè / @hepebexe

12/06/2020 at 11:05PM

29
#>347 - hepebexè / @hepebexe

12/06/2020 at 11:08PM

30
#>379 - hepebexè / @hepebexe

12/06/2020 at 10:53PM

31
#>444 - hepebexè / @hepebexe

12/06/2020 at 10:40PM

34
#>569 - hepebexè / @hepebexe

12/06/2020 at 10:24PM