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

797 active golfers, 2679 entries

Leaderboard (lowest score wins):
13
#211 - RockerZZY / @rocker_zzy

05/27/2020 at 02:44PM

13
#212 - Matt DB / @MattDB12

06/07/2020 at 07:59PM

13
#213 - Kevin Keefe / @KevinKeefe5

06/12/2020 at 05:57PM

13
#214 - Dirty Harry / @TateDirty

06/14/2020 at 09:23PM

13
#215 - Karol Łukaszewicz / @Karolukaszewicz

06/25/2020 at 08:15AM

13
#216 - Ming Dai / @MingDai2

06/30/2020 at 05:07AM

13
#217 - The Oalrus / @mizay7

06/30/2020 at 10:29PM

13
#218 - speisz / @speiszc

07/01/2020 at 10:30PM

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

07/05/2020 at 06:19AM

13
#220 - L Z / @unidevel

07/06/2020 at 01:24PM

13
#221 - majo senf / @majo_senf

07/14/2020 at 11:25AM

13
#222 - Bob / @Bob75461026

07/17/2020 at 04:21PM

13
#223 - PK / @pkeugine

07/26/2020 at 01:59AM

13
#224 - Du Phan / @fehiepsi

08/04/2020 at 12:12PM

13
#225 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 01:19AM

13
#226 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:14PM

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

08/16/2020 at 05:23PM

13
#228 - akouryy / @akouryy1

09/15/2020 at 06:19AM

13
#229 - Ivan Kwong / @IvanKwong5

09/27/2020 at 09:18AM

13
#230 - lamtt77 / @lamtt77

10/09/2020 at 07:21AM

13
#231 - AAbraxas / @AAbraxas1

10/14/2020 at 06:05PM

13
#232 - Muradil / @Muradil71938308

10/22/2020 at 05:20PM

13
#233 - hepebexè / @hepebexe

11/28/2020 at 09:14PM

13
#234 - Ihor / @Ihor96382508

12/05/2020 at 09:46AM

13
#235 - Neverlandrunner / @neverlandrunner

12/06/2020 at 09:58AM

13
#236 - Jung Yeon Park / @park_jungy

01/03/2021 at 07:04PM

13
#237 - Björn Struckmeier / @BjrnStruckmeie1

01/04/2021 at 06:16PM

13
#238 - Austin Scott / @theMetgame

01/10/2021 at 11:31PM

14
#239 - Walker Boh / @walker_boh

10/08/2018 at 04:33PM

14
#240 - Andrey / @andreyrmg

10/08/2018 at 04:46PM