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

662 active golfers, 2234 entries

Leaderboard (lowest score wins):
30
#601 - Dax / @daaawx

10/15/2018 at 04:57PM

31
#602 - timebomb / @timebom44359375

01/25/2020 at 10:54PM

32
#603 - Aaron / @_Lordofthevoid_

11/22/2019 at 02:54PM

32
#604 - Muzhou / @Muzhou11

02/01/2020 at 12:52AM

33
#605 - Vim Golf / @VimGolf4

11/02/2018 at 02:03PM

33
#606 - Jonny Wilson / @thejondom

12/22/2018 at 05:46PM

33
#607 - Hunter McGee / @Huntzman56

01/29/2020 at 06:00PM

34
#608 - Dave Brda / @BrdaDave

10/24/2018 at 12:54AM

34
#609 - maxime he / @he_maxime

11/01/2018 at 03:39PM

34
#610 - Urso / @UrsoAcademy

01/31/2019 at 08:31PM

34
#611 - David Hamlin / @dphamlin26

01/31/2020 at 07:25PM

36
#612 - Wes / @Wes36828283

01/28/2020 at 10:11PM

37
#613 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:11PM

37
#614 - Daisuke Ito / @itodais

09/06/2019 at 10:11AM

37
#615 - HungkaiSun / @HungkaiSun

02/01/2020 at 12:56AM

38
#616 - Sheep Island Productions / @island_sheep

01/29/2020 at 08:52PM

38
#617 - mase / @ThiccMase

01/31/2020 at 07:34PM

39
#618 - Iuno Jones / @IunoJones

01/30/2020 at 08:55PM

40
#619 - tuyen / @tuyen66827418

11/15/2018 at 01:10PM

40
#620 - John Tuyen / @jtuyen

01/02/2019 at 05:41PM

40
#621 - Sherbert Jackson / @JacksonSherbert

02/01/2020 at 06:25AM

41
#622 - Bruce.Z.Lee / @cvilo4ZLK3OD9WG

10/18/2018 at 02:57AM

41
#623 - Olivia Firth / @OliviaFirth4

01/29/2020 at 06:29PM

41
#624 - TriCierraTops / @CierraWallin

01/30/2020 at 01:42AM

42
#625 - Shawn O'Grady / @ShawnLocalTest

11/03/2018 at 03:47AM

42
#626 - Austin / @Austin57093958

01/22/2020 at 12:59AM

43
#627 - hussein hammoud / @hussein28091366

10/15/2018 at 09:27AM

43
#628 - Rébecca.A / @moon_xiel

11/16/2018 at 02:46PM

43
#629 - UserForVimGolfMSU / @UserMsu

01/27/2020 at 07:16PM

44
#630 - ram / @rambory

01/25/2020 at 07:41AM