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

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

863 active golfers, 2915 entries

Solutions by @Fang_Yufan:
14
#340 - Fang Yufan / @Fang_Yufan

12/16/2018 at 09:03AM

15
#>515 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:53AM

16
#>573 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:52AM

25
#>780 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:45AM

26
#>786 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:42AM

27
#>790 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:39AM

28
#>792 - Fang Yufan / @Fang_Yufan

12/12/2018 at 03:44PM

28
#>792 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:33AM

30
#>799 - Fang Yufan / @Fang_Yufan

12/16/2018 at 08:31AM