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

603 active golfers, 2828 entries

Leaderboard (lowest score wins):
32
#421 - Izabel Jelenić / @IzabelJelenic

12/23/2015 at 06:01PM

32
#422 - John Smith / @literacyisgood

02/22/2016 at 09:01PM

32
#423 - iNaKoll / @iNaKoll

05/07/2016 at 06:39PM

32
#424 - Ryan van Rensburg / @rdvr001

07/21/2016 at 09:59AM

32
#425 - TweetDreams / @TweetMusicians

10/09/2016 at 12:17AM

32
#426 - Brian Hall / @_bruab_

04/10/2017 at 02:40PM

32
#427 - Jon Simpson / @NodeStreamer

03/22/2018 at 11:35PM

32
#428 - Joao Figueiredo / @j1fig

09/27/2018 at 03:01PM

33
#429 - RobertT / @techrt2050

10/04/2013 at 03:39PM

33
#430 - Pete Johns / @johnsyweb

10/05/2013 at 07:06AM

33
#431 - Casey Dwyer / @caseydwyer

10/20/2013 at 06:08PM

33
#432 - Billy Ripper / @dirtlamb5

10/23/2013 at 06:00AM

33
#433 - DESCHAMPS Henrick / @H3nr1ck_

10/26/2013 at 07:00PM

33
#434 - Charles H. Leggett / @cleggett

11/06/2013 at 01:20AM

33
#435 - Stefan Schmidt / @stafue

11/11/2013 at 12:31PM

33
#436 - D / @justcallmedrago

12/14/2013 at 11:09PM

33
#437 - Johan Berg / @_berg85

12/25/2013 at 03:19PM

33
#438 - Travis Rodman / @TravisRodman

01/07/2014 at 05:49AM

33
#439 - curist / @curist

01/16/2014 at 02:50AM

33
#440 - Marcin Radomski / @_dextero

01/29/2014 at 10:18AM

33
#441 - Ronny Esterluss / @esterlus

01/29/2014 at 02:41PM

33
#442 - Serhii Balbieko / @balbeko

02/02/2014 at 02:06PM

33
#443 - Marcin Cabaj / @marcincabaj

02/04/2014 at 03:10PM

33
#444 - Julian Arni / @jk_arni

02/07/2014 at 03:36PM

33
#445 - August / @DailyShowRating

02/16/2014 at 05:40PM

33
#446 - Tom / @tomave2014

02/16/2014 at 06:06PM

33
#447 - Piotr Żurkowski / @kareth92

02/23/2014 at 11:51AM

33
#448 - David Barker / @dashleybarker

03/19/2014 at 07:54PM

33
#449 - ZorgroZ / @ZorgroZ

04/10/2014 at 10:27PM

33
#450 - Kane Wallmann / @ToCsIcK

04/27/2014 at 11:33AM