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

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

702 active golfers, 3520 entries

Solutions by @asiragoo:
22
#225 - asirago / @asiragoo

12/12/2023 at 11:47PM

23
#>232 - asirago / @asiragoo

12/12/2023 at 11:46PM

24
#>236 - asirago / @asiragoo

12/12/2023 at 11:04AM

24
#>236 - asirago / @asiragoo

12/12/2023 at 11:44PM

25
#>250 - asirago / @asiragoo

12/12/2023 at 11:01AM

26
#>280 - asirago / @asiragoo

12/12/2023 at 11:00AM

27
#>302 - asirago / @asiragoo

12/12/2023 at 10:56AM

28
#>334 - asirago / @asiragoo

12/12/2023 at 10:45AM

29
#>352 - asirago / @asiragoo

12/12/2023 at 10:42AM

30
#>385 - asirago / @asiragoo

12/12/2023 at 10:35AM

31
#>452 - asirago / @asiragoo

12/12/2023 at 10:33AM

32
#>501 - asirago / @asiragoo

12/12/2023 at 10:29AM

47
#>668 - asirago / @asiragoo

12/12/2023 at 10:18AM

82
#>698 - asirago / @asiragoo

12/12/2023 at 10:10AM