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

765 active golfers, 2584 entries

Leaderboard (lowest score wins):
16
#541 - slawry00 / @slawry00

02/01/2020 at 05:41AM

16
#542 - Steffen / @Pions90

02/16/2020 at 02:30PM

16
#543 - Ivan / @SpiritHNTR

03/18/2020 at 12:38PM

16
#544 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:51PM

16
#545 - Mack Hutsell / @sellshuts

05/24/2020 at 07:30PM

16
#546 - otfsenter / @otfsenter

06/06/2020 at 10:33AM

16
#547 - JL T / @l0f4r0

07/20/2020 at 09:44PM

16
#548 - vito / @vito49999722

08/01/2020 at 10:03AM

16
#549 - Sergio / @SergioVl12

08/16/2020 at 07:47AM

16
#550 - notadevCollins / @NotadevC

08/24/2020 at 02:03AM

16
#551 - Robert Verst / @r_verst

09/02/2020 at 11:42AM

17
#552 - Yannick / @Malnoc

10/09/2018 at 01:51PM

17
#553 - alexche8 / @alexche_8

10/23/2018 at 11:55AM

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

10/26/2018 at 01:33PM

17
#555 - bkdir / @Burak_Dir

10/26/2018 at 09:57PM

17
#556 - Tom Smeding / @TomSmeding

11/05/2018 at 10:17PM

17
#557 - Sören Schellhoff / @Jackokomm

11/17/2018 at 05:31PM

17
#558 - MEschenbacher / @eschenbacher_m

11/29/2018 at 01:45PM

17
#559 - Vending Machine / @storyn26383

12/16/2018 at 06:54AM

17
#560 - Eluded7 / @Eluded71

12/19/2018 at 05:41PM

17
#561 -  Martijn Engler / @MartijnEngler

12/31/2018 at 08:03PM

17
#562 - Brome / @Brome20887421

01/04/2019 at 06:38PM

17
#563 - wrglprmft / @wrglprmft

01/19/2019 at 08:44PM

17
#564 - tenteke / @kuskus3

01/21/2019 at 03:15PM

17
#565 - Chris AtLee / @chrisatlee

03/01/2019 at 09:59PM

17
#566 - Saphire Lattice / @SaphireLattice

03/06/2019 at 11:50AM

17
#567 - Pratik / @prathik_t

04/18/2019 at 08:32AM

17
#568 - Michaël Lévesque-Dion / @mlevesquedion

04/26/2019 at 01:14AM

17
#569 - Karim E.K / @crabdulkarim

05/08/2019 at 04:46PM

17
#570 - Ivan Ho / @ivandaho

05/22/2019 at 08:00AM