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

114 active golfers, 421 entries

Leaderboard (lowest score wins):
19
#61 - Hervé Rouault / @hrouault

06/14/2015 at 11:01AM

19
#62 - nulusr / @nulusr

06/17/2015 at 07:52AM

19
#63 - Omar Abou Mrad / @omaraboumrad

06/18/2015 at 02:15PM

19
#64 - Rami Hovi / @hacker_lawyer

05/31/2017 at 06:42PM

19
#65 - James / @Dronak

11/04/2022 at 03:55PM

20
#66 - Blake Tereau / @BlakeTereau

08/17/2015 at 09:59PM

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

10/26/2015 at 07:19PM

20
#68 - RockerZZY / @rocker_zzy

06/29/2020 at 11:48PM

20
#69 - quemeraisc / @quemeraisc

05/23/2022 at 03:23PM

21
#70 - Louis Caruana / @louiecaruana

06/10/2015 at 04:13AM

21
#71 - Tom van der Lee / @TomVdLee

06/12/2015 at 06:47AM

21
#72 - JS / @jjohsan

08/29/2015 at 04:54PM

21
#73 - Mark Brody / @_markbrody

10/16/2015 at 10:08PM

21
#74 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:49PM

22
#75 - Jezen Thomas / @jezenthomas

06/09/2015 at 05:58PM

22
#76 - Geoff Gu / @geoff_gu

06/28/2015 at 07:11AM

22
#77 - Bart / @oneofmanybarts

06/30/2015 at 09:13AM

22
#78 - Louis Burke / @LambdaABeta

07/07/2015 at 06:22PM

22
#79 - alex / @alexAngle8

08/30/2015 at 09:17AM

22
#80 - merphant / @merphant

10/22/2015 at 08:04AM

22
#81 - Olivier Bégassat / @zk_evm

06/14/2023 at 03:44PM

23
#82 - luffy / @raxcoi

06/12/2015 at 03:50AM

26
#83 - Stefan Knudsen / @knud32

06/10/2015 at 05:03AM

26
#84 - jackliusr / @jackliusr

01/14/2016 at 02:53PM

27
#85 - Marcelo Montu / @_mMontu_

06/17/2015 at 05:05PM

27
#86 - Abdo Achkar / @Achkar

08/13/2015 at 08:44AM

28
#87 - Mac Goever / @MacGoever

06/15/2015 at 10:52AM

28
#88 - Teemu Okkonen / @TeemuOkkonen

07/07/2015 at 03:24PM

28
#89 - Endre Galaczi / @galacziendre

08/15/2015 at 09:54PM

28
#90 - Chenut Ludovic / @7Brwa7

04/06/2016 at 01:13PM