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):
34
#481 - Brian Sullivan / @bmsullivan

01/29/2014 at 10:38PM

34
#482 - Joao Trindade / @JoaoTrindade

01/31/2014 at 01:04PM

34
#483 - Gregory Kielian / @turnbasedsoccer

02/03/2014 at 09:52AM

34
#484 - Will / @VVi11_I_AM

02/07/2014 at 08:20PM

34
#485 - けい / @enkinho

02/24/2014 at 04:36AM

34
#486 - Aidan Brumsickle / @aidanbrumsickle

03/26/2014 at 04:20PM

34
#487 - Dylan Farnsworth / @FarnsworthDylan

04/22/2014 at 12:03AM

34
#488 - Jones / @Libidijones

05/01/2014 at 05:52AM

34
#489 - Solar Powered Robot / @moskrin

05/01/2014 at 02:26PM

34
#490 - mathac / @mathacgolf

05/04/2014 at 09:14PM

34
#491 - Jeff Parent / @jeffparent

05/11/2014 at 01:50PM

34
#492 - jackliusr / @jackliusr

06/28/2014 at 01:46PM

34
#493 - Dmitriy / @_dpy_

08/19/2014 at 06:23PM

34
#494 - Enrico Carlesso / @carlesso

09/10/2014 at 01:06PM

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

10/27/2014 at 12:08PM

34
#496 - Dane Summers / @dsummersl

11/09/2014 at 01:42PM

34
#497 - Jan Novak / @odpadnimail

11/19/2014 at 04:44AM

34
#498 - Yuan Guan / @yuanguan89

03/04/2015 at 11:19AM

34
#499 - William Ott / @oddalot

04/08/2015 at 03:57PM

34
#500 - Shizukesa / @Shizukesa

07/07/2015 at 10:12PM

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

10/21/2015 at 12:29PM

34
#502 - Filippos K. / @filkaris

03/21/2016 at 05:06PM

34
#503 - Henry Dang / @henrydangchs

06/17/2016 at 10:50PM

34
#504 - Yann / @yannstadnicki

02/20/2017 at 09:15AM

34
#505 - 20speedvegan / @ashkevinm

04/12/2017 at 05:41PM

34
#506 - Bennett / @bennettbackward

12/20/2018 at 12:57PM

35
#507 - Corey Glynn / @albedoa

10/19/2013 at 01:06AM

35
#508 - vall / @provall1

11/13/2013 at 10:28AM

35
#509 - Mathieu Larouche / @matdube

11/15/2013 at 08:00PM

35
#510 - WoljaIlpapa / @WoljaIlpapa

12/20/2013 at 02:35AM