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

703 active golfers, 3522 entries

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

02/18/2020 at 05:49AM

28
#>334 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:46AM

29
#>353 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:43AM

29
#>353 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:45AM

30
#>385 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:36AM

31
#>448 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:34AM

32
#>500 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:32AM

33
#>537 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:31AM

34
#>578 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:24AM

34
#>578 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:26AM

35
#>590 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:22AM

36
#>603 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:19AM

42
#>644 - Pham Tuan Anh / @anhpt379

02/18/2020 at 05:20AM