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 by @DpetrovicV:

Unlock 5 remaining solutions by signing in and submitting your own entry
Created by: @alvesmarcell

856 active golfers, 2893 entries

Solutions by @DpetrovicV:
14
#407 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:47PM

15
#>528 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:46PM

17
#>649 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:43PM

18
#>686 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:41PM

26
#>781 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:37PM