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 95 remaining solutions by signing in and submitting your own entry
#96 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

96 active golfers, 280 entries

Leaderboard (lowest score wins):
22
#61 - Jezen Thomas / @jezenthomas

06/09/2015 at 05:58PM

22
#62 - Geoff Gu / @geoff_gu

06/28/2015 at 07:11AM

22
#63 - Bart / @oneofmanybarts

06/30/2015 at 09:13AM

22
#64 - Louis Burke / @LambdaABeta

07/07/2015 at 06:22PM

22
#65 - alex / @alexAngle8

08/30/2015 at 09:17AM

22
#66 - merphant / @merphant

10/22/2015 at 08:04AM

23
#67 - luffy / @raxcoi

06/12/2015 at 03:50AM

26
#68 - James / @Dronak

06/09/2015 at 08:29PM

26
#69 - Stefan Knudsen / @knud32

06/10/2015 at 05:03AM

26
#70 - jackliusr / @jackliusr

01/14/2016 at 02:53PM

27
#71 - Marcelo Montu / @_mMontu_

06/17/2015 at 05:05PM

27
#72 - Abdo Achkar / @Achkar

08/13/2015 at 08:44AM

28
#73 - Mac Goever / @MacGoever

06/15/2015 at 10:52AM

28
#74 - Teemu Okkonen / @TeemuOkkonen

07/07/2015 at 03:24PM

28
#75 - Endre Galaczi / @galacziendre

08/15/2015 at 09:54PM

28
#76 - Chenut Ludovic / @7Brwa7

04/06/2016 at 01:13PM

29
#77 - mnx / @mnxx

10/16/2015 at 03:58AM

30
#78 - Georgi Georgiev / @GeorgievGeorgeS

06/13/2015 at 11:15AM

30
#79 - Ben Hill / @KaizenSoze70

07/01/2017 at 02:19PM

31
#80 - Lieven Keersmaekers / @LievenKeersmaek

06/09/2015 at 05:32PM

31
#81 - John Freeman / @TheJohnFreeman

06/24/2015 at 02:16AM

32
#82 - Alex / @ninjabassist777

06/12/2015 at 09:06PM

32
#83 - DESCHAMPS Henrick / @H3nr1ck_

06/13/2015 at 09:49AM

32
#84 - Ashani Ray / @ashaniray

09/15/2015 at 09:37AM

33
#85 - Samir Sadek / @netsamir

07/20/2015 at 09:21AM

34
#86 - James Pringle / @mathbyjames

06/09/2015 at 08:55PM

34
#87 - Paul / @MapCalculator

06/22/2015 at 11:57PM

35
#88 - Alvaro Muñoz / @pwntester

06/09/2015 at 08:30PM

36
#89 - damien farce / @only15letters

06/10/2015 at 09:35PM

38
#90 - Alphan Yılmaz / @alphanyilmaz

06/27/2015 at 11:33AM