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

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

851 active golfers, 2880 entries

Solutions by @delonleonard:
13
#208 - Delon / @delonleonard

12/25/2019 at 04:27AM

14
#>432 - Delon / @delonleonard

12/25/2019 at 04:26AM

15
#>534 - Delon / @delonleonard

12/25/2019 at 04:24AM

16
#>601 - Delon / @delonleonard

12/25/2019 at 04:23AM

17
#>647 - Delon / @delonleonard

12/25/2019 at 03:35AM

18
#>684 - Delon / @delonleonard

12/25/2019 at 03:34AM

19
#>705 - Delon / @delonleonard

12/25/2019 at 03:31AM

20
#>715 - Delon / @delonleonard

12/25/2019 at 03:28AM