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):
16
#271 - Matt Aschmann / @ma7hatter

12/27/2019 at 10:05PM

16
#272 - Martin Kauppinen / @MartinKauppinen

08/16/2020 at 01:48PM

16
#273 - mindgitrwx / @mindgitrwx

09/03/2020 at 02:05AM

16
#274 - mevmev / @mevmev8

10/11/2020 at 07:20PM

16
#275 - The Valencian Dev / @thevalenciandev

10/13/2020 at 10:03AM

16
#276 - Ray Dennis / @raysden

12/24/2020 at 10:19PM

17
#277 - Jon Krause / @jkrause314

06/24/2016 at 05:28PM

17
#278 - Birdie McPar / @BirdieMcPar

06/29/2016 at 09:09PM

17
#279 - Girish Gokul / @girishgoku

07/14/2016 at 03:56AM

17
#280 - Quinn From The Pack / @fuck_saturn

07/25/2016 at 11:47AM

17
#281 - Marty Boren / @beanmaximalist

05/05/2017 at 02:46AM

17
#282 - David Gustavsson / @mrGustaphe

06/09/2017 at 09:41AM

17
#283 - Evgeny`s Kindle / @EvgenyKindle

04/23/2018 at 02:54PM

17
#284 - Jo / @Jo59893132

10/25/2018 at 05:51AM

17
#285 - vg / @vg53210350

10/28/2018 at 11:35PM

17
#286 - zenwalker / @zenwalker93

03/10/2019 at 04:30PM

17
#287 - serent / @serent

03/26/2019 at 09:36PM

17
#288 - Scott / @chil2

04/01/2019 at 09:12PM

17
#289 - Neil Struthers / @struthersneil

07/18/2019 at 02:40PM

17
#290 - TimMcGuire / @mcguire

01/31/2020 at 10:13PM

17
#291 - Ryan Nevius / @ryannevius

03/23/2020 at 07:06AM

17
#292 - vito / @vito49999722

08/17/2020 at 07:52PM

17
#293 - RaylanFox / @RaylanFox

10/10/2020 at 04:31PM

17
#294 - Ramūnas Musteikis / @RamnasMusteiki1

10/17/2020 at 11:03AM

17
#295 - Björn Struckmeier / @BjrnStruckmeie1

01/08/2021 at 10:33AM

17
#296 - ._. / @Katharsic

04/24/2022 at 09:12AM

17
#297 - Anaritus / @Anaritus

02/26/2024 at 08:34PM

18
#298 - Cristian Lupașcu / @clupasq

06/24/2016 at 08:20AM

18
#299 - Eduardo / @earada

06/24/2016 at 11:20AM

18
#300 - Kinster Ramscote / @RamscoteAgjbba

06/25/2016 at 10:09AM