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

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

780 active golfers, 2623 entries

Solutions by @andyyaldoo:
13
#22 - Andy Aldo Dharmawan / @andyyaldoo

10/27/2018 at 01:44AM

13
#>22 - Andy Aldo Dharmawan / @andyyaldoo

10/27/2018 at 01:48AM

14
#>259 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 02:16PM

14
#>261 - Andy Aldo Dharmawan / @andyyaldoo

10/27/2018 at 01:43AM

15
#>448 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 02:27AM

15
#>448 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 02:14PM

16
#>496 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 02:21AM

16
#>497 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 02:14PM

17
#>565 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 05:37AM

18
#>594 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 05:40AM

19
#>623 - Andy Aldo Dharmawan / @andyyaldoo

10/24/2018 at 12:43PM

19
#>625 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 05:36AM

21
#>650 - Andy Aldo Dharmawan / @andyyaldoo

10/24/2018 at 12:42PM

21
#>650 - Andy Aldo Dharmawan / @andyyaldoo

10/25/2018 at 02:20AM