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

519 active golfers, 1792 entries

Leaderboard (lowest score wins):
16
#361 - cubemike / @cubemike

03/02/2019 at 03:39PM

16
#362 - Halle Knast / @halleknast

03/10/2019 at 10:30PM

16
#363 - Anthony Catterwell / @ACatterwell

03/11/2019 at 02:09PM

16
#364 - Alan Barnett / @alan23394

04/03/2019 at 08:46PM

16
#365 - Peter Dolan / @PeterDo76228680

04/25/2019 at 11:00PM

16
#366 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:50PM

16
#367 - Sam Lord / @amateurmemetics

04/30/2019 at 12:41PM

16
#368 - James Stidard / @JamesStidard

05/05/2019 at 11:02PM

16
#369 - Phoon / @justflashhim

05/13/2019 at 12:14AM

16
#370 - Nick Yeow / @nickyeow

05/21/2019 at 03:00PM

16
#371 - albalitz / @_albalitz

06/04/2019 at 02:36PM

16
#372 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:57AM

16
#373 - Diego Balseiro / @diegobalseiro

07/10/2019 at 03:25AM

16
#374 - Bob Ren / @bobrenjc93

07/31/2019 at 05:28PM

16
#375 - André Reigoto / @AndreReigoto

08/10/2019 at 04:41AM

16
#376 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 04:44PM

16
#377 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:32PM

16
#378 - José / @AngelGaldamez

08/26/2019 at 02:23AM

16
#379 - Maxime Turquetil / @maturquetil

08/30/2019 at 10:11AM

16
#380 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:50PM

17
#381 - Yannick / @Malnoc

10/09/2018 at 01:51PM

17
#382 - alexche8 / @alexche_8

10/23/2018 at 11:55AM

17
#383 - ✖❎✖𝔩'𝔒𝔩𝔦𝔳𝔢✖❎✖ / @olivschwab

10/26/2018 at 01:33PM

17
#384 - bkdir / @Burak_Dir

10/26/2018 at 09:57PM

17
#385 - Tom Smeding / @TomSmeding

11/05/2018 at 10:17PM

17
#386 - tuck / @19emtuck

11/16/2018 at 08:13AM

17
#387 - Sören Schellhoff / @Jackokomm

11/17/2018 at 05:31PM

17
#388 - MEschenbacher / @eschenbacher_m

11/29/2018 at 01:45PM

17
#389 - Vending Machine / @storyn26383

12/16/2018 at 06:54AM

17
#390 - Eluded7 / @Eluded71

12/19/2018 at 05:41PM