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):
33
#451 - Travis Rodman / @TravisRodman

01/07/2014 at 05:49AM

33
#452 - curist / @curist

01/16/2014 at 02:50AM

33
#453 - Marcin Radomski / @_dextero

01/29/2014 at 10:18AM

33
#454 - Ronny Esterluss / @esterlus

01/29/2014 at 02:41PM

33
#455 - Serhii Balbieko / @balbeko

02/02/2014 at 02:06PM

33
#456 - Marcin Cabaj / @marcincabaj

02/04/2014 at 03:10PM

33
#457 - Julian Arni / @jk_arni

02/07/2014 at 03:36PM

33
#458 - August / @DailyShowRating

02/16/2014 at 05:40PM

33
#459 - Tom / @tomave2014

02/16/2014 at 06:06PM

33
#460 - Piotr ┼╗urkowski / @kareth92

02/23/2014 at 11:51AM

33
#461 - David Barker / @dashleybarker

03/19/2014 at 07:54PM

33
#462 - ZorgroZ / @ZorgroZ

04/10/2014 at 10:27PM

33
#463 - Kane Wallmann / @ToCsIcK

04/27/2014 at 11:33AM

33
#464 - Ilya Strukov / @i1ey

05/23/2014 at 12:31PM

33
#465 - Julian Priestley / @Juzley

06/03/2014 at 04:46PM

33
#466 - glennphillips / @glennphillips

07/09/2014 at 10:07PM

33
#467 - Justin Knag / @justinknag

08/28/2014 at 12:23PM

33
#468 - Daniel Wang / @danwang

12/11/2014 at 12:00AM

33
#469 - chvzvhn / @chvzvhn

04/26/2015 at 05:55AM

33
#470 - Pete Sevander / @Sevanteri

11/11/2015 at 11:06AM

33
#471 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 10:23PM

33
#472 - tPenguinLTG / @tpenguinltg

05/15/2016 at 02:39AM

33
#473 - Andres Araya / @arayaandresfco

05/20/2016 at 02:49PM

33
#474 - Carl Egbert / @CarlOEgbert

06/09/2017 at 09:58PM

33
#475 - churaki / @churaki

01/29/2019 at 01:16PM

34
#476 - Benjamin Bergstein / @benbergstein

10/17/2013 at 01:19AM

34
#477 - Thijs Brobbel / @tiesmaster

12/18/2013 at 01:56PM

34
#478 - Augustin Trancart / @autra42

12/18/2013 at 06:08PM

34
#479 - Mike Ballou / @ballou88

12/20/2013 at 11:52PM

34
#480 - Bradford Powell / @dr_bpow

12/22/2013 at 03:10AM