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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 702 remaining solutions by signing in and submitting your own entry
#703 ren / @wxoc - Score: 134 - 02/10/14 @ 07:05
f,a<CR><C-C><C-C>f,a<CR>j<C-H><C-C><C-C>jf,<CR>kf,a<CR><C-C><C-C>f,a<CR><C-C><C-C>f,<CR>klf,a<CR><C-C><C-C>ggvjjj=vgG<C-V><Esc>jlllllllli<Tab><C-C><C-C>ui    <C-C><C-C>jhhhi    <C-C><C-C>jjhhhi      <C-C><C-C>jhhhhhi      <C-C><C-C>jhhhhhi      <C-C><C-C>:wq<CR>

0 comments


Created by: @udioica

703 active golfers, 3522 entries

Leaderboard (lowest score wins):
19
#1 - Tim Chase / @gumnos

10/04/2013 at 07:16PM

19
#2 - Urtica dioica / @udioica

10/05/2013 at 05:28AM

19
#3 - Petro Тrouq / @zulolosi

10/06/2013 at 10:48PM

19
#4 - Vim Golf / @VimGolfUser1

10/07/2013 at 10:58PM

19
#5 - Stephen Drodge / @sjdrodge

10/07/2013 at 11:11PM

19
#6 - Adam McLain / @adammclain

10/08/2013 at 08:12PM

19
#7 - Jamie Schembri / @shkm

10/09/2013 at 06:24PM

19
#8 - Kerson Hsiao / @KersonHsiao

10/11/2013 at 01:45PM

19
#9 - Ian Liu Rodrigues / @ianliu88

10/11/2013 at 02:26PM

19
#10 - Ingo / @ist3fani

10/12/2013 at 10:26AM

19
#11 - KB / @CommonKb

10/13/2013 at 06:29PM

19
#12 - yaon / @yaon4

10/14/2013 at 02:37PM

19
#13 - Alex Podaras / @apodaras

10/23/2013 at 05:07PM

19
#14 - Michael Perrone / @ThePerrone

10/24/2013 at 02:42PM

19
#15 - thasso / @thasso23

10/26/2013 at 03:16PM

19
#16 - Michael / @thatDeitch

10/31/2013 at 03:56AM

19
#17 - Nathan Wallace / @nathanmwallace

11/05/2013 at 02:53PM

19
#18 - BIHEL Damien / @bihel_d

11/09/2013 at 07:45PM

19
#19 - Jonathan Potter / @nTypeRed

11/11/2013 at 04:25AM

19
#20 - Vito / @GodFather

11/11/2013 at 11:47PM

19
#21 - Edgar Hipp / @EdgarHipp

11/14/2013 at 05:22PM

19
#22 - Alexandros Giouzenis / @agiouz

11/15/2013 at 05:27PM

19
#23 - James Scriven / @JamesDScriven

11/16/2013 at 01:40PM

19
#24 - Cassiano Leal / @cassianoleal

11/21/2013 at 05:52PM

19
#25 - Tim Smart / @tim_smart

12/09/2013 at 10:41PM

19
#26 - Preston Cabe / @PrestonCabe

12/11/2013 at 09:28PM

19
#27 - Vernon Grimshaw / @Vernon_Grimshaw

12/12/2013 at 12:33PM

19
#28 - ynwsoft / @ynwsoft

12/12/2013 at 01:30PM

19
#29 - Joakim L. Engeset / @joakim_eng

12/13/2013 at 02:55PM

19
#30 - Jacob Niehus / @wilywampa

12/18/2013 at 04:17AM