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

725 active golfers, 2442 entries

Leaderboard (lowest score wins):
14
#361 - skamgolf / @skamgolf

11/08/2019 at 12:58AM

14
#362 - shoji541 / @shoji541

11/10/2019 at 12:10PM

14
#363 - Emil Braserud / @Erdustiggen

11/10/2019 at 04:24PM

14
#364 - damien / @GreatTestyTest

11/11/2019 at 12:43AM

14
#365 - Erik Engstrom / @eengstrom

11/14/2019 at 11:07PM

14
#366 - Matt Aschmann / @ma7hatter

11/18/2019 at 05:28PM

14
#367 - pysnow530 / @pysnow530

11/19/2019 at 10:58AM

14
#368 - oldandslow / @oldandslow5

11/26/2019 at 04:46PM

14
#369 - Marten Ringwelski / @Marteon27

12/10/2019 at 03:30PM

14
#370 - Jason Neylon / @jasonneylon

12/18/2019 at 07:40PM

14
#371 - Dan Kilman / @dan_kilman

12/18/2019 at 11:27PM

14
#372 - James Casey / @hanavi

12/21/2019 at 03:24AM

14
#373 - tetstest / @tetstest4

12/24/2019 at 03:05PM

14
#374 - Rui Xue / @ruirayxue

12/27/2019 at 05:16PM

14
#375 - caffeineism / @caffeineism

01/07/2020 at 02:43AM

14
#376 - lev / @nouvelliu

01/16/2020 at 01:37AM

14
#377 - Michael Meixner / @meixner62

01/22/2020 at 02:04PM

14
#378 - Brady Cornett / @BradyCornett

01/22/2020 at 07:36PM

14
#379 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 11:06PM

14
#380 - novax / @novax22953288

02/16/2020 at 01:19PM

14
#381 - Emil / @emilklindt

02/16/2020 at 09:16PM

14
#382 - KingYames / @JamesZeHunter

02/17/2020 at 04:56AM

14
#383 - floyd / @floyd10086

03/05/2020 at 04:54AM

14
#384 - BnnGolfer / @BnnGolfer

03/20/2020 at 02:21PM

14
#385 - vvaannaa3 / @vvaannaa3

03/23/2020 at 12:55PM

14
#386 - Nathan Hartman / @hnathan918

04/03/2020 at 03:38PM

14
#387 - Nick Lee / @TooManyNickLees

04/05/2020 at 03:08PM

14
#388 - Jason / @roosjason

04/11/2020 at 10:41AM

14
#389 - fedja golf / @FedjaGolf

04/13/2020 at 02:54AM

14
#390 - RaylanFox / @RaylanFox

04/13/2020 at 06:22PM