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 533 remaining solutions by signing in and submitting your own entry
#534 /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

534 active golfers, 1842 entries

Leaderboard (lowest score wins):
16
#361 - sstar / @sstar60015687

12/26/2018 at 09:26AM

16
#362 - AKYS / @G0G0BIKE

12/27/2018 at 02:11AM

16
#363 - Mat / @matpbo

01/09/2019 at 05:18PM

16
#364 - Dmatrix / @Dr_Dmatrix

01/10/2019 at 06:50PM

16
#365 - Kyle Safran / @kylesafran

01/18/2019 at 05:22PM

16
#366 - Deepstack / @deepstackux

01/29/2019 at 03:55PM

16
#367 - HuyHung / @hungdh0x5e

01/31/2019 at 02:36AM

16
#368 - Colby Brown / @colbyabrown

02/11/2019 at 04:38AM

16
#369 - ثامر / @julienborghetti

02/19/2019 at 06:45AM

16
#370 - Zach Miller / @barizachsy

02/27/2019 at 03:07AM

16
#371 - cubemike / @cubemike

03/02/2019 at 03:39PM

16
#372 - Halle Knast / @halleknast

03/10/2019 at 10:30PM

16
#373 - Anthony Catterwell / @ACatterwell

03/11/2019 at 02:09PM

16
#374 - Alan Barnett / @alan23394

04/03/2019 at 08:46PM

16
#375 - Peter Dolan / @PeterDo76228680

04/25/2019 at 11:00PM

16
#376 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:50PM

16
#377 - Sam Lord / @amateurmemetics

04/30/2019 at 12:41PM

16
#378 - James Stidard / @JamesStidard

05/05/2019 at 11:02PM

16
#379 - Phoon / @justflashhim

05/13/2019 at 12:14AM

16
#380 - Nick Yeow / @nickyeow

05/21/2019 at 03:00PM

16
#381 - albalitz / @_albalitz

06/04/2019 at 02:36PM

16
#382 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:57AM

16
#383 - Diego Balseiro / @diegobalseiro

07/10/2019 at 03:25AM

16
#384 - Bob Ren / @bobrenjc93

07/31/2019 at 05:28PM

16
#385 - André Reigoto / @AndreReigoto

08/10/2019 at 04:41AM

16
#386 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 04:44PM

16
#387 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:32PM

16
#388 - José / @AngelGaldamez

08/26/2019 at 02:23AM

16
#389 - Maxime Turquetil / @maturquetil

08/30/2019 at 10:11AM

16
#390 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:50PM