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 607 remaining solutions by signing in and submitting your own entry
#608 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

608 active golfers, 2872 entries

Leaderboard (lowest score wins):
19
#31 - Christian Welle / @welle_tw

12/19/2013 at 12:10AM

19
#32 - Joshua Appelman / @JoshuaAppelman

12/20/2013 at 08:14PM

19
#33 - jk / @kewnapse

12/20/2013 at 11:45PM

19
#34 - Thiago Prado / @5k1pp3r

12/25/2013 at 04:51PM

19
#35 - chilicuil / @chilicuil

12/26/2013 at 09:10PM

19
#36 - Herrington Darkholme / @nonamesheep

12/31/2013 at 07:37AM

19
#37 - Son of Bongo / @bpcode

01/04/2014 at 01:47PM

19
#38 - oliver mueller / @marcontwit

01/07/2014 at 01:51PM

19
#39 - alex scott / @4l3xsc0tt

01/09/2014 at 01:25PM

19
#40 - Pete Gadomski / @petegadomski

01/28/2014 at 10:54PM

19
#41 - Jeff Terrell / @kyptin

01/30/2014 at 03:21PM

19
#42 - Jakob Lundberg / @JakobLundberg

01/30/2014 at 03:52PM

19
#43 - stevenyap / @stevenyap

01/31/2014 at 03:53AM

19
#44 - Joiey Seeley / @jseeley

02/01/2014 at 04:23AM

19
#45 - Reese Wilson / @shinyvimgolf

02/02/2014 at 09:41AM

19
#46 - Ali El Amine / @Allouch95

02/02/2014 at 10:22AM

19
#47 - grey wolfs / @grey_wolfs

02/03/2014 at 05:30AM

19
#48 - Jonny / @Jonnytron

02/05/2014 at 05:15AM

19
#49 - Johannes Schickling / @_schickling

02/10/2014 at 07:33PM

19
#50 - Geraint Hywel / @g_mawr

02/16/2014 at 06:29PM

19
#51 - Cullen O'Neill / @Kujaon

02/21/2014 at 01:56AM

19
#52 - Rajit Singh / @rajitbsingh

02/21/2014 at 04:55PM

19
#53 - Gennadiy Leyfer / @gleyfer

02/23/2014 at 10:43PM

19
#54 - Trevor Powell / @DoomedBunnies

02/24/2014 at 07:05AM

19
#55 - sprmgik / @sprmgik

03/12/2014 at 08:50AM

19
#56 - Jeremy Gold / @JeremyGold3

03/12/2014 at 10:23AM

19
#57 - John Braxler / @braxler

03/13/2014 at 09:20PM

19
#58 - Nick Bakkegaard / @Bakkemand

03/16/2014 at 09:55AM

19
#59 - Jared Tobin / @jaredtobin

03/20/2014 at 05:26AM

19
#60 - Jeff / @just_geophree

03/29/2014 at 06:07PM