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

815 active golfers, 2748 entries

Leaderboard (lowest score wins):
13
#211 - koyumeishi / @koyumeishi_

04/02/2020 at 04:34PM

13
#212 - Rodrigo V. Lopes / @rodvlopes

04/03/2020 at 03:49PM

13
#213 - Kumar Ankur / @k_ankur

04/10/2020 at 11:56AM

13
#214 - edvrds / @edvrds

04/14/2020 at 10:22AM

13
#215 - Moatvald / @moatvald

04/18/2020 at 09:08AM

13
#216 - Sikker Rosendal / @srosendaldk

04/18/2020 at 11:41AM

13
#217 - Victor / @victor_rma

04/24/2020 at 10:06PM

13
#218 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 09:05AM

13
#219 - ryan carins / @ryan_carins

05/09/2020 at 10:12PM

13
#220 - 于吉星 / @fishermryn

05/25/2020 at 09:09AM

13
#221 - RockerZZY / @rocker_zzy

05/27/2020 at 02:44PM

13
#222 - Matt DB / @MattDB12

06/07/2020 at 07:59PM

13
#223 - Kevin Keefe / @KevinKeefe5

06/12/2020 at 05:57PM

13
#224 - Dirty Harry / @TateDirty

06/14/2020 at 09:23PM

13
#225 - Karol Łukaszewicz / @Karolukaszewicz

06/25/2020 at 08:15AM

13
#226 - Ming Dai / @MingDai2

06/30/2020 at 05:07AM

13
#227 - The Oalrus / @mizay7

06/30/2020 at 10:29PM

13
#228 - speisz / @speiszc

07/01/2020 at 10:30PM

13
#229 - 大矢元海 / @008Genkai

07/05/2020 at 06:19AM

13
#230 - L Z / @unidevel

07/06/2020 at 01:24PM

13
#231 - majo senf / @majo_senf

07/14/2020 at 11:25AM

13
#232 - Bob / @Bob75461026

07/17/2020 at 04:21PM

13
#233 - PK / @pkeugine

07/26/2020 at 01:59AM

13
#234 - Du Phan / @fehiepsi

08/04/2020 at 12:12PM

13
#235 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 01:19AM

13
#236 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:14PM

13
#237 - Андрей / @appomsk

08/16/2020 at 05:23PM

13
#238 - akouryy / @akouryy1

09/15/2020 at 06:19AM

13
#239 - Ivan Kwong / @IvanKwong5

09/27/2020 at 09:18AM

13
#240 - lamtt77 / @lamtt77

10/09/2020 at 07:21AM