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 799 remaining solutions by signing in and submitting your own entry
#800 alex ekstrom / @alexekstrom07 - Score: 433 - 01/30/20 @ 20:02
i<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><Up><Right><BS>(<Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Esc>ZZ

0 comments


Created by: @alvesmarcell

800 active golfers, 2696 entries

Leaderboard (lowest score wins):
16
#541 - Sam Lord / @amateurmemetics

04/30/2019 at 12:41PM

16
#542 - James Stidard / @JamesStidard

05/05/2019 at 11:02PM

16
#543 - Phoon / @justflashhim

05/13/2019 at 12:14AM

16
#544 - Nick Yeow / @nickyeow

05/21/2019 at 03:00PM

16
#545 - albalitz / @_albalitz

06/04/2019 at 02:36PM

16
#546 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:57AM

16
#547 - Diego Balseiro / @diegobalseiro

07/10/2019 at 03:25AM

16
#548 - Bob Ren / @bobrenjc93

07/31/2019 at 05:28PM

16
#549 - André Reigoto / @AndreReigoto

08/10/2019 at 04:41AM

16
#550 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 04:44PM

16
#551 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:32PM

16
#552 - José / @AngelGaldamez

08/26/2019 at 02:23AM

16
#553 - Maxime Turquetil / @maturquetil

08/30/2019 at 10:11AM

16
#554 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:50PM

16
#555 - phe / @phelipetls

09/22/2019 at 02:20PM

16
#556 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 08:30PM

16
#557 - tuck cursed on rerB / @19emtuck

10/13/2019 at 05:06PM

16
#558 - roemermeier / @roemermeier

10/18/2019 at 04:48PM

16
#559 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:13AM

16
#560 - 0xNinja / @0x_Ninja

10/25/2019 at 08:24AM

16
#561 - Jason Chen / @chezbgone

10/27/2019 at 08:53PM

16
#562 - GrimmT / @GrimmT10

11/01/2019 at 06:31PM

16
#563 - Kevin Yokley / @kyokley19

11/03/2019 at 07:09PM

16
#564 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:28PM

16
#565 - None / @sh1chuang

12/30/2019 at 02:50PM

16
#566 - JimmyGymglish / @JGymglish

01/02/2020 at 12:29PM

16
#567 - slawry00 / @slawry00

02/01/2020 at 05:41AM

16
#568 - Steffen / @Pions90

02/16/2020 at 02:30PM

16
#569 - Ivan / @SpiritHNTR

03/18/2020 at 12:38PM

16
#570 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:51PM