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 580 remaining solutions by signing in and submitting your own entry
#581 /home/ck / @_CarlKenny - Score: 70 - 11/12/18 @ 01:34
dF_<Esc>jkkdf_<Esc>j.j.j.j.<C-V>kkkkI_<Esc>jjkkdf_f)<Esc>lxjwwwblxjwwbllxjhxjwllx<Esc>;:;x<BS><BS>x<CR>

0 comments


Created by: @alvesmarcell

581 active golfers, 2038 entries

Leaderboard (lowest score wins):
18
#481 - Chris G / @AboutThatThing

06/10/2019 at 09:37AM

18
#482 - MartinRAndersen / @MyrionSC2

06/27/2019 at 08:24AM

18
#483 - Hampus HAUFFMAN / @HampusHauffman

07/23/2019 at 09:25AM

18
#484 - Adrien / @beudbeud

08/12/2019 at 11:26AM

18
#485 - cínicoycansino / @pgv958

11/29/2019 at 10:52AM

18
#486 - Jonathan Jeffrey / @projjects

12/05/2019 at 05:26AM

18
#487 - 990 / @nisibasi990

12/06/2019 at 02:17PM

19
#488 - Sam Kim / @samkimhis

10/11/2018 at 06:18AM

19
#489 - Julius / @cShortForC

10/24/2018 at 07:59PM

19
#490 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 10:29PM

19
#491 - Max / @bionic_pi

11/01/2018 at 01:50AM

19
#492 - Di Peng / @DCodier

11/06/2018 at 03:45AM

19
#493 - Sergey Novik / @konnigun

11/10/2018 at 03:33PM

19
#494 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:03PM

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

12/18/2018 at 10:57AM

19
#496 - Jared Knutson / @Knu750n_0xcc

12/22/2018 at 09:02PM

19
#497 - Prem Oza / @OzaPrem

01/03/2019 at 01:12PM

19
#498 - Blah Blah / @BlahBla08410389

01/20/2019 at 04:17PM

19
#499 - makke_vn / @makke_vn

02/05/2019 at 04:51PM

19
#500 - noisevoid / @noisevoid

02/26/2019 at 07:12AM

19
#501 - Inf Loop / @infl00p

03/24/2019 at 07:17PM

19
#502 - Noel Evans / @noelevans

06/19/2019 at 08:09PM

20
#503 - Nicolas Erny / @nicolaspika

10/20/2018 at 04:05PM

20
#504 - Bashar Jaan Khan / @basharjaankhan

10/29/2018 at 02:14PM

20
#505 - Why Am / @WhysDeCatOnFire

11/07/2018 at 03:18PM

20
#506 - Bart Barnard / @BartBarnard

11/18/2018 at 12:19PM

20
#507 - 강현 / @Applesquiz

01/20/2019 at 05:24PM

20
#508 - Grorco / @grorco

01/27/2019 at 10:34AM

20
#509 - Calvin Fong / @LordyBaka

02/10/2019 at 11:38AM

20
#510 - Jess / @Jess74311450

06/11/2019 at 05:01PM