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):
45
#601 - Vinni Carlo Caños / @vinnicc

07/31/2019 at 02:37AM

46
#602 - Paulo Romeira / @pauloromeira

08/24/2015 at 08:57AM

46
#603 - 杨洋 / @176795444

08/14/2017 at 12:04PM

47
#604 - Arthur叔 / @Arthurljg

11/05/2013 at 05:05AM

47
#605 - Amy Lim / @chasingkytes

02/03/2014 at 12:04AM

47
#606 - Heron Medeiros / @heronmedeiros

04/13/2014 at 02:14AM

47
#607 - Edmundo Perez / @ingedmundo

12/04/2014 at 10:30PM

47
#608 - Oren Koriat / @KoriatOren

12/21/2018 at 04:05PM

48
#609 - Wojciech Razik / @WojciechRazik

04/05/2014 at 10:40PM

48
#610 - Shunichi Kanade / @shunkana

11/23/2018 at 09:50AM

49
#611 - Quasar Jarosz / @quasarj

01/09/2014 at 03:12AM

49
#612 - Grorco / @grorco

01/28/2019 at 02:44AM

49
#613 - Vim Golfer / @VimGolfer6

08/14/2019 at 11:40AM

51
#614 - Brian Peiris / @brianpeiris

12/22/2013 at 02:02AM

51
#615 - Andy Waite / @andyw8

05/04/2014 at 09:19PM

51
#616 - André Peric Tavares / @andre_peric

07/22/2016 at 02:42PM

51
#617 - お薬手帳 / @iW4Wz6PpCiqyGqH

05/07/2019 at 04:44AM

52
#618 - US Dollar Price / @USDollarPrice

11/04/2013 at 02:39AM

52
#619 - Matt Brown / @Gowabash

01/30/2014 at 01:10AM

52
#620 - Mat / @matpbo

07/18/2019 at 05:43AM

53
#621 - bfontaine / @bfontn

01/28/2014 at 05:43PM

53
#622 - Adam / @askoufish

10/26/2018 at 02:37AM

54
#623 - jorge duran / @jduranroyo

05/18/2019 at 11:28PM

55
#624 - Travis Millott / @ritherz

03/12/2014 at 08:14PM

56
#625 - wilddog64 / @chengkai318

12/17/2013 at 02:50PM

56
#626 - n0nick / @n0nick

01/29/2014 at 08:47AM

57
#627 - Gowtham Madhava / @gowthamgowtham

02/07/2014 at 03:18PM

58
#628 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 01:13PM

59
#629 - Anton Shemerey / @shemerey

01/03/2014 at 06:53PM

62
#630 - ipson_nek / @ipson_nek

03/30/2015 at 03:44PM