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):
19
#61 - kiho choi / @ArtStandAlone

05/12/2014 at 12:41PM

19
#62 - Federico Galassi / @federicogalassi

05/27/2014 at 10:44AM

19
#63 - Teodor Kotov / @Microfed

05/28/2014 at 11:29PM

19
#64 - Alex Tercete / @alextercete

05/31/2014 at 03:24PM

19
#65 - Robert Bruce / @therealrobru

06/09/2014 at 12:27AM

19
#66 - John Meisner / @jmeisned

06/24/2014 at 05:49PM

19
#67 - kwa / @kwa129

07/05/2014 at 07:22AM

19
#68 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 11:22PM

19
#69 - playalong / @playwithit42

07/07/2014 at 12:34PM

19
#70 - Siddhanathan S. / @siddhanathan

07/15/2014 at 06:56PM

19
#71 - RiccardoSven Risuleo / @riccardosven

07/17/2014 at 06:52AM

19
#72 - Kelsey Ando / @d_chan42

07/23/2014 at 02:54AM

19
#73 - Roman Charushin / @lompee

08/14/2014 at 01:02PM

19
#74 - April Gentle / @chen327684096

08/29/2014 at 03:17AM

19
#75 - Phil Runninger / @PhilRunninger

09/02/2014 at 02:14PM

19
#76 - Aaron Fresh / @AaronFresh7

09/13/2014 at 09:17AM

19
#77 - Michael Comerford / @MComerford1

09/21/2014 at 12:32AM

19
#78 - Mattias Fransson / @azzidoos

09/21/2014 at 05:57PM

19
#79 - Johannes H. / @neVexa

09/22/2014 at 08:47PM

19
#80 - Ivan Brennan / @ivanbrennan

12/01/2014 at 03:13AM

19
#81 - John Diamond / @jcdmnd

12/07/2014 at 03:13PM

19
#82 - kimber gonzalez / @kimberlycreates

01/13/2015 at 07:41PM

19
#83 - low_ghost / @low_ghost_clone

01/17/2015 at 11:08PM

19
#84 - Harm te Hennepe / @HrmtH

01/25/2015 at 02:12AM

19
#85 - mark0829 / @mark0829

01/29/2015 at 11:09AM

19
#86 - Michael Giuffrida / @mgiuffrida

02/22/2015 at 07:10AM

19
#87 - Кисы / @ubermuschi

03/02/2015 at 12:43AM

19
#88 - DrHobo / @_DrHobo_

03/11/2015 at 02:30AM

19
#89 - Bradley Garagan / @bradgaragan

03/18/2015 at 03:15PM

19
#90 - pftb12345 / @pftb12345

03/31/2015 at 06:24AM