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, 2680 entries

Leaderboard (lowest score wins):
14
#391 - oldandslow / @oldandslow5

11/26/2019 at 04:46PM

14
#392 - Marten Ringwelski / @Marteon27

12/10/2019 at 03:30PM

14
#393 - Jason Neylon / @jasonneylon

12/18/2019 at 07:40PM

14
#394 - Dan Kilman / @dan_kilman

12/18/2019 at 11:27PM

14
#395 - James Casey / @hanavi

12/21/2019 at 03:24AM

14
#396 - tetstest / @tetstest4

12/24/2019 at 03:05PM

14
#397 - Rui Xue / @ruirayxue

12/27/2019 at 05:16PM

14
#398 - caffeineism / @caffeineism

01/07/2020 at 02:43AM

14
#399 - lev / @nouvelliu

01/16/2020 at 01:37AM

14
#400 - Michael Meixner / @meixner62

01/22/2020 at 02:04PM

14
#401 - Brady Cornett / @BradyCornett

01/22/2020 at 07:36PM

14
#402 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 11:06PM

14
#403 - novax / @novax22953288

02/16/2020 at 01:19PM

14
#404 - Emil / @emilklindt

02/16/2020 at 09:16PM

14
#405 - KingYames / @JamesZeHunter

02/17/2020 at 04:56AM

14
#406 - floyd / @floyd10086

03/05/2020 at 04:54AM

14
#407 - BnnGolfer / @BnnGolfer

03/20/2020 at 02:21PM

14
#408 - vvaannaa3 / @vvaannaa3

03/23/2020 at 12:55PM

14
#409 - Nathan Hartman / @hnathan918

04/03/2020 at 03:38PM

14
#410 - Nick Lee / @TooManyNickLees

04/05/2020 at 03:08PM

14
#411 - Jason / @roosjason

04/11/2020 at 10:41AM

14
#412 - fedja golf / @fedjagolf

04/13/2020 at 02:54AM

14
#413 - RaylanFox / @RaylanFox

04/13/2020 at 06:22PM

14
#414 - bluemartian / @bluemartianz59

04/13/2020 at 07:33PM

14
#415 - Ebi / @ehan6

04/19/2020 at 08:13AM

14
#416 - volandkit / @volandkit

04/20/2020 at 07:02PM

14
#417 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:44AM

14
#418 - Jeff Cui / @jeffacce

05/13/2020 at 10:02AM

14
#419 - Quentin Leroy / @qnleroy

05/19/2020 at 06:19AM

14
#420 - David Bragmark / @DBragmark

05/29/2020 at 08:05PM