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 518 remaining solutions by signing in and submitting your own entry
#519 /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

519 active golfers, 1792 entries

Leaderboard (lowest score wins):
17
#391 -  Martijn Engler / @MartijnEngler

12/31/2018 at 08:03PM

17
#392 - Brome / @Brome20887421

01/04/2019 at 06:38PM

17
#393 - wrglprmft / @wrglprmft

01/19/2019 at 08:44PM

17
#394 - tenteke / @kuskus3

01/21/2019 at 03:15PM

17
#395 - Chris AtLee / @chrisatlee

03/01/2019 at 09:59PM

17
#396 - Saphire Lattice / @SaphireLattice

03/06/2019 at 11:50AM

17
#397 - Emil Braserud / @Erdustiggen

03/16/2019 at 04:04PM

17
#398 - Pratik / @prathik_t

04/18/2019 at 08:32AM

17
#399 - Michaël Lévesque-Dion / @mlevesquedion

04/26/2019 at 01:14AM

17
#400 - Karim E.K / @crabdulkarim

05/08/2019 at 04:46PM

17
#401 - Ivan Ho / @ivandaho

05/22/2019 at 08:00AM

17
#402 - Gar Morley / @garmorley

05/25/2019 at 09:38PM

17
#403 - たぬぽん / @eJYwMbymauWKF4B

06/14/2019 at 06:51AM

17
#404 - Daniel Nadeau / @dnadeau13

06/23/2019 at 03:49AM

17
#405 - Crystal L / @Cartsly

07/13/2019 at 08:25PM

17
#406 - Mr_Djez / @DjezMr

08/05/2019 at 08:05PM

18
#407 - Brent Woo / @BrentPWoo

10/10/2018 at 04:42PM

18
#408 - Stefan Stutz / @0VIIXI

10/10/2018 at 06:56PM

18
#409 - m472 / @m4729

10/26/2018 at 11:46PM

18
#410 - Juliette but spooky / @namebrandloser

10/27/2018 at 12:10AM

18
#411 - ary31415 / @ary31415

10/29/2018 at 07:13AM

18
#412 - Omar Zeidan / @OZeidan97

11/13/2018 at 11:38AM

18
#413 - Chris Vasicek / @aixChris

11/17/2018 at 03:42AM

18
#414 - Álvaro Melgosa / @AlvaroMlgs

11/17/2018 at 02:28PM

18
#415 - Shunichi Kanade / @shunkana

11/18/2018 at 01:45AM

18
#416 - Pablo / @suspekt007

11/25/2018 at 08:02PM

18
#417 - Jacob Xu / @jacobhxu

12/05/2018 at 06:38AM

18
#418 - thvdburgt / @thvdburgt

12/06/2018 at 12:54PM

18
#419 - Zeming Lin / @ebetica

01/17/2019 at 07:31PM

18
#420 - churaki / @churaki

01/24/2019 at 01:45PM