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

621 active golfers, 2968 entries

Leaderboard (lowest score wins):
34
#481 - Russ Adams / @rustushki

12/22/2013 at 08:00PM

34
#482 - Yann Moisan / @YannMoisan

01/01/2014 at 05:30PM

34
#483 - Joel Gärtner / @Jeerok

01/07/2014 at 03:38PM

34
#484 - Hanshuo Tan / @tanhanshuo

01/11/2014 at 05:35AM

34
#485 - Grigoriy Glushko / @grinderrz

01/13/2014 at 08:50AM

34
#486 - sbeaumont / @sbeaumont

01/18/2014 at 02:14AM

34
#487 - Rasmus P / @rasmup

01/21/2014 at 07:35PM

34
#488 - flembo's dad / @Lspacewalker

01/21/2014 at 11:23PM

34
#489 - Mark Wart / @2mando

01/27/2014 at 07:02AM

34
#490 - Brian Sullivan / @bmsullivan

01/29/2014 at 10:38PM

34
#491 - Joao Trindade / @JoaoTrindade

01/31/2014 at 01:04PM

34
#492 - Gregory Kielian / @turnbasedsoccer

02/03/2014 at 09:52AM

34
#493 - Will / @VVi11_I_AM

02/07/2014 at 08:20PM

34
#494 - けい / @enkinho

02/24/2014 at 04:36AM

34
#495 - Aidan Brumsickle / @aidanbrumsickle

03/26/2014 at 04:20PM

34
#496 - Dylan Farnsworth / @FarnsworthDylan

04/22/2014 at 12:03AM

34
#497 - Jones / @Libidijones

05/01/2014 at 05:52AM

34
#498 - Solar Powered Robot / @moskrin

05/01/2014 at 02:26PM

34
#499 - mathac / @mathacgolf

05/04/2014 at 09:14PM

34
#500 - Jeff Parent / @jeffparent

05/11/2014 at 01:50PM

34
#501 - jackliusr / @jackliusr

06/28/2014 at 01:46PM

34
#502 - Dmitriy / @_dpy_

08/19/2014 at 06:23PM

34
#503 - Enrico Carlesso / @carlesso

09/10/2014 at 01:06PM

34
#504 - ЕвгенийВ / @imater

10/27/2014 at 12:08PM

34
#505 - Dane Summers / @dsummersl

11/09/2014 at 01:42PM

34
#506 - Jan Novak / @odpadnimail

11/19/2014 at 04:44AM

34
#507 - Yuan Guan / @yuanguan89

03/04/2015 at 11:19AM

34
#508 - William Ott / @oddalot

04/08/2015 at 03:57PM

34
#509 - Shizukesa / @Shizukesa

07/07/2015 at 10:12PM

34
#510 - Tamas Gal (Tom) / @tamasgal

10/21/2015 at 12:29PM