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

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

840 active golfers, 2845 entries

Solutions by @kyo89347563:
12
#18 - ky05uk3 / @kyo89347563

12/13/2022 at 01:06AM

13
#>264 - ky05uk3 / @kyo89347563

12/13/2022 at 01:05AM

14
#>482 - ky05uk3 / @kyo89347563

12/13/2022 at 01:03AM

14
#>482 - ky05uk3 / @kyo89347563

12/13/2022 at 01:04AM

15
#>537 - ky05uk3 / @kyo89347563

12/13/2022 at 01:00AM

16
#>610 - ky05uk3 / @kyo89347563

12/13/2022 at 12:59AM

17
#>646 - ky05uk3 / @kyo89347563

12/13/2022 at 12:58AM

42
#>804 - ky05uk3 / @kyo89347563

12/13/2022 at 12:57AM