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

621 active golfers, 2968 entries

Leaderboard (lowest score wins):
31
#361 - Ri / @riateche

03/01/2014 at 09:57PM

31
#362 - Sheriuki / @sheriuki

03/29/2014 at 01:07PM

31
#363 - Bambu / @bambumandinga

04/04/2014 at 11:13PM

31
#364 - Nate R / @80vs90

04/08/2014 at 08:50PM

31
#365 - 土ヤ / @ttsuchiya

04/25/2014 at 03:21PM

31
#366 - Norm Fasey / @DeathRay1977

05/01/2014 at 03:43PM

31
#367 - Felix Stridsberg / @FelixStridsberg

05/18/2014 at 01:34PM

31
#368 - Richard Veneracion / @rveneracion

05/25/2014 at 04:41AM

31
#369 - compiled wrong / @compiledwrong

06/17/2014 at 03:39AM

31
#370 - Nico Lehmann / @nilehmann

07/06/2014 at 06:58PM

31
#371 - Bart / @oneofmanybarts

07/16/2014 at 07:18AM

31
#372 - Mauro Persano / @fzort

11/21/2014 at 03:03PM

31
#373 - aborilov / @aborilov

11/25/2014 at 12:15PM

31
#374 - Daniel Rødskog / @daniero

12/12/2014 at 08:56AM

31
#375 - SilentFl / @Silent_Fl

01/26/2015 at 08:26PM

31
#376 - Martin Habovštiak / @kixunil

02/19/2015 at 07:38AM

31
#377 - Javier Carpio / @SaxKazein

02/27/2015 at 02:03PM

31
#378 - Yannick / @yannack

05/22/2015 at 10:47AM

31
#379 - Joel Gallant / @joelg236

07/04/2015 at 03:20PM

31
#380 - alex / @alexAngle8

08/23/2015 at 02:29PM

31
#381 - Sergey Semushin / @Predelnik

08/25/2015 at 06:38AM

31
#382 - Ben Vandervalk / @benvvalk

09/20/2015 at 06:32AM

31
#383 - Andrey / @androzhk

10/08/2015 at 01:39PM

31
#384 - Mark Brody / @_markbrody

10/16/2015 at 04:05PM

31
#385 - Chenut Ludovic / @7Brwa7

03/31/2016 at 10:48AM

31
#386 - Isguyra / @isguyra

04/17/2016 at 10:02AM

31
#387 - Tom / @CronutFacts

05/21/2016 at 11:37PM

31
#388 - Will / @obiwan__k3n00bi

07/31/2016 at 06:29PM

31
#389 - caplod / @caplod

03/25/2017 at 02:37PM

31
#390 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 11:07AM