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
#481 - a1exwang / @ice_b0und

09/05/2016 at 06:19AM

22
#482 - nixi3 / @Nixi3cc

09/05/2016 at 09:25AM

22
#483 - claytron / @claytron

09/20/2016 at 06:42PM

22
#484 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 10:46PM

22
#485 - Put me on your list tyrants / @electronjunkie

10/23/2016 at 08:22PM

22
#486 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 04:08PM

22
#487 - Adi Ron / @notadiron

03/10/2017 at 07:05PM

22
#488 - Reinaldo Astudillo / @astudillor

03/22/2017 at 12:18PM

22
#489 - Jenny Johnson / @Kippz07

05/11/2017 at 11:34AM

22
#490 - Will Gunther / @WillGunther

06/11/2017 at 08:27PM

22
#491 - Stop and think / @ms_uncountable

07/06/2017 at 07:19PM

22
#492 - Geoff / @RealGeoffErwin

09/29/2017 at 01:55PM

22
#493 - Saul Hardman / @saulhardman

10/06/2017 at 09:33AM

22
#494 - かりうむ / @ka1l

11/20/2017 at 08:47AM

22
#495 - Joachim Wedin / @joachim_wedin

12/13/2017 at 12:53PM

22
#496 - Jacob Tailor / @spydronex

02/12/2018 at 10:20PM

22
#497 - phucvin / @phucvin

02/14/2018 at 04:42PM

22
#498 - banielTimes / @banielTimes

02/18/2018 at 11:54PM

22
#499 - bruno / @LokoPoggi

03/03/2018 at 05:05AM

22
#500 - Pablo / @suspekt007

04/09/2018 at 09:05PM

22
#501 - Oliver G. / @Redbrain18

05/01/2018 at 11:50AM

22
#502 - 石奕心 / @allenshih1

06/07/2018 at 12:47AM

22
#503 - Enricu / @NricU

08/18/2018 at 02:41PM

22
#504 - chenqiqi / @chenqiqi13

03/13/2019 at 06:38AM

22
#505 - albalitz / @_albalitz

06/07/2019 at 10:39AM

22
#506 - majo senf / @majo_senf

06/17/2019 at 09:55AM

22
#507 - Alan Martins Silva / @alanfortlink

09/12/2019 at 08:21PM

22
#508 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 04:13PM

22
#509 - Toby Hawkins / @Toby_Hawkins

03/17/2020 at 01:52AM

22
#510 - Zach Kirby / @zkirby2020

08/12/2020 at 04:25AM