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):
45
#631 - Marcell Alves / @alvesmarcell

10/08/2018 at 04:56PM

45
#632 - Temp / @San5nom

09/27/2019 at 06:04PM

46
#633 - aced cibi / @acedcibi

11/29/2018 at 07:58AM

46
#634 - T Gentry / @TGentry36814419

01/22/2020 at 04:43PM

49
#635 - John Hultman / @JohnHultman1

01/23/2020 at 10:10PM

50
#636 - Kajia Coziahr / @KajiaCoziahr

01/24/2020 at 06:08PM

50
#637 - Jason P Bengtson / @bengtson_p

01/30/2020 at 10:03PM

50
#638 - Connor Van Meter / @connorvm

01/31/2020 at 02:52AM

51
#639 - Colton Weeding / @Doc_Glen_Townie

01/30/2020 at 09:23PM

52
#640 - Alonso Darias / @alonso_darias

01/31/2020 at 07:13AM

55
#641 - Brendan Holmes / @bdholmes

12/28/2018 at 04:05PM

57
#642 - Logan Ladd / @LoganLadd3

01/27/2020 at 04:56AM

62
#643 - Conner / @Connconn7

01/27/2020 at 07:40PM

63
#644 - Andrew Dixon / @acdixon91

02/01/2020 at 03:15AM

66
#645 - Arnold / @Arnold59755

01/22/2020 at 05:40AM

70
#646 - /home/ck / @_CarlKenny

11/12/2018 at 01:34AM

72
#647 - Nicus / @NicusTM

01/30/2020 at 07:03PM

73
#648 - Brian Jore / @JoreBrian

01/30/2020 at 08:15PM

75
#649 - Zac sliker / @Zacsliker

01/29/2020 at 04:19PM

83
#650 - Mance Rayder / @AlexAckerlund

01/21/2020 at 07:56PM

89
#651 - Norhan Abbas / @NorhanAbbas4

01/31/2020 at 11:38PM

93
#652 - Connor / @robotboy_69

01/31/2020 at 03:16AM

96
#653 - Sinnamon / @waddupbrother

01/22/2020 at 08:22PM

103
#654 - Ryan Pallman / @RyanPallman

01/28/2020 at 06:15AM

108
#655 - Logan Dolechek / @LoganDolechek

01/24/2020 at 04:31PM

124
#656 - Goldfishâ„¢ / @ImAGoldenFish

01/27/2020 at 10:34PM

189
#657 - Justin Williams / @DRPEPPERGUY1

01/27/2020 at 07:32PM

207
#658 - Ransom Bowman / @BowmanRansom

01/31/2020 at 01:42AM

276
#659 - Josh Gruber / @Jevitate

01/23/2020 at 02:18AM

285
#660 - Ahmed / @AhmedBNaji

01/29/2020 at 06:11PM