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

662 active golfers, 2234 entries

Leaderboard (lowest score wins):
23
#571 - samsuma000 / @samsuma000

11/22/2018 at 03:46PM

23
#572 - algebraic-geometric / @algebraicgeome1

02/23/2019 at 12:55PM

23
#573 - Riftere / @riftere11

08/04/2019 at 07:27PM

23
#574 - 5m0r14x / @5m0r14x

01/10/2020 at 10:33PM

23
#575 - Kade Pitsch / @kade98528

01/23/2020 at 01:22AM

23
#576 - Jonah Hlastala / @JonahHlastala

01/23/2020 at 07:40PM

24
#577 - Random / @Random29985999

11/19/2018 at 02:26AM

24
#578 - Suneel Freimuth / @FreimuthSuneel

11/27/2018 at 11:53PM

24
#579 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:17AM

24
#580 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 06:46AM

24
#581 - Danny / @dannywood1976

05/09/2019 at 08:39AM

24
#582 - Ben Guericke / @ben_guericke

01/22/2020 at 05:07PM

24
#583 - lin / @l_shi1

01/31/2020 at 08:18AM

25
#584 - editor3D / @editor3D

11/13/2018 at 11:54AM

25
#585 - Chris Maher / @chrismaherthe

11/14/2018 at 03:35PM

25
#586 - Alexander Popov / @Alexand01782341

03/03/2019 at 06:59AM

25
#587 - seul / @seul15987381

06/05/2019 at 02:00AM

25
#588 - Philip Stephenson / @philip_iv

07/19/2019 at 08:51PM

25
#589 - KlondikeBaer / @BaerKlondike

10/03/2019 at 06:38PM

26
#590 - Fabio Branquinho / @branquif

11/07/2018 at 04:27PM

26
#591 - Graham Singer / @grahamsinger

02/18/2019 at 05:44AM

26
#592 - MGJoe93 / @mgjoe93

03/02/2019 at 06:01PM

27
#593 - Francisco Claude / @fclaude

10/29/2018 at 08:51PM

27
#594 - Jurica / @Jurica34581259

11/14/2018 at 11:09PM

27
#595 - Vim Golfer / @VimGolfer6

07/09/2019 at 11:31AM

28
#596 - Paul Roberts / @paulmr

12/04/2018 at 11:41PM

28
#597 - Mike Wittie / @mike_wittie

01/27/2020 at 10:15PM

29
#598 - Eric Moss / @NotEricMoss

11/06/2018 at 02:51AM

29
#599 - mirsemen / @mirsemen1

07/15/2019 at 02:51AM

29
#600 - Matthew Wintersteen / @mattt_w4

01/24/2020 at 02:02AM