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

638 active golfers, 3072 entries

Leaderboard (lowest score wins):
30
#331 - Par Narvi / @ParNarvi

04/01/2014 at 03:07PM

30
#332 - Ole Hansen / @0hansen

06/14/2014 at 06:20PM

30
#333 - João Carvalho / @joaoCarvas

07/11/2014 at 10:38AM

30
#334 - madka / @lachrimae_pavan

08/03/2014 at 08:10PM

30
#335 - Zapata / @Incredible_JFP

08/17/2014 at 08:34PM

30
#336 - Matt / @mcr05

03/01/2015 at 11:52AM

30
#337 - dosmanak / @dosmanak

03/09/2015 at 02:54PM

30
#338 - Benny Wong / @bdotdub

04/15/2015 at 08:44PM

30
#339 - Andreas Carben / @meiner_eins

04/26/2015 at 01:30PM

30
#340 - Seth Yoder / @McMire315

06/24/2015 at 07:59PM

30
#341 - Ilya / @evilguc

10/08/2015 at 02:29PM

30
#342 - Mister Knister / @vimgolf_ctrl_x

03/22/2016 at 02:30PM

30
#343 - Omer Lachish / @rauchy

04/17/2016 at 10:15AM

30
#344 - Michal Sylwester / @msylw

05/20/2016 at 04:53AM

30
#345 - Hans Yelek / @hans_yelek

01/11/2017 at 03:04AM

30
#346 - Daniel / @Daniel00288663

04/18/2017 at 11:11AM

30
#347 - yqu212 / @yqu212

07/27/2018 at 12:43PM

30
#348 - Joel Eriksson / @OwariDa

04/11/2019 at 01:51PM

31
#349 - Devin Gray / @devinagray

10/04/2013 at 02:12AM

31
#350 - Zenk Alia / @zenkalia

10/17/2013 at 01:07AM

31
#351 - yoohey / @yoohey_m

10/17/2013 at 03:30PM

31
#352 - cj / @cj01101

10/18/2013 at 10:05PM

31
#353 - Roger Bongers / @RogerBongers

10/23/2013 at 03:30AM

31
#354 - moo goo / @m00g000

10/30/2013 at 07:05PM

31
#355 - Ben Nak / @BbB8nNn

11/03/2013 at 06:05PM

31
#356 - Erez Shinan / @erezsh

11/05/2013 at 01:49PM

31
#357 - Daniel Marjenburgh / @dmarjenburgh

11/19/2013 at 09:33AM

31
#358 - Tosoa Bacca / @elsifaka

11/21/2013 at 08:35AM

31
#359 - Alex Rutkowski / @alexmarie84

12/04/2013 at 10:31PM

31
#360 - Guy Rozen / @HolyEggplant

12/17/2013 at 01:56PM