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

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

702 active golfers, 3520 entries

Solutions by @nickandbro:
19
#182 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

20
#>193 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

21
#>214 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

22
#>225 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

23
#>232 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

24
#>236 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

25
#>250 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

26
#>280 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

27
#>302 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

28
#>334 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

29
#>352 - nickGPT / @nickandbro

08/28/2024 at 06:08PM

30
#>385 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

31
#>452 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

32
#>501 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

35
#>590 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

36
#>603 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

37
#>614 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

38
#>621 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

39
#>624 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

40
#>626 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

41
#>638 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

42
#>644 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

43
#>650 - nickGPT / @nickandbro

08/28/2024 at 06:07PM

44
#>657 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

45
#>660 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

46
#>663 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

47
#>668 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

48
#>670 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

49
#>673 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

51
#>678 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

52
#>681 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

53
#>683 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

54
#>684 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

55
#>685 - nickGPT / @nickandbro

08/28/2024 at 06:06PM

59
#>690 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

61
#>690 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

64
#>693 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

65
#>696 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

68
#>697 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

73
#>698 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

97
#>698 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

103
#>699 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

113
#>701 - nickGPT / @nickandbro

08/28/2024 at 06:05PM

134
#>702 - nickGPT / @nickandbro

08/28/2024 at 06:05PM