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

739 active golfers, 2516 entries

Leaderboard (lowest score wins):
14
#361 - Ralph Callaway / @RalphAtCCC

10/24/2019 at 04:53PM

14
#362 - Dodge Coates / @coates_dodge

10/26/2019 at 05:32PM

14
#363 - Gregory Furter / @gfurter

10/27/2019 at 09:40PM

14
#364 - Lory / @Lory46845742

10/31/2019 at 03:18PM

14
#365 - Melvin Cheung / @MelvinCheung

11/07/2019 at 06:09PM

14
#366 - Chris Covert / @covertcj

11/07/2019 at 08:36PM

14
#367 - skamgolf / @skamgolf

11/08/2019 at 12:58AM

14
#368 - shoji541 / @shoji541

11/10/2019 at 12:10PM

14
#369 - Emil Braserud / @Erdustiggen

11/10/2019 at 04:24PM

14
#370 - damien / @GreatTestyTest

11/11/2019 at 12:43AM

14
#371 - Erik Engstrom / @eengstrom

11/14/2019 at 11:07PM

14
#372 - Matt Aschmann / @ma7hatter

11/18/2019 at 05:28PM

14
#373 - pysnow530 / @pysnow530

11/19/2019 at 10:58AM

14
#374 - oldandslow / @oldandslow5

11/26/2019 at 04:46PM

14
#375 - Marten Ringwelski / @Marteon27

12/10/2019 at 03:30PM

14
#376 - Jason Neylon / @jasonneylon

12/18/2019 at 07:40PM

14
#377 - Dan Kilman / @dan_kilman

12/18/2019 at 11:27PM

14
#378 - James Casey / @hanavi

12/21/2019 at 03:24AM

14
#379 - tetstest / @tetstest4

12/24/2019 at 03:05PM

14
#380 - Rui Xue / @ruirayxue

12/27/2019 at 05:16PM

14
#381 - caffeineism / @caffeineism

01/07/2020 at 02:43AM

14
#382 - lev / @nouvelliu

01/16/2020 at 01:37AM

14
#383 - Michael Meixner / @meixner62

01/22/2020 at 02:04PM

14
#384 - Brady Cornett / @BradyCornett

01/22/2020 at 07:36PM

14
#385 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 11:06PM

14
#386 - novax / @novax22953288

02/16/2020 at 01:19PM

14
#387 - Emil / @emilklindt

02/16/2020 at 09:16PM

14
#388 - KingYames / @JamesZeHunter

02/17/2020 at 04:56AM

14
#389 - floyd / @floyd10086

03/05/2020 at 04:54AM

14
#390 - BnnGolfer / @BnnGolfer

03/20/2020 at 02:21PM