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

815 active golfers, 2751 entries

Leaderboard (lowest score wins):
19
#661 - Sergey Novik / @konnigun

11/10/2018 at 03:33PM

19
#662 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:03PM

19
#663 - Osleg aka Akira ^_^ / @4k1r4

12/18/2018 at 10:57AM

19
#664 - drednaut / @By7e0B1ts

12/22/2018 at 09:02PM

19
#665 - Prem Oza / @OzaPrem

01/03/2019 at 01:12PM

19
#666 - Blah Blah / @BlahBla08410389

01/20/2019 at 04:17PM

19
#667 - makke_vn / @makke_vn

02/05/2019 at 04:51PM

19
#668 - noisevoid / @noisevoid

02/26/2019 at 07:12AM

19
#669 - Inf Loop / @infl00p

03/24/2019 at 07:17PM

19
#670 - Noel Evans / @noelevans

06/19/2019 at 08:09PM

19
#671 - Coby Drexler / @CobyDrexler

01/09/2020 at 02:04AM

19
#672 - Puj / @MrPuj

06/15/2020 at 02:21PM

19
#673 - drGsus / @drGsus

07/25/2020 at 12:58PM

20
#674 - Nicolas Erny / @nicolaspika

10/20/2018 at 04:05PM

20
#675 - Why Am / @WhysDeCatOnFire

11/07/2018 at 03:18PM

20
#676 - Bart Barnard / @BartBarnard

11/18/2018 at 12:19PM

20
#677 - 강현 / @Applesquiz

01/20/2019 at 05:24PM

20
#678 - Grorco / @grorco

01/27/2019 at 10:34AM

20
#679 - Calvin Fong / @LordyBaka

02/10/2019 at 11:38AM

20
#680 - Jess / @Jess74311450

06/11/2019 at 05:01PM

20
#681 - moh ayaya / @AyayaMoh

11/03/2020 at 10:52PM

20
#682 - said / @said13664960

12/16/2020 at 12:50PM

21
#683 - David English / @Nglish26

10/17/2018 at 02:56PM

21
#684 - 張閎傑 / @JohnnyEllisJohn

10/19/2018 at 09:46AM

21
#685 - Oren Koriat / @KoriatOren

12/04/2018 at 04:24PM

21
#686 - xwlearn / @ixw1991

12/17/2018 at 02:04PM

21
#687 - Netrisk Cool / @C00lt0

01/05/2019 at 07:25PM

21
#688 - Jacke Molis / @jackemolis

02/03/2019 at 03:36PM

21
#689 - Am Jam / @LoneJam

06/07/2019 at 01:18AM

21
#690 - ENSORIZATION / @ensorization

11/02/2019 at 12:39AM