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 576c778ea4896a561b01b4f2

Copy three lines

If the site is up (by some miracle), make the text under every header identical.

Start file
First:
       
Junk text.
Second:
       
Junk text.
Third:
       
Junk text.
Last:
       
Copy these lines,
       
and replace the text
       
in each heading above.
End file
First:
       
Copy these lines,
       
and replace the text
       
in each heading above.
Second:
       
Copy these lines,
       
and replace the text
       
in each heading above.
Third:
       
Copy these lines,
       
and replace the text
       
in each heading above.
Last:
       
Copy these lines,
       
and replace the text
       
in each heading above.

View Diff

With vimgolf.com's uptime issues, I don't know if anyone will get to play this.
It's tricky though, surprisingly so. I hope a few people manage to get it to
load.

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 640 remaining solutions by signing in and submitting your own entry
#641 まきお / @makio0925 - Score: 114 - 10/30/17 @ 10:22
jjjjjjjVjjykkkkkkV@@@<Esc><Esc><Esc>jjjjjjVjjykkkkkkVpjjjjVjkpVPPuuuujjjjjjVjjykkkkkkVpjjjjjjjjVjjykkkkVpjjjjjjVjjykkVp:w<CR>:wq<CR>

0 comments


Created by: @udioica

641 active golfers, 2875 entries

Leaderboard (lowest score wins):
19
#361 - Zed Byrne / @ZeByrne

06/28/2016 at 03:51PM

19
#362 - Amory Schlender / @schlamory

07/08/2016 at 04:30AM

19
#363 - 王运 / @640138017

07/10/2016 at 02:57PM

19
#364 - Ryan van Rensburg / @rdvr001

07/16/2016 at 08:53PM

19
#365 - 青木 美将 / @YoshimasaAoki

08/03/2016 at 08:24AM

19
#366 - Will / @obiwan__k3n00bi

08/14/2016 at 01:06AM

19
#367 - Zdravko Colic / @virtual_key

08/18/2016 at 05:37PM

19
#368 - Codingpotato / @codingpotato

05/07/2017 at 09:43AM

19
#369 - John Smith / @johns32768

06/17/2017 at 11:32AM

19
#370 - Dick Quixly / @DickQuixly

07/05/2017 at 02:29AM

19
#371 - Anne Pacalet / @_Anne_P

07/07/2017 at 11:05AM

19
#372 - Ryan Coopersmith / @RyanCoopersmit1

07/10/2017 at 11:30PM

19
#373 - huho / @huho_xu

08/04/2017 at 07:04PM

19
#374 - Jon Bakies / @jonbakies

10/05/2017 at 08:32PM

19
#375 - Dylan Nelson / @dlnnlsn

06/08/2018 at 05:35AM

19
#376 - Apox / @apox159

07/20/2018 at 07:02PM

19
#377 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:18PM

19
#378 - Florent Jaby / @Floby

10/09/2018 at 11:58AM

19
#379 - Sxcy / @SxcyX

10/22/2018 at 02:09PM

19
#380 - m472 / @m4729

10/27/2018 at 08:42PM

19
#381 - Kasparas Lavrukaitis / @kaslvr

11/07/2018 at 04:06PM

19
#382 - Marcio M Pereira / @iviarcio

01/07/2019 at 01:45PM

19
#383 - Saphire Lattice / @SaphireLattice

03/06/2019 at 07:09AM

19
#384 - Matt Vaughn / @mattttvaughn

08/05/2019 at 02:54AM

19
#385 - Aioriya / @AioriyaDonk

08/27/2019 at 05:39PM

19
#386 - Brandon Harrison / @llAboutB

09/24/2019 at 08:20PM

19
#387 - Steffen / @Pions90

02/14/2020 at 04:53PM

19
#388 - Harsh Raj / @harshraj22aug

03/05/2020 at 04:47PM

19
#389 - volandkit / @volandkit

04/22/2020 at 08:48PM

19
#390 - Demian Martinez / @demianuco

11/02/2020 at 02:49PM