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 @dimkino:

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

851 active golfers, 2880 entries

Solutions by @dimkino:
13
#156 - Дима / @dimkino

05/29/2019 at 09:48PM

14
#>379 - Дима / @dimkino

05/29/2019 at 09:45PM

14
#>379 - Дима / @dimkino

05/29/2019 at 09:48PM

15
#>521 - Дима / @dimkino

05/29/2019 at 09:44PM

16
#>582 - Дима / @dimkino

05/29/2019 at 09:43PM

19
#>704 - Дима / @dimkino

05/29/2019 at 09:42PM

21
#>723 - Дима / @dimkino

05/29/2019 at 09:41PM

24
#>762 - Дима / @dimkino

05/29/2019 at 09:33PM

26
#>776 - Дима / @dimkino

05/29/2019 at 09:32PM