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

755 active golfers, 2556 entries

Leaderboard (lowest score wins):
14
#391 - Emil / @emilklindt

02/16/2020 at 09:16PM

14
#392 - KingYames / @JamesZeHunter

02/17/2020 at 04:56AM

14
#393 - floyd / @floyd10086

03/05/2020 at 04:54AM

14
#394 - BnnGolfer / @BnnGolfer

03/20/2020 at 02:21PM

14
#395 - vvaannaa3 / @vvaannaa3

03/23/2020 at 12:55PM

14
#396 - Nathan Hartman / @hnathan918

04/03/2020 at 03:38PM

14
#397 - Nick Lee / @TooManyNickLees

04/05/2020 at 03:08PM

14
#398 - Jason / @roosjason

04/11/2020 at 10:41AM

14
#399 - fedja golf / @FedjaGolf

04/13/2020 at 02:54AM

14
#400 - RaylanFox / @RaylanFox

04/13/2020 at 06:22PM

14
#401 - bluemartian / @bluemartianz59

04/13/2020 at 07:33PM

14
#402 - Ebi / @ehan6

04/19/2020 at 08:13AM

14
#403 - volandkit / @volandkit

04/20/2020 at 07:02PM

14
#404 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:44AM

14
#405 - Jeff Cui / @jeffacce

05/13/2020 at 10:02AM

14
#406 - Quentin Leroy / @qnleroy

05/19/2020 at 06:19AM

14
#407 - David Bragmark / @DBragmark

05/29/2020 at 08:05PM

14
#408 - Valdimar / @genkobar

06/02/2020 at 08:46AM

14
#409 - Yannick / @Yannick88147038

06/07/2020 at 04:23PM

14
#410 - candywrappercrane / @cndwrpprpprcrn

06/12/2020 at 08:19PM

14
#411 - Ed Leafe / @EdLeafe

06/17/2020 at 02:40PM

14
#412 - Felix / @motorente

06/27/2020 at 07:27AM

14
#413 - mocihan / @mocihan

07/01/2020 at 09:49AM

14
#414 - JLObject / @powful_panda

07/04/2020 at 03:22PM

14
#415 - jackmark / @jackmar14540583

07/11/2020 at 04:38AM

14
#416 - Tiago Nascimento / @tigum27

07/18/2020 at 05:40PM

14
#417 - Anil Narayan / @AnilNarayan2013

07/23/2020 at 02:11AM

14
#418 - Saurabh / @Saurabh09299

07/23/2020 at 09:22AM

14
#419 - ぼとぼと / @boto_voto

08/02/2020 at 09:48AM

14
#420 - Vinay Sharma / @VinaySh63956554

08/09/2020 at 01:05PM