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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 493 remaining solutions by signing in and submitting your own entry
#494 /home/ck / @_CarlKenny - Score: 70 - 11/12/18 @ 01:34
dF_<Esc>jkkdf_<Esc>j.j.j.j.<C-V>kkkkI_<Esc>jjkkdf_f)<Esc>lxjwwwblxjwwbllxjhxjwllx<Esc>;:;x<BS><BS>x<CR>

0 comments


Created by: @alvesmarcell

494 active golfers, 1714 entries

Leaderboard (lowest score wins):
34
#481 - Dave Brda / @BrdaDave

10/24/2018 at 12:54AM

34
#482 - maxime he / @he_maxime

11/01/2018 at 03:39PM

34
#483 - Urso / @UrsoAcademy

01/31/2019 at 08:31PM

37
#484 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:11PM

40
#485 - tuyen / @tuyen66827418

11/15/2018 at 01:10PM

40
#486 - John Tuyen / @jtuyen

01/02/2019 at 05:41PM

41
#487 - Bruce.Z.Lee / @cvilo4ZLK3OD9WG

10/18/2018 at 02:57AM

42
#488 - Shawn O'Grady / @ShawnLocalTest

11/03/2018 at 03:47AM

43
#489 - hussein hammoud / @hussein28091366

10/15/2018 at 09:27AM

43
#490 - Rébecca.A / @moon_xiel

11/16/2018 at 02:46PM

45
#491 - Marcell Alves / @alvesmarcell

10/08/2018 at 04:56PM

46
#492 - aced cibi / @acedcibi

11/29/2018 at 07:58AM

55
#493 - Brendan Holmes / @bdholmes

12/28/2018 at 04:05PM

70
#494 - /home/ck / @_CarlKenny

11/12/2018 at 01:34AM