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 356 remaining solutions by signing in and submitting your own entry
#357 /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

357 active golfers, 1251 entries

Leaderboard (lowest score wins):
25
#331 - Chris Maher / @chrismaherthe

11/14/2018 at 03:35PM

25
#332 - Alexander Popov / @Alexand01782341

03/03/2019 at 06:59AM

26
#333 - Fabio Branquinho / @branquif

11/07/2018 at 04:27PM

26
#334 - Graham Singer / @grahamsinger

02/18/2019 at 05:44AM

26
#335 - MGJoe93 / @mgjoe93

03/02/2019 at 06:01PM

27
#336 - Francisco Claude / @fclaude

10/29/2018 at 08:51PM

27
#337 - Jurica / @Jurica34581259

11/14/2018 at 11:09PM

28
#338 - Paul Roberts / @paulmr

12/04/2018 at 11:41PM

29
#339 - Eric Moss / @NotEricMoss

11/06/2018 at 02:51AM

30
#340 - Dax / @daaawx

10/15/2018 at 04:57PM

31
#341 - phoibos92@gmail.com / @phoibos92

11/12/2018 at 04:21PM

33
#342 - Vim Golf / @VimGolf4

11/02/2018 at 02:03PM

33
#343 - Jonny Wilson / @thejondom

12/22/2018 at 05:46PM

34
#344 - Dave Brda / @BrdaDave

10/24/2018 at 12:54AM

34
#345 - maxime he / @he_maxime

11/01/2018 at 03:39PM

34
#346 - Urso / @UrsoAcademy

01/31/2019 at 08:31PM

37
#347 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:11PM

40
#348 - tuyen / @tuyen66827418

11/15/2018 at 01:10PM

40
#349 - John Tuyen / @jtuyen

01/02/2019 at 05:41PM

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

10/18/2018 at 02:57AM

42
#351 - Shawn O'Grady / @ShawnLocalTest

11/03/2018 at 03:47AM

43
#352 - hussein hammoud / @hussein28091366

10/15/2018 at 09:27AM

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

11/16/2018 at 02:46PM

45
#354 - Marcell Alves / @alvesmarcell

10/08/2018 at 04:56PM

46
#355 - aced cibi / @acedcibi

11/29/2018 at 07:58AM

55
#356 - Brendan Holmes / @bdholmes

12/28/2018 at 04:05PM

70
#357 - /home/ck / @_CarlKenny

11/12/2018 at 01:34AM