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):
32
#421 - barnabaguy / @barnabaguy

02/17/2014 at 12:17AM

32
#422 - Konrad / @zichul

03/08/2014 at 02:46AM

32
#423 - 영훈 / @odjfnrtm

03/09/2014 at 09:47AM

32
#424 - Jean / @ygu0_0

03/19/2014 at 04:09PM

32
#425 - Brian Olpin / @bolpin

03/31/2014 at 05:30PM

32
#426 - d1uckym d1uckym / @d1uckym

04/03/2014 at 02:17AM

32
#427 - Nick Chambers / @fatnickc

05/30/2014 at 10:54PM

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

06/26/2014 at 09:50AM

32
#429 - yamasita taisuke / @yaasita

07/12/2014 at 04:30AM

32
#430 - Oleg Tsymbalyuk / @oleg_tc

07/17/2014 at 04:50AM

32
#431 - daveseibert / @daveseibert

08/02/2014 at 03:34AM

32
#432 - fa / @twiteciop

08/07/2014 at 08:55AM

32
#433 - simonced / @simonced

09/28/2014 at 02:37AM

32
#434 - Jakob / @jajob

10/10/2014 at 07:35PM

32
#435 - Glauco Pires / @grpires

11/25/2014 at 01:17AM

32
#436 - Jake Eskel / @JakeEskel

01/04/2015 at 04:01PM

32
#437 - wlads / @wlads

05/23/2015 at 12:53AM

32
#438 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 07:12PM

32
#439 - Izabel Jelenić / @IzabelJelenic

12/23/2015 at 06:01PM

32
#440 - John Smith / @literacyisgood

02/22/2016 at 09:01PM

32
#441 - iNaKoll / @iNaKoll

05/07/2016 at 06:39PM

32
#442 - Ryan van Rensburg / @rdvr001

07/21/2016 at 09:59AM

32
#443 - TweetDreams / @TweetMusicians

10/09/2016 at 12:17AM

32
#444 - Brian Hall / @_bruab_

04/10/2017 at 02:40PM

32
#445 - Jon Simpson / @NodeStreamer

03/22/2018 at 11:35PM

32
#446 - Joao Figueiredo / @j1fig

09/27/2018 at 03:01PM

32
#447 - Herman Stavelin / @HsBruker

04/05/2019 at 02:38PM

32
#448 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 08:52AM

33
#449 - RobertT / @techrt2050

10/04/2013 at 03:39PM

33
#450 - Pete Johns / @johnsyweb

10/05/2013 at 07:06AM