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 738 remaining solutions by signing in and submitting your own entry
#739 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

739 active golfers, 2516 entries

Leaderboard (lowest score wins):
16
#511 - tuck cursed on rerB / @19emtuck

10/13/2019 at 05:06PM

16
#512 - roemermeier / @roemermeier

10/18/2019 at 04:48PM

16
#513 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:13AM

16
#514 - 0xNinja / @0x_Ninja

10/25/2019 at 08:24AM

16
#515 - Jason Chen / @chezbgone

10/27/2019 at 08:53PM

16
#516 - GrimmT / @GrimmT10

11/01/2019 at 06:31PM

16
#517 - Kevin Yokley / @kyokley19

11/03/2019 at 07:09PM

16
#518 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:28PM

16
#519 - None / @sh1chuang

12/30/2019 at 02:50PM

16
#520 - JimmyGymglish / @JGymglish

01/02/2020 at 12:29PM

16
#521 - slawry00 / @slawry00

02/01/2020 at 05:41AM

16
#522 - Steffen / @Pions90

02/16/2020 at 02:30PM

16
#523 - Ivan / @SpiritHNTR

03/18/2020 at 12:38PM

16
#524 - GenericHardwareGamer / @GnrikHrdwrGamer

04/09/2020 at 12:54PM

16
#525 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:51PM

16
#526 - Mack Hutsell / @sellshuts

05/24/2020 at 07:30PM

16
#527 - otfsenter / @otfsenter

06/06/2020 at 10:33AM

16
#528 - JL T / @l0f4r0

07/20/2020 at 09:44PM

16
#529 - vito / @vito49999722

08/01/2020 at 10:03AM

17
#530 - Yannick / @Malnoc

10/09/2018 at 01:51PM

17
#531 - alexche8 / @alexche_8

10/23/2018 at 11:55AM

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

10/26/2018 at 01:33PM

17
#533 - bkdir / @Burak_Dir

10/26/2018 at 09:57PM

17
#534 - Tom Smeding / @TomSmeding

11/05/2018 at 10:17PM

17
#535 - Sören Schellhoff / @Jackokomm

11/17/2018 at 05:31PM

17
#536 - MEschenbacher / @eschenbacher_m

11/29/2018 at 01:45PM

17
#537 - Vending Machine / @storyn26383

12/16/2018 at 06:54AM

17
#538 - Eluded7 / @Eluded71

12/19/2018 at 05:41PM

17
#539 -  Martijn Engler / @MartijnEngler

12/31/2018 at 08:03PM

17
#540 - Brome / @Brome20887421

01/04/2019 at 06:38PM