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

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

840 active golfers, 2845 entries

Solutions by @dayshade_7:
14
#279 - Markus / @dayshade_7

10/11/2018 at 07:46AM

14
#>368 - Markus / @dayshade_7

05/03/2019 at 09:59AM

15
#>490 - Markus / @dayshade_7

10/11/2018 at 07:44AM

15
#>510 - Markus / @dayshade_7

02/14/2019 at 09:40AM

16
#>538 - Markus / @dayshade_7

10/11/2018 at 07:41AM

17
#>613 - Markus / @dayshade_7

10/11/2018 at 07:39AM

23
#>732 - Markus / @dayshade_7

10/11/2018 at 07:31AM

24
#>747 - Markus / @dayshade_7

10/11/2018 at 07:29AM