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

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

702 active golfers, 3520 entries

Solutions by @flimsy_giraffe:
19
#174 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:27AM

20
#>193 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:27AM

21
#>214 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:24AM

22
#>224 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:23AM

23
#>232 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:19AM

24
#>236 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:15AM

24
#>236 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:18AM

25
#>250 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:14AM

26
#>280 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:13AM

27
#>302 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:06AM

29
#>352 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:58AM

30
#>384 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:56AM

31
#>452 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:53AM

32
#>499 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:06AM

35
#>590 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:49AM

36
#>602 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:44AM

37
#>612 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:04AM

37
#>613 - Flimsy Giraffe / @flimsy_giraffe

10/05/2023 at 07:14PM

37
#>613 - Flimsy Giraffe / @flimsy_giraffe

10/05/2023 at 07:17PM

38
#>621 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 01:47AM