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

707 active golfers, 2379 entries

Leaderboard (lowest score wins):
18
#541 - Jacob Xu / @jacobhxu

12/05/2018 at 06:38AM

18
#542 - thvdburgt / @thvdburgt

12/06/2018 at 12:54PM

18
#543 - Zeming Lin / @ebetica

01/17/2019 at 07:31PM

18
#544 - churaki / @churaki

01/24/2019 at 01:45PM

18
#545 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:18PM

18
#546 - Stefan Käser / @stivi_kivi

03/22/2019 at 12:14PM

18
#547 - Raul / @Raul50174499

03/23/2019 at 04:17AM

18
#548 - Atanas Karamanov / @AtanasKaramanov

03/29/2019 at 11:33AM

18
#549 - Fernando Motta / @Fmmotta01

06/07/2019 at 01:08PM

18
#550 - Chris G / @AboutThatThing

06/10/2019 at 09:37AM

18
#551 - MartinRAndersen / @MyrionSC2

06/27/2019 at 08:24AM

18
#552 - Hampus HAUFFMAN / @HampusHauffman

07/23/2019 at 09:25AM

18
#553 - Adrien / @beudbeud

08/12/2019 at 11:26AM

18
#554 - cínicoycansino / @pgv958

11/29/2019 at 10:52AM

18
#555 - Jonathan Jeffrey / @projjects

12/05/2019 at 05:26AM

18
#556 - 990 / @nisibasi990

12/06/2019 at 02:17PM

18
#557 - Steve Racanovic / @steve_racanovic

01/10/2020 at 12:51AM

18
#558 - neolog / @neolog4

02/14/2020 at 01:00AM

19
#559 - Sam Kim / @samkimhis

10/11/2018 at 06:18AM

19
#560 - Julius / @cShortForC

10/24/2018 at 07:59PM

19
#561 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 10:29PM

19
#562 - Max / @bionic_pi

11/01/2018 at 01:50AM

19
#563 - Di Peng / @DCodier

11/06/2018 at 03:45AM

19
#564 - Sergey Novik / @konnigun

11/10/2018 at 03:33PM

19
#565 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:03PM

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

12/18/2018 at 10:57AM

19
#567 - drednaut / @By7e0B1ts

12/22/2018 at 09:02PM

19
#568 - Prem Oza / @OzaPrem

01/03/2019 at 01:12PM

19
#569 - Blah Blah / @BlahBla08410389

01/20/2019 at 04:17PM

19
#570 - makke_vn / @makke_vn

02/05/2019 at 04:51PM