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

563 active golfers, 1975 entries

Leaderboard (lowest score wins):
18
#451 - Juliette but spooky / @namebrandloser

10/27/2018 at 12:10AM

18
#452 - ary31415 / @ary31415

10/29/2018 at 07:13AM

18
#453 - Omar Zeidan / @OZeidan97

11/13/2018 at 11:38AM

18
#454 - Chris Vasicek / @aixChris

11/17/2018 at 03:42AM

18
#455 - Álvaro Melgosa / @AlvaroMlgs

11/17/2018 at 02:28PM

18
#456 - Shunichi Kanade / @shunkana

11/18/2018 at 01:45AM

18
#457 - Pablo / @suspekt007

11/25/2018 at 08:02PM

18
#458 - Jacob Xu / @jacobhxu

12/05/2018 at 06:38AM

18
#459 - thvdburgt / @thvdburgt

12/06/2018 at 12:54PM

18
#460 - Zeming Lin / @ebetica

01/17/2019 at 07:31PM

18
#461 - churaki / @churaki

01/24/2019 at 01:45PM

18
#462 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:18PM

18
#463 - Stefan Käser / @stivi_kivi

03/22/2019 at 12:14PM

18
#464 - Raul / @Raul50174499

03/23/2019 at 04:17AM

18
#465 - Atanas Karamanov / @AtanasKaramanov

03/29/2019 at 11:33AM

18
#466 - Fernando Motta / @Fmmotta01

06/07/2019 at 01:08PM

18
#467 - Chris G / @AboutThatThing

06/10/2019 at 09:37AM

18
#468 - MartinRAndersen / @MyrionSC2

06/27/2019 at 08:24AM

18
#469 - Hampus HAUFFMAN / @HampusHauffman

07/23/2019 at 09:25AM

18
#470 - Adrien / @beudbeud

08/12/2019 at 11:26AM

19
#471 - Sam Kim / @samkimhis

10/11/2018 at 06:18AM

19
#472 - Julius / @cShortForC

10/24/2018 at 07:59PM

19
#473 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 10:29PM

19
#474 - Max / @bionic_pi

11/01/2018 at 01:50AM

19
#475 - Di Peng / @DCodier

11/06/2018 at 03:45AM

19
#476 - Sergey Novik / @konnigun

11/10/2018 at 03:33PM

19
#477 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:03PM

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

12/18/2018 at 10:57AM

19
#479 - Jared Knutson / @Knu750n_0xcc

12/22/2018 at 09:02PM

19
#480 - Prem Oza / @OzaPrem

01/03/2019 at 01:12PM