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

707 active golfers, 2379 entries

Leaderboard (lowest score wins):
16
#481 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:32PM

16
#482 - JosΓ© / @AngelGaldamez

08/26/2019 at 02:23AM

16
#483 - Maxime Turquetil / @maturquetil

08/30/2019 at 10:11AM

16
#484 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:50PM

16
#485 - phe / @phelipetls

09/22/2019 at 02:20PM

16
#486 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 08:30PM

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

10/13/2019 at 05:06PM

16
#488 - roemermeier / @roemermeier

10/18/2019 at 04:48PM

16
#489 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:13AM

16
#490 - 0xNinja / @0x_Ninja

10/25/2019 at 08:24AM

16
#491 - Jason Chen / @chezbgone

10/27/2019 at 08:53PM

16
#492 - GrimmT / @GrimmT10

11/01/2019 at 06:31PM

16
#493 - Kevin Yokley / @kyokley19

11/03/2019 at 07:09PM

16
#494 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:28PM

16
#495 - None / @sh1chuang

12/30/2019 at 02:50PM

16
#496 - JimmyGymglish / @JGymglish

01/02/2020 at 12:29PM

16
#497 - slawry00 / @slawry00

02/01/2020 at 05:41AM

16
#498 - Steffen / @Pions90

02/16/2020 at 02:30PM

16
#499 - Ivan / @SpiritHNTR

03/18/2020 at 12:38PM

16
#500 - GenericHardwareGamer / @GnrikHrdwrGamer

04/09/2020 at 12:54PM

16
#501 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:51PM

16
#502 - Mack Hutsell / @HutsellMack

05/24/2020 at 07:30PM

17
#503 - Yannick / @Malnoc

10/09/2018 at 01:51PM

17
#504 - alexche8 / @alexche_8

10/23/2018 at 11:55AM

17
#505 - βœ–βŽβœ–π”©'π”’π”©π”¦π”³π”’βœ–βŽβœ– / @olivschwab

10/26/2018 at 01:33PM

17
#506 - bkdir / @Burak_Dir

10/26/2018 at 09:57PM

17
#507 - Tom Smeding / @TomSmeding

11/05/2018 at 10:17PM

17
#508 - SΓΆren Schellhoff / @Jackokomm

11/17/2018 at 05:31PM

17
#509 - MEschenbacher / @eschenbacher_m

11/29/2018 at 01:45PM

17
#510 - Vending Machine / @storyn26383

12/16/2018 at 06:54AM