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

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

702 active golfers, 3520 entries

Solutions by @russellzhaomao:
19
#176 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:30AM

20
#>193 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:27AM

21
#>214 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:26AM

22
#>224 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:25AM

23
#>232 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:23AM

24
#>236 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:23AM

25
#>250 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:21AM

26
#>280 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:20AM

27
#>302 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:19AM

28
#>334 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:18AM

29
#>352 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:17AM

30
#>385 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:15AM

31
#>452 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:13AM

32
#>499 - russellzhaomao / @russellzhaomao

06/09/2022 at 11:10AM