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 55771cc4750ef86573003b83

Line 'em up!

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

Start file
foo {
    a   => "a",
    bc  => "bc",
    def => "def",
    ghij => "ghij",
    k => "k",
    lmn => "lmn",
    opqrst => "opqrst",
    uvw => "uvw",
    xyz => "xyz",
}
End file
foo {
    a       => "a",
    bc      => "bc",
    def     => "def",
    ghij    => "ghij",
    k       => "k",
    lmn     => "lmn",
    opqrst  => "opqrst",
    uvw     => "uvw",
    xyz     => "xyz",
}

View Diff

2,10c2,10
<     a   => "a",
<     bc  => "bc",
<     def => "def",
<     ghij => "ghij",
<     k => "k",
<     lmn => "lmn",
<     opqrst => "opqrst",
<     uvw => "uvw",
<     xyz => "xyz",
---
>     a       => "a",
>     bc      => "bc",
>     def     => "def",
>     ghij    => "ghij",
>     k       => "k",
>     lmn     => "lmn",
>     opqrst  => "opqrst",
>     uvw     => "uvw",
>     xyz     => "xyz",

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 93 remaining solutions by signing in and submitting your own entry
#94 hidnasio / @hidnasio - Score: 85 - 06/15/15 @ 00:05
/-<BS>-<BS>=<CR>i <Esc>3.n4.un4.nn4.Nnn3.Nnn6.nn4.nn11111111111<Esc><Esc>1nN.u1.nn3.u4>..u4.nn3.u4.:q<CR>:wq<CR>

0 comments


Created by: @oneandoneis2

94 active golfers, 278 entries

Leaderboard (lowest score wins):
17
#31 - François Marais / @maraisf

04/05/2018 at 06:59PM

17
#32 - DHM / @DHM29978992

04/30/2018 at 05:22PM

17
#33 - Daniël De Koker / @daniel_koker

07/26/2018 at 08:42PM

18
#34 - Smylers / @Smylers2

06/11/2015 at 02:51PM

18
#35 - Quota / @Quotad

06/12/2015 at 09:02AM

18
#36 - Mutter Mumble / @muttermumble

06/15/2015 at 08:15PM

18
#37 - Jakub Horák / @kubahorak

06/23/2015 at 03:25PM

18
#38 - Peter B / @l0wm4x

08/12/2015 at 08:23PM

18
#39 - Tamas Gal (Tom) / @tamasgal

09/26/2015 at 09:56PM

18
#40 - Dimitar Dimitrov / @kurkale6ka

03/16/2016 at 09:28AM

18
#41 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 05:23PM

18
#42 - jakeroberts / @jakeroberts

05/28/2017 at 01:45PM

18
#43 - Mihai / @mihaicristiant

02/11/2019 at 05:36PM

18
#44 - Lory / @Lory46845742

12/10/2019 at 03:30PM

19
#45 - Robert Robertson / @RobertC3228687

06/09/2015 at 08:57PM

19
#46 - Timothée Gauthier / @zmf_tim

06/11/2015 at 10:27PM

19
#47 - Vivekanandan / @viveklikesyou

06/14/2015 at 03:19AM

19
#48 - Hervé Rouault / @hrouault

06/14/2015 at 11:01AM

19
#49 - nulusr / @nulusr

06/17/2015 at 07:52AM

19
#50 - Omar Abou Mrad / @omaraboumrad

06/18/2015 at 02:15PM

19
#51 - Rami Hovi / @hacker_lawyer

05/31/2017 at 06:42PM

20
#52 - Blake Tereau / @BlakeTereau

08/17/2015 at 09:59PM

20
#53 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 07:19PM

21
#54 - Louis Caruana / @louiecaruana

06/10/2015 at 04:13AM

21
#55 - Tom van der Lee / @TomVdLee

06/12/2015 at 06:47AM

21
#56 - JS / @jjohsan

08/29/2015 at 04:54PM

21
#57 - Mark Brody / @_markbrody

10/16/2015 at 10:08PM

21
#58 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:49PM

22
#59 - Jezen Thomas / @jezenthomas

06/09/2015 at 05:58PM

22
#60 - Geoff Gu / @geoff_gu

06/28/2015 at 07:11AM