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):
17
#31 - Francois 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

17
#34 - Miłosz Łakomy / @foobar01123

02/29/2020 at 04:37AM

17
#35 - Michel Viktor / @tomkpz

07/27/2021 at 01:22AM

17
#36 - Jean George / @JeanGeo20504212

03/27/2022 at 09:44PM

17
#37 - Janzen / @__Coos

09/29/2022 at 12:19PM

17
#38 - Marco Meinardi / @Kee__no

01/10/2023 at 07:18PM

17
#39 - MonkieeBoi / @MonkieeBoi

02/09/2024 at 11:18AM

17
#40 - Peppa Pig / @PeppaPigSg

06/29/2024 at 06:19AM

17
#41 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

18
#42 - "Smylers" / @Smylers2

06/11/2015 at 02:51PM

18
#43 - Quota / @Quotad

06/12/2015 at 09:02AM

18
#44 - Mutter Mumble / @muttermumble

06/15/2015 at 08:15PM

18
#45 - Jakub Horák / @kubahorak

06/23/2015 at 03:25PM

18
#46 - Peter B / @l0wm4x

08/12/2015 at 08:23PM

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

09/26/2015 at 09:56PM

18
#48 - Dimitar Dimitrov / @kurkale6ka

03/16/2016 at 09:28AM

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

05/02/2016 at 05:23PM

18
#50 - jakeroberts / @jakeroberts

05/28/2017 at 01:45PM

18
#51 - Mihai / @mihaicristiant

02/11/2019 at 05:36PM

18
#52 - Lory / @Lory46845742

12/10/2019 at 03:30PM

18
#53 - kok / @kok89428331

07/26/2020 at 07:48AM

18
#54 - Adam / @Adam75625825

02/03/2021 at 01:01PM

18
#55 - treb / @treb03683130

03/11/2021 at 01:47PM

18
#56 - pikjes / @pikjes2

03/25/2021 at 11:21AM

18
#57 - Berel94 / @Berel94

03/16/2024 at 10:42PM

19
#58 - Robert Robertson / @RobertC3228687

06/09/2015 at 08:57PM

19
#59 - zmf_tim / @zmf_tim

06/11/2015 at 10:27PM

19
#60 - Vivekanandan / @viveklikesyou

06/14/2015 at 03:19AM