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):
31
#391 - Yannick / @yannack

05/22/2015 at 10:47AM

31
#392 - Joel Gallant / @joelg236

07/04/2015 at 03:20PM

31
#393 - alex / @alexAngle8

08/23/2015 at 02:29PM

31
#394 - Sergey Semushin / @Predelnik

08/25/2015 at 06:38AM

31
#395 - Ben Vandervalk / @benvvalk

09/20/2015 at 06:32AM

31
#396 - Andrey / @androzhk

10/08/2015 at 01:39PM

31
#397 - Mark Brody / @_markbrody

10/16/2015 at 04:05PM

31
#398 - Chenut Ludovic / @7Brwa7

03/31/2016 at 10:48AM

31
#399 - Isguyra / @isguyra

04/17/2016 at 10:02AM

31
#400 - Tom / @CronutFacts

05/21/2016 at 11:37PM

31
#401 - Will / @obiwan__k3n00bi

07/31/2016 at 06:29PM

31
#402 - caplod / @caplod

03/25/2017 at 02:37PM

31
#403 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 11:07AM

31
#404 - mass / @mass256

07/09/2018 at 08:22AM

31
#405 - royer / @RoyerMoyer1

09/11/2018 at 06:41AM

31
#406 - Benjamin Kiesl / @BenjaminKiesl

10/19/2018 at 12:39PM

31
#407 - Luis Rodriguez / @luisthecoder

11/14/2018 at 08:44PM

31
#408 - james_bunch / @james_bunch

04/21/2019 at 08:17AM

32
#409 - Greg Spurrier / @gregspurrier

10/10/2013 at 02:23AM

32
#410 - evilmoe ☮ / @evilmoe

10/12/2013 at 04:29PM

32
#411 - François Marais / @maraisf

10/25/2013 at 10:26AM

32
#412 - Pieter Kuijpers / @pkuijpers

11/03/2013 at 08:04AM

32
#413 - Kerry Buckley / @kerryb

11/04/2013 at 07:40PM

32
#414 - r/standupshots / @fuckreddit

12/05/2013 at 05:06AM

32
#415 - Domingue Justin / @_jdomingue

12/26/2013 at 02:02AM

32
#416 - Salleyron Julien / @juguul

12/29/2013 at 05:24PM

32
#417 - M K / @max_k42

12/31/2013 at 05:47AM

32
#418 - Christophe de Vienne / @cmdevienne

01/01/2014 at 10:56AM

32
#419 - a / @asdfsdafdsfdsaf

01/04/2014 at 12:47AM

32
#420 - John Amicangelo / @AmicangeloJohn

01/21/2014 at 03:40PM