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):
26
#691 - Graham Singer / @grahamsinger

02/18/2019 at 05:44AM

26
#692 - MGJoe93 / @mgjoe93

03/02/2019 at 06:01PM

27
#693 - Francisco Claude / @fclaude

10/29/2018 at 08:51PM

27
#694 - Jurica / @Jurica34581259

11/14/2018 at 11:09PM

27
#695 - Vim Golfer / @VimGolfer6

07/09/2019 at 11:31AM

28
#696 - Paul Roberts / @paulmr

12/04/2018 at 11:41PM

28
#697 - Mike Wittie / @mike_wittie

01/27/2020 at 10:15PM

28
#698 - {{ profile.name }} / @bytesonly

04/29/2020 at 09:23AM

29
#699 - Eric Moss / @NotEricMoss

11/06/2018 at 02:51AM

29
#700 - mirsemen / @mirsemen1

07/15/2019 at 02:51AM

29
#701 - Matthew Wintersteen / @mattt_w4

01/24/2020 at 02:02AM

29
#702 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 06:03PM

30
#703 - Dax / @daaawx

10/15/2018 at 04:57PM

31
#704 - timebomb / @timebom44359375

01/25/2020 at 10:54PM

32
#705 - Aaron / @_Lordofthevoid_

11/22/2019 at 02:54PM

32
#706 - Muzhou / @Muzhou11

02/01/2020 at 12:52AM

33
#707 - Vim Golf / @VimGolf4

11/02/2018 at 02:03PM

33
#708 - Jonny Wilson / @thejondom

12/22/2018 at 05:46PM

33
#709 - Hunter McGee / @Huntzman56

01/29/2020 at 06:00PM

33
#710 - abhijeet patil / @abhijeetptl5

09/02/2020 at 05:26PM

34
#711 - Dave Brda / @BrdaDave

10/24/2018 at 12:54AM

34
#712 - maxime he / @he_maxime

11/01/2018 at 03:39PM

34
#713 - Urso / @UrsoAcademy

01/31/2019 at 08:31PM

34
#714 - David Hamlin / @dphamlin26

01/31/2020 at 07:25PM

36
#715 - Wes / @Wes36828283

01/28/2020 at 10:11PM

37
#716 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:11PM

37
#717 - Daisuke Ito / @itodais

09/06/2019 at 10:11AM

37
#718 - HungkaiSun / @HungkaiSun

02/01/2020 at 12:56AM

38
#719 - Sheep Island Productions / @island_sheep

01/29/2020 at 08:52PM

38
#720 - mase / @ThiccMase

01/31/2020 at 07:34PM