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

757 active golfers, 2561 entries

Leaderboard (lowest score wins):
13
#211 - Dirty Harry / @TateDirty

06/14/2020 at 09:23PM

13
#212 - Karol Łukaszewicz / @Karolukaszewicz

06/25/2020 at 08:15AM

13
#213 - Ming Dai / @MingDai2

06/30/2020 at 05:07AM

13
#214 - The Oalrus / @mizay7

06/30/2020 at 10:29PM

13
#215 - speisz / @speiszc

07/01/2020 at 10:30PM

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

07/05/2020 at 06:19AM

13
#217 - L Z / @unidevel

07/06/2020 at 01:24PM

13
#218 - majo senf / @majo_senf

07/14/2020 at 11:25AM

13
#219 - Bob / @Bob75461026

07/17/2020 at 04:21PM

13
#220 - PK / @pkeugine

07/26/2020 at 01:59AM

13
#221 - Du Phan / @fehiepsi

08/04/2020 at 12:12PM

13
#222 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 01:19AM

13
#223 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:14PM

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

08/16/2020 at 05:23PM

13
#225 - akouryy / @akouryy1

09/15/2020 at 06:19AM

13
#226 - Ivan Kwong / @IvanKwong5

09/27/2020 at 09:18AM

14
#227 - Walker Boh / @walker_boh

10/08/2018 at 04:33PM

14
#228 - Andrey / @andreyrmg

10/08/2018 at 04:46PM

14
#229 - PRK / @NoMoTo

10/09/2018 at 05:50AM

14
#230 - towc / @MateiCopot

10/09/2018 at 09:17AM

14
#231 - Edouard Piette / @EdPiette

10/09/2018 at 09:25AM

14
#232 - しーまん / @nemusoudane

10/09/2018 at 11:38AM

14
#233 - Benjamin Kiesl / @BenjaminKiesl

10/09/2018 at 03:16PM

14
#234 - Tomoya Ishihama / @ishmt

10/10/2018 at 04:03AM

14
#235 - 中鉢 洋介 / @cyubachi

10/10/2018 at 06:11AM

14
#236 - Steve Bitner / @fourbitbots

10/11/2018 at 03:43AM

14
#237 - dayshade / @dayshade_7

10/11/2018 at 07:46AM

14
#238 - Maxim Kim / @mxmkm

10/11/2018 at 10:43AM

14
#239 - Pak Wing / @_Pak_Wing_

10/11/2018 at 01:15PM

14
#240 - tPenguinLTG / @tpenguinltg

10/13/2018 at 11:36PM