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):
28
#91 - constap / @constap

05/20/2024 at 03:08PM

29
#92 - mnx / @mnxx

10/16/2015 at 03:58AM

30
#93 - Georgi Georgiev / @GeorgievGeorgeS

06/13/2015 at 11:15AM

30
#94 - Ben Hill / @KaizenSoze70

07/01/2017 at 02:19PM

31
#95 - Lieven Keersmaekers / @LievenKeersmaek

06/09/2015 at 05:32PM

31
#96 - John Freeman / @TheJohnFreeman

06/24/2015 at 02:16AM

32
#97 - Alex / @ninjabassist777

06/12/2015 at 09:06PM

32
#98 - DESCHAMPS Henrick / @H3nr1ck_

06/13/2015 at 09:49AM

32
#99 - Ashani Ray / @ashaniray

09/15/2015 at 09:37AM

33
#100 - Samir Sadek / @netsamir

07/20/2015 at 09:21AM

34
#101 - James Pringle / @mathbyjames

06/09/2015 at 08:55PM

34
#102 - Paul / @MapCalculator

06/22/2015 at 11:57PM

34
#103 - Boris / @borisnimcevic

03/15/2021 at 11:31AM

35
#104 - Alvaro Muñoz / @pwntester

06/09/2015 at 08:30PM

35
#105 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 05:09PM

36
#106 - damien farce / @only15letters

06/10/2015 at 09:35PM

38
#107 - Alphan Yılmaz / @alphanyilmaz

06/27/2015 at 11:33AM

39
#108 - Wlad / @wladston

06/09/2015 at 06:02PM

48
#109 - Markus Schnell / @m_schnell

06/13/2015 at 07:52AM

52
#110 - Gabriel Magno / @GabrielMagno

06/09/2015 at 07:02PM

52
#111 - yokibahim / @yokibahim

10/21/2019 at 07:37PM

54
#112 - Jurica / @Jurica34581259

12/06/2018 at 04:10AM

78
#113 - Dylan Herina / @dpherina

10/16/2024 at 04:16AM

85
#114 - hidnasio / @hidnasio

06/15/2015 at 12:05AM