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 5bbb82f969a25f0009541350

Applying same text modification in several lines

Remove identical text at the beginning of several lines and the closing parenthesis.

Start file
Assert.ThrowsAsync<Exception>(() => _auction.StartSellingItem());
Assert.ThrowsAsync<Exception>(() => _application.StartBiddingIn(_auction));
Assert.ThrowsAsync<Exception>(() => _auction.HasReceivedJoinRequestFromSniper());
Assert.ThrowsAsync<Exception>(() => _auction.AnnounceClosed());
Assert.ThrowsAsync<Exception>(() => _application.ShowsSniperHasLostAuction());
End file
_auction.StartSellingItem();
_application.StartBiddingIn(_auction);
_auction.HasReceivedJoinRequestFromSniper();
_auction.AnnounceClosed();
_application.ShowsSniperHasLostAuction();

View Diff

1,5c1,5
< Assert.ThrowsAsync<Exception>(() => _auction.StartSellingItem());
< Assert.ThrowsAsync<Exception>(() => _application.StartBiddingIn(_auction));
< Assert.ThrowsAsync<Exception>(() => _auction.HasReceivedJoinRequestFromSniper());
< Assert.ThrowsAsync<Exception>(() => _auction.AnnounceClosed());
< Assert.ThrowsAsync<Exception>(() => _application.ShowsSniperHasLostAuction());
\ No newline at end of file
---
> _auction.StartSellingItem();
> _application.StartBiddingIn(_auction);
> _auction.HasReceivedJoinRequestFromSniper();
> _auction.AnnounceClosed();
> _application.ShowsSniperHasLostAuction();
\ No newline at end of file

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 462 remaining solutions by signing in and submitting your own entry
#463 /home/ck / @_CarlKenny - Score: 70 - 11/12/18 @ 01:34
dF_<Esc>jkkdf_<Esc>j.j.j.j.<C-V>kkkkI_<Esc>jjkkdf_f)<Esc>lxjwwwblxjwwbllxjhxjwllx<Esc>;:;x<BS><BS>x<CR>

0 comments


Created by: @alvesmarcell

463 active golfers, 1610 entries

Leaderboard (lowest score wins):
16
#301 - steve N ӾlvЮ / @xlvio

11/13/2018 at 08:22PM

16
#302 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:31PM

16
#303 - Levi Self / @LeviRSelf

11/18/2018 at 05:55AM

16
#304 - Jess Lim / @Jessica01075434

12/02/2018 at 05:12PM

16
#305 - Mitch / @miffstarr

12/09/2018 at 07:24AM

16
#306 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 04:48PM

16
#307 - Adam Procio / @AdamProcio

12/10/2018 at 02:10AM

16
#308 - sstar / @sstar60015687

12/26/2018 at 09:26AM

16
#309 - AKYS / @G0G0BIKE

12/27/2018 at 02:11AM

16
#310 - Mat / @matpbo

01/09/2019 at 05:18PM

16
#311 - Dmatrix / @Dr_Dmatrix

01/10/2019 at 06:50PM

16
#312 - Kyle Safran / @kylesafran

01/18/2019 at 05:22PM

16
#313 - Deepstack / @deepstackux

01/29/2019 at 03:55PM

16
#314 - HuyHung / @hungdh0x5e

01/31/2019 at 02:36AM

16
#315 - Colby Brown / @colbyabrown

02/11/2019 at 04:38AM

16
#316 - ثامر / @julienborghetti

02/19/2019 at 06:45AM

16
#317 - Zach Miller / @barizachsy

02/27/2019 at 03:07AM

16
#318 - cubemike / @cubemike

03/02/2019 at 03:39PM

16
#319 - Halle Knast / @halleknast

03/10/2019 at 10:30PM

16
#320 - Anthony Catterwell / @ACatterwell

03/11/2019 at 02:09PM

16
#321 - Alan Barnett / @alan23394

04/03/2019 at 08:46PM

16
#322 - Peter Dolan / @PeterDo76228680

04/25/2019 at 11:00PM

16
#323 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:50PM

16
#324 - Sam Lord / @amateurmemetics

04/30/2019 at 12:41PM

16
#325 - James Stidard / @JamesStidard

05/05/2019 at 11:02PM

16
#326 - Phoon / @justflashhim

05/13/2019 at 12:14AM

16
#327 - Nick Yeow / @nickyeow

05/21/2019 at 03:00PM

16
#328 - albalitz / @_albalitz

06/04/2019 at 02:36PM

16
#329 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:57AM

16
#330 - Diego Balseiro / @diegobalseiro

07/10/2019 at 03:25AM