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

631 active golfers, 3025 entries

Leaderboard (lowest score wins):
34
#511 - ЕвгенийВ / @imater

10/27/2014 at 12:08PM

34
#512 - Dane Summers / @dsummersl

11/09/2014 at 01:42PM

34
#513 - Jan Novak / @odpadnimail

11/19/2014 at 04:44AM

34
#514 - Yuan Guan / @yuanguan89

03/04/2015 at 11:19AM

34
#515 - William Ott / @oddalot

04/08/2015 at 03:57PM

34
#516 - Shizukesa / @Shizukesa

07/07/2015 at 10:12PM

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

10/21/2015 at 12:29PM

34
#518 - Filippos K. / @filkaris

03/21/2016 at 05:06PM

34
#519 - Henry Dang / @henrydangchs

06/17/2016 at 10:50PM

34
#520 - Yann / @yannstad

02/20/2017 at 09:15AM

34
#521 - 20speedvegan / @ashkevinm

04/12/2017 at 05:41PM

34
#522 - Bennett / @bennettbackward

12/20/2018 at 12:57PM

35
#523 - Corey Glynn / @albedoa

10/19/2013 at 01:06AM

35
#524 - vall / @provall1

11/13/2013 at 10:28AM

35
#525 - Mathieu Larouche / @matdube

11/15/2013 at 08:00PM

35
#526 - WoljaIlpapa / @WoljaIlpapa

12/20/2013 at 02:35AM

35
#527 - Jae Won Kim / @jaewone

01/27/2014 at 03:09AM

35
#528 - Tyler van Hensbergen / @tvanhens

02/08/2014 at 10:49PM

35
#529 - Laura Halla / @laura_halla

07/08/2014 at 08:39PM

35
#530 - Keyboard Fire / @KeyboardFire

11/22/2014 at 02:36PM

35
#531 - lilach adir / @leelaRed

04/17/2016 at 09:55AM

35
#532 - Håkon Bråten / @h_braten

04/27/2016 at 07:23PM

35
#533 - jn / @j1357924

10/19/2016 at 07:22PM

36
#534 - TrentonZero / @TrentonZero

10/26/2013 at 12:40PM

36
#535 - Piotr G. / @gbdlin

12/03/2013 at 08:56PM

36
#536 - Pedro B. Coronel / @pbcoronel

01/28/2014 at 05:18PM

36
#537 - Tim Suchanek / @TimSuchanek

02/09/2014 at 09:23PM

36
#538 - jolka / @jolka19296078

05/22/2014 at 03:10PM

36
#539 - Paul Rodgers / @oursjaune

07/13/2014 at 02:45PM

36
#540 - 親の金でシャンプーを買うな / @jajkeqos

04/08/2015 at 04:28PM