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

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

692 active golfers, 3444 entries

Solutions by @anhpt379:
27
#296 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:49AM

28
#>328 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:46AM

29
#>347 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:43AM

29
#>347 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:45AM

30
#>379 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:36AM

31
#>442 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:34AM

32
#>493 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:32AM

33
#>529 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:31AM

34
#>569 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:24AM

34
#>569 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:26AM

35
#>581 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:22AM

36
#>594 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:19AM

42
#>633 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:20AM