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):
28
#271 - Partial SHA1 hash / @25fcag9e

06/06/2014 at 06:50PM

28
#272 - Edric Garran / @edric_garran

06/18/2014 at 12:25AM

28
#273 - Alexey Fedorov / @waterlink000

07/09/2014 at 06:26PM

28
#274 - Michi Loro / @michiloro

07/15/2014 at 11:39AM

28
#275 - Dash / @DashJungle

07/19/2014 at 11:00PM

28
#276 - Tj / @yrddy

08/13/2014 at 06:03AM

28
#277 - Oli Lalonde / @o_lalonde

01/11/2015 at 06:04PM

28
#278 - Evan Coleman / @edc1591

04/15/2015 at 09:20PM

28
#279 - Josh Balloch / @ballouchebag

04/18/2015 at 02:17AM

28
#280 - Faat / @i_faat

01/29/2016 at 03:27PM

28
#281 - Austin Wood / @indiesquidge

02/16/2016 at 06:01PM

28
#282 - vim golf wolfe / @vimwolfe

11/06/2016 at 12:49AM

28
#283 - sijinyuan / @sijinyuan

02/17/2017 at 02:02AM

28
#284 - Harsh Kumar / @datsleepyguy

09/09/2017 at 02:44PM

28
#285 - Frank Rifk / @r1fk

09/02/2018 at 07:27PM

29
#286 - n.st / @0013901644043f9

10/04/2013 at 05:37AM

29
#287 - James / @Dronak

10/07/2013 at 02:43PM

29
#288 - Sam Burk / @smwbk

11/08/2013 at 04:03PM

29
#289 - Rafael Rendon Pablo / @__rendon__

12/13/2013 at 08:42PM

29
#290 - Kasper Lauritzen / @KPLauritzen

12/15/2013 at 02:17PM

29
#291 - Josh Shepard / @_kingsley

01/19/2014 at 07:39PM

29
#292 - Francisco J Martin / @aficionado

01/30/2014 at 11:12PM

29
#293 - Павел Шнель / @lic06397

02/04/2014 at 05:26PM

29
#294 - Jack Jacquemmoz / @MozJack

02/27/2014 at 03:50PM

29
#295 - Daniel / @danielpie92

03/09/2014 at 08:45PM

29
#296 - Yann B. / @y__b__y

03/19/2014 at 07:15PM

29
#297 - zhuochun / @zhuochun

04/13/2014 at 04:23AM

29
#298 - Andrew Loucky / @merely_oolong

04/22/2014 at 09:32PM

29
#299 - Grigoriy Alexeev / @GrigoriyAlexeev

08/14/2014 at 06:25AM

29
#300 - Andy Loomis / @alumux

11/08/2015 at 05:56PM