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
#91 - Charles A. Bouffard / @the_cabouffard

04/05/2015 at 06:20AM

19
#92 - E Both / @enboth

04/13/2015 at 06:29PM

19
#93 - Raj / @brshenoy

04/15/2015 at 10:14PM

19
#94 - Charles Joachim / @cacplate

04/18/2015 at 03:39PM

19
#95 - Mutter Mumble / @muttermumble

06/23/2015 at 04:02PM

19
#96 - Ferdev vimgolf / @fergvimgolf

08/09/2015 at 11:18PM

19
#97 - skrobul / @skrobul

08/15/2015 at 10:51PM

19
#98 - Veritas / @_VeritasL

08/23/2015 at 01:54PM

19
#99 - oscar / @zonza_mas

09/04/2015 at 02:45PM

19
#100 - Kirill Cherkashin / @kirjs

09/07/2015 at 11:37PM

19
#101 - Mike Adams / @davis_cromwell

09/30/2015 at 03:03PM

19
#102 - Peter / @sunirbmag

10/31/2015 at 06:27PM

19
#103 - Darius Smaliukas / @daraz999

11/29/2015 at 04:24PM

19
#104 - Aleksey Zhidkov / @AlexeyZhidkov

01/24/2016 at 05:13AM

19
#105 - Daniel Suh / @18kehops

02/01/2016 at 01:08PM

19
#106 - Smylers / @Smylers2

02/09/2016 at 01:20PM

19
#107 - Janine Cheng / @janineist

02/13/2016 at 11:40AM

19
#108 - Thijs van den Anker / @thijsvdanker

02/15/2016 at 07:25PM

19
#109 - ben kavanagh / @bkava

02/22/2016 at 10:34PM

19
#110 - Saki Gw / @Sakigw

03/25/2016 at 03:30PM

19
#111 - Robber Toe / @robbertoe

04/04/2016 at 01:46AM

19
#112 - Vaughn Cato / @vaughncato

04/28/2016 at 02:58PM

19
#113 - John Goes / @johnwgoes

05/06/2016 at 12:55AM

19
#114 - John Doe Sr. / @johndoe67890543

05/30/2016 at 11:09PM

19
#115 - CM Déjardin ن / @CMDej

05/31/2016 at 08:10AM

19
#116 - Jon Krause / @jkrause314

07/03/2016 at 02:20AM

19
#117 - jdupont655 / @jdupont655

09/02/2016 at 09:14AM

19
#118 - Stephen Aument / @saument

09/03/2016 at 04:17AM

19
#119 - hor1ace / @hor3ace

09/08/2016 at 10:34AM

19
#120 - loki2441 / @loki2441

09/10/2016 at 08:43PM