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):
19
#121 - Anthony Ardito / @aardito21

09/26/2016 at 01:03AM

19
#122 - Nico / @_Nico_Caro

09/28/2016 at 04:36PM

19
#123 - trx / @trxdbg

10/11/2016 at 04:19PM

19
#124 - Josh Callender / @Saponifi3d

10/28/2016 at 05:12AM

19
#125 - Bill Ruddock / @biinari

10/31/2016 at 03:36AM

19
#126 - Alan Turing / @alantrng

11/18/2016 at 01:34PM

19
#127 - Vimgolf / @vimgolf987

02/27/2017 at 05:22AM

19
#128 - Angel Chiang / @malakin

03/06/2017 at 07:16PM

19
#129 - Alexander Bessonov / @nonsleepr

03/14/2017 at 09:51PM

19
#130 - Ilya Shakirov / @aelaau

03/20/2017 at 02:25PM

19
#131 - Andreas Anderbach / @anderbacha

03/21/2017 at 11:52AM

19
#132 - Tom BP / @ThosBP

04/24/2017 at 04:18PM

19
#133 - 梧桐王子 / @WutongYujie

04/25/2017 at 04:53AM

19
#134 - Tose / @Toseim

05/04/2017 at 10:23AM

19
#135 - Melvin Cheung / @MelvinCheung

05/25/2017 at 05:15PM

19
#136 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 12:15PM

19
#137 - えるざっぷ / @_elzup_

11/04/2017 at 04:26AM

19
#138 - yukkiy_guitar / @yukkiy_guitar

11/04/2017 at 09:39AM

19
#139 - Turkey Man / @lvturkeyman

11/08/2017 at 05:57PM

19
#140 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:04PM

19
#141 - ParasamGateZero / @ParasamGateZero

01/30/2018 at 11:29AM

19
#142 - DHM / @DHM29978992

04/14/2018 at 03:00AM

19
#143 - Rakesh P / @rakeshpgopal

04/29/2018 at 06:49AM

19
#144 - Daniël De Koker / @daniel_koker

06/28/2018 at 01:28PM

19
#145 - fucus / @fishlovebanana

07/29/2018 at 11:31AM

19
#146 - Coruja Queridinha / @miriamretka

08/24/2018 at 06:56PM

19
#147 - Artūras Zakrevskis / @AZakrevskis

09/27/2018 at 03:05PM

19
#148 - Dax / @zacoxi

11/02/2018 at 10:24AM

19
#149 - name / @name65894813

11/18/2018 at 08:07PM

19
#150 - abgalphabet / @abgalphabet

01/27/2019 at 01:22PM