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

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

815 active golfers, 2751 entries

Solutions by @james_bunch:
13
#104 - james_bunch / @james_bunch

03/06/2019 at 06:10AM

14
#>340 - james_bunch / @james_bunch

03/06/2019 at 06:07AM

15
#>489 - james_bunch / @james_bunch

03/06/2019 at 06:06AM

16
#>546 - james_bunch / @james_bunch

03/06/2019 at 06:03AM

17
#>605 - james_bunch / @james_bunch

03/06/2019 at 06:01AM

18
#>638 - james_bunch / @james_bunch

03/06/2019 at 05:58AM

19
#>668 - james_bunch / @james_bunch

03/06/2019 at 05:56AM

20
#>679 - james_bunch / @james_bunch

03/06/2019 at 05:53AM

25
#>733 - james_bunch / @james_bunch

03/06/2019 at 05:44AM