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):
21
#451 - James / @Dronak

08/28/2017 at 01:23AM

21
#452 - Paul Sohn / @pksohn

09/07/2017 at 02:56PM

21
#453 - wes / @_weslly

09/23/2017 at 11:05PM

21
#454 - Stephen Watkin / @stephen_watkin

10/07/2017 at 10:02AM

21
#455 - Ron Alexssen / @Ralexhere

10/20/2017 at 06:15PM

21
#456 - Florian Kluck / @KluckF

11/05/2017 at 07:58PM

21
#457 - Bradley M. Small / @BradleySmall

01/03/2018 at 01:18PM

21
#458 - Tachy / @Tachypsychique

01/29/2018 at 01:52PM

21
#459 - martin tourneboeuf / @martintournebo1

01/31/2018 at 09:48PM

21
#460 - Michael D Jones / @biotechjones

02/03/2018 at 09:35PM

21
#461 - slicklash / @slicklash

03/01/2018 at 02:14PM

21
#462 - vimthrowaway / @vimgolf_throw

03/30/2018 at 06:25PM

21
#463 - prince ducaca / @prince_du_caca

09/27/2018 at 11:20PM

21
#464 - PJ Frazer / @pj_frazer

11/22/2018 at 10:18PM

21
#465 - Luis Rodriguez / @luisthecoder

01/06/2019 at 03:15PM

21
#466 - wrglprmft / @wrglprmft

01/19/2019 at 10:12PM

21
#467 - Тёма / @Timon_Surikat

01/31/2019 at 10:32AM

21
#468 - sisi100 / @s1si100

02/26/2019 at 03:55AM

21
#469 - Duke Du / @DukeDu2

03/28/2019 at 02:37AM

21
#470 - Izaak van Dongen / @goedel_gang

04/28/2019 at 01:28AM

21
#471 - nvb46c74f8ih / @nvb46c74f8ih

05/17/2019 at 12:42PM

21
#472 - beew71493 / @beew71493

01/09/2020 at 01:53PM

21
#473 - yuval jacoby / @yuval_jacoby

03/15/2020 at 11:36PM

21
#474 - dotvimrc / @dotvimrc1

07/16/2020 at 06:29AM

21
#475 - Super User / @WayanLW

10/22/2020 at 12:54PM

22
#476 - Laurion Burchall / @laurionb

06/28/2016 at 10:34PM

22
#477 - Oliver Christ / @0liverChrist

07/12/2016 at 09:41PM

22
#478 - Nicholas Vincent DiSanto / @cozzzmo

07/28/2016 at 03:32PM

22
#479 - Andrew Smith / @amazing_andrew

08/13/2016 at 04:28AM

22
#480 - Mort Rainey / @arch_midnight

08/18/2016 at 12:32AM