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):
20
#421 - MA Calero / @GaleonCalero

06/07/2020 at 05:10PM

20
#422 - Sergio / @SergioVl12

08/16/2020 at 06:21AM

20
#423 - vim-golf-requirement / @VRequirement

10/20/2020 at 04:01PM

20
#424 - POSIX / @po6ix

01/22/2022 at 04:26PM

20
#425 - Brandon / @Brandon10678836

08/31/2022 at 09:55PM

20
#426 - vladanscy / @vladanscy

02/24/2023 at 01:00PM

20
#427 - 小世界 / @walilav

10/13/2023 at 06:21AM

21
#428 - Anoop Kumar / @anooplive

06/24/2016 at 12:44AM

21
#429 - Daniel K. / @lan4k

06/24/2016 at 06:53AM

21
#430 - ふぁぼ☆りょっぴ / @tak_jmo6928

06/28/2016 at 11:49PM

21
#431 - Adam Wilson / @adamlemurwilson

07/01/2016 at 04:57PM

21
#432 - Alejandro Claro / @alejandroclaro

07/11/2016 at 02:08PM

21
#433 - isaneba / @isaneba

07/25/2016 at 03:36AM

21
#434 - Stephan Bugnon / @stephanbugnon

08/10/2016 at 03:52PM

21
#435 - George Angelopoulos / @g_usermod

08/12/2016 at 08:44AM

21
#436 - Nabarun Chatterjee / @nabarunch

08/18/2016 at 01:42PM

21
#437 - Albert Mikó / @berci1992

08/25/2016 at 08:40PM

21
#438 - javier castro / @eusipial

09/17/2016 at 03:55AM

21
#439 - Christian Rondeau / @c_rondeau

10/16/2016 at 03:20AM

21
#440 - Markus Bala / @bala4901

11/17/2016 at 01:43AM

21
#441 - Alex Gunning / @XelaGninnug

11/21/2016 at 08:25AM

21
#442 - Rodney Visser / @_Radnus

11/27/2016 at 04:08AM

21
#443 - Markus Lux / @_l0x_

01/04/2017 at 12:26PM

21
#444 - Hans Yelek / @hans_yelek

01/09/2017 at 06:07PM

21
#445 - Mark Brody / @_markbrody

03/23/2017 at 05:15AM

21
#446 - retro / @tryphopp

04/07/2017 at 06:19AM

21
#447 - g-fresh / @gfresh73684651

04/25/2017 at 09:59PM

21
#448 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/26/2017 at 11:25AM

21
#449 - Carl Egbert / @CarlOEgbert

06/09/2017 at 09:10PM

21
#450 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 02:37PM