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, 2519 entries

Leaderboard (lowest score wins):
17
#541 - wrglprmft / @wrglprmft

01/19/2019 at 08:44PM

17
#542 - tenteke / @kuskus3

01/21/2019 at 03:15PM

17
#543 - Chris AtLee / @chrisatlee

03/01/2019 at 09:59PM

17
#544 - Saphire Lattice / @SaphireLattice

03/06/2019 at 11:50AM

17
#545 - Pratik / @prathik_t

04/18/2019 at 08:32AM

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

04/26/2019 at 01:14AM

17
#547 - Karim E.K / @crabdulkarim

05/08/2019 at 04:46PM

17
#548 - Ivan Ho / @ivandaho

05/22/2019 at 08:00AM

17
#549 - Gar Morley / @garmorley

05/25/2019 at 09:38PM

17
#550 - たぬぽん / @eJYwMbymauWKF4B

06/14/2019 at 06:51AM

17
#551 - Daniel Nadeau / @dnadeau13

06/23/2019 at 03:49AM

17
#552 - Crystal L / @Cartsly

07/13/2019 at 08:25PM

17
#553 - Mr_Djez / @DjezMr

08/05/2019 at 08:05PM

17
#554 - Bruno Machado / @brunosmmachado

10/20/2019 at 12:21PM

17
#555 - Magnus / @praktiskt

11/25/2019 at 06:06PM

17
#556 - David / @dalbertom

12/01/2019 at 09:53PM

17
#557 - Victor Chen / @VictorC36685615

03/05/2020 at 06:59PM

17
#558 - Di Liu / @Skyerliu

06/22/2020 at 04:40PM

18
#559 - Brent Woo / @BrentPWoo

10/10/2018 at 04:42PM

18
#560 - Stefan Stutz / @0VIIXI

10/10/2018 at 06:56PM

18
#561 - m472 / @m4729

10/26/2018 at 11:46PM

18
#562 - Jules / @namebrandloser

10/27/2018 at 12:10AM

18
#563 - ary31415 / @ary31415

10/29/2018 at 07:13AM

18
#564 - Omar Zeidan / @OZeidan97

11/13/2018 at 11:38AM

18
#565 - Chris Vasicek / @aixChris

11/17/2018 at 03:42AM

18
#566 - Álvaro Melgosa / @AlvaroMlgs

11/17/2018 at 02:28PM

18
#567 - Shunichi Kanade / @shunkana

11/18/2018 at 01:45AM

18
#568 - Pablo / @suspekt007

11/25/2018 at 08:02PM

18
#569 - Jacob Xu / @jacobhxu

12/05/2018 at 06:38AM

18
#570 - thvdburgt / @thvdburgt

12/06/2018 at 12:54PM