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):
22
#511 - abhijeet patil / @abhijeetptl5

09/02/2020 at 09:15PM

22
#512 - Philipp Albrecht / @pylbrecht

11/09/2020 at 04:46PM

22
#513 - 김범준 / @kmbmjn

05/10/2021 at 12:35PM

22
#514 - :wq / @write_quit_22

06/30/2021 at 07:37AM

23
#515 - Leix b / @leix_b

07/07/2016 at 07:32PM

23
#516 - joel / @Atree23

07/29/2016 at 11:51PM

23
#517 - Batuhan Bayrakçı / @bay_batu

09/18/2016 at 01:34PM

23
#518 - Bruce Park / @bpark0

09/23/2016 at 06:14PM

23
#519 - Joël Christ / @jjlchrist

10/07/2016 at 02:20PM

23
#520 - Clalani / @clalania

10/14/2016 at 10:59AM

23
#521 - Michael Hoffmann / @micha66545852

02/25/2017 at 08:50PM

23
#522 - Alexander Gryson / @agryson

05/04/2017 at 08:13PM

23
#523 - python-tweepy / @python_tweepy

05/16/2017 at 04:01AM

23
#524 - Will Ernst / @liquidmantis

09/05/2018 at 07:45PM

23
#525 - Jules / @namebrandloser

10/26/2018 at 11:36PM

23
#526 - Slawek Ligus / @ooz_ie

01/14/2019 at 08:00PM

23
#527 - Tyler k the science guy / @tyler_karpe

04/02/2019 at 08:01AM

23
#528 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/13/2019 at 07:52AM

23
#529 - JP / @JP16366170

09/08/2020 at 02:48PM

23
#530 - Camilo A. Matajira / @CamiloMatajira

09/27/2020 at 08:49PM

23
#531 - gpfl0712 / @gpfl0712

04/13/2024 at 10:43PM

24
#532 - Clémence / @Clemence_Neoxia

06/24/2016 at 04:51PM

24
#533 - Adam Collins / @adc613

07/07/2016 at 08:48PM

24
#534 - Jonathan Werner / @jonathanewerner

07/09/2016 at 04:10PM

24
#535 - Nat / @ntzm_

07/15/2016 at 11:26AM

24
#536 - Ealhad / @Ealhad

07/15/2016 at 01:59PM

24
#537 - Ben Baker-Smith / @Bit_Synthesis

07/17/2016 at 05:52AM

24
#538 - Luc Mazardo / @lxtrmz

08/01/2016 at 09:39PM

24
#539 - byte_kgd / @byte_kgd

08/10/2016 at 04:53PM

24
#540 - apan apansson / @apanapanssonapa

08/13/2016 at 03:33PM