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

638 active golfers, 3072 entries

Leaderboard (lowest score wins):
33
#481 - Daniel Wang / @danwang

12/11/2014 at 12:00AM

33
#482 - chvzvhn / @chvzvhn

04/26/2015 at 05:55AM

33
#483 - Pete Sevander / @Sevanteri

11/11/2015 at 11:06AM

33
#484 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 10:23PM

33
#485 - tPenguinLTG / @tpenguinltg

05/15/2016 at 02:39AM

33
#486 - Andres Araya / @arayaandresfco

05/20/2016 at 02:49PM

33
#487 - Carl Egbert / @CarlOEgbert

06/09/2017 at 09:58PM

33
#488 - churaki / @churaki

01/29/2019 at 01:16PM

34
#489 - Benjamin Bergstein / @benbergstein

10/17/2013 at 01:19AM

34
#490 - Thijs Brobbel / @tiesmaster

12/18/2013 at 01:56PM

34
#491 - Augustin Trancart / @autra42

12/18/2013 at 06:08PM

34
#492 - Mike Ballou / @ballou88

12/20/2013 at 11:52PM

34
#493 - Bradford Powell / @dr_bpow

12/22/2013 at 03:10AM

34
#494 - Russ Adams / @rustushki

12/22/2013 at 08:00PM

34
#495 - Yann Moisan / @YannMoisan

01/01/2014 at 05:30PM

34
#496 - Joel Gärtner / @Jeerok

01/07/2014 at 03:38PM

34
#497 - Hanshuo Tan / @tanhanshuo

01/11/2014 at 05:35AM

34
#498 - Grigoriy Glushko / @grinderrz

01/13/2014 at 08:50AM

34
#499 - sbeaumont / @sbeaumont

01/18/2014 at 02:14AM

34
#500 - Rasmus P / @rasmup

01/21/2014 at 07:35PM

34
#501 - changling / @Lspacewalker

01/21/2014 at 11:23PM

34
#502 - Mark Wart / @2mando

01/27/2014 at 07:02AM

34
#503 - Brian Sullivan / @bmsullivan

01/29/2014 at 10:38PM

34
#504 - Joao Trindade / @JoaoTrindade

01/31/2014 at 01:04PM

34
#505 - Gregory Kielian / @turnbasedsoccer

02/03/2014 at 09:52AM

34
#506 - Will / @VVi11_I_AM

02/07/2014 at 08:20PM

34
#507 - けい / @enkinho

02/24/2014 at 04:36AM

34
#508 - Aidan Brumsickle / @aidanbrumsickle

03/26/2014 at 04:20PM

34
#509 - Dylan Farnsworth / @FarnsworthDylan

04/22/2014 at 12:03AM

34
#510 - Jones / @Libidijones

05/01/2014 at 05:52AM