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

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

815 active golfers, 2751 entries

Solutions by @lofoneax:
13
#66 - lofoneax / @lofoneax

12/12/2018 at 09:54PM

14
#>311 - lofoneax / @lofoneax

12/12/2018 at 09:23PM

15
#>478 - lofoneax / @lofoneax

12/12/2018 at 09:14PM

16
#>535 - lofoneax / @lofoneax

12/12/2018 at 09:05PM

18
#>635 - lofoneax / @lofoneax

12/12/2018 at 09:01PM

18
#>636 - lofoneax / @lofoneax

01/22/2019 at 04:26AM

20
#>676 - lofoneax / @lofoneax

12/12/2018 at 08:56PM

21
#>685 - lofoneax / @lofoneax

12/12/2018 at 08:52PM

48
#>787 - lofoneax / @lofoneax

12/12/2018 at 02:47AM

146
#>809 - lofoneax / @lofoneax

12/12/2018 at 08:46PM