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):
32
#391 - Pieter Kuijpers / @pkuijpers

11/03/2013 at 08:04AM

32
#392 - Kerry Buckley / @kerryb

11/04/2013 at 07:40PM

32
#393 - r/standupshots / @fuckreddit

12/05/2013 at 05:06AM

32
#394 - Domingue Justin / @_jdomingue

12/26/2013 at 02:02AM

32
#395 - Salleyron Julien / @juguul

12/29/2013 at 05:24PM

32
#396 - M K / @max_k42

12/31/2013 at 05:47AM

32
#397 - Christophe de Vienne / @cmdevienne

01/01/2014 at 10:56AM

32
#398 - a / @asdfsdafdsfdsaf

01/04/2014 at 12:47AM

32
#399 - John Amicangelo / @AmicangeloJohn

01/21/2014 at 03:40PM

32
#400 - Trevor / @bebopninja

01/28/2014 at 08:36PM

32
#401 - Jacob Buys / @wjbuys

01/30/2014 at 12:22PM

32
#402 - Mina Naguib / @minaguib

02/03/2014 at 03:42AM

32
#403 - Vlad-Ștefan Harbuz / @vladh

02/11/2014 at 11:22AM

32
#404 - Spencer McAlpine / @spencermcalpine

02/11/2014 at 01:26PM

32
#405 - Brandon / @xelxebar

02/13/2014 at 09:04AM

32
#406 - barnabaguy / @barnabaguy

02/17/2014 at 12:17AM

32
#407 - Konrad / @zichul

03/08/2014 at 02:46AM

32
#408 - 영훈 / @odjfnrtm

03/09/2014 at 09:47AM

32
#409 - Jean / @ygu0_0

03/19/2014 at 04:09PM

32
#410 - Brian Olpin / @bolpin

03/31/2014 at 05:30PM

32
#411 - d1uckym d1uckym / @d1uckym

04/03/2014 at 02:17AM

32
#412 - Nick Chambers / @fatnickc

05/30/2014 at 10:54PM

32
#413 - ドラゴン井門 / @ido_mazine

06/26/2014 at 09:50AM

32
#414 - yamasita taisuke / @yaasita

07/12/2014 at 04:30AM

32
#415 - Oleg Tsymbalyuk / @oleg_tc

07/17/2014 at 04:50AM

32
#416 - daveseibert / @daveseibert

08/02/2014 at 03:34AM

32
#417 - fa / @twiteciop

08/07/2014 at 08:55AM

32
#418 - simonced / @simonced

09/28/2014 at 02:37AM

32
#419 - Jakob / @jajob

10/10/2014 at 07:35PM

32
#420 - Glauco Pires / @grpires

11/25/2014 at 01:17AM