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

815 active golfers, 2748 entries

Leaderboard (lowest score wins):
15
#511 - Sebastián Zaffarano / @SebaZaffarano

08/11/2020 at 11:40AM

15
#512 - Camilo A. Matajira / @CamiloMatajira

08/30/2020 at 08:05PM

15
#513 - Shunichi Kanade / @shunkana

09/06/2020 at 06:29AM

15
#514 - Demian Martinez / @demianuco

11/02/2020 at 09:02AM

15
#515 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 02:55PM

15
#516 - x03n046 / @x03n046

05/17/2022 at 08:42AM

16
#517 - Alon L / @0xa10

10/08/2018 at 06:31PM

16
#518 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/18/2018 at 01:36PM

16
#519 - Paul Inc / @hiniol1982

10/18/2018 at 08:08PM

16
#520 - Peter Ruschhaupt / @PeterRuschhaupt

10/19/2018 at 07:44AM

16
#521 - Urbanovics Péter / @UrbanovicsP

10/19/2018 at 09:06AM

16
#522 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 07:31AM

16
#523 - namongk / @namongk

10/25/2018 at 11:47AM

16
#524 - @pfitz@chaos.social / @Pfitz

10/27/2018 at 05:47PM

16
#525 - Hatsubaku / @hatsubaku

11/02/2018 at 03:12PM

16
#526 - Luis Rodriguez / @luisthecoder

11/11/2018 at 11:23PM

16
#527 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:02PM

16
#528 - Hachemi / @HachemiHarizi

11/12/2018 at 10:50PM

16
#529 - steve N ӾlvЮ / @xlvio

11/13/2018 at 08:22PM

16
#530 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:31PM

16
#531 - Levi Self / @LeviRSelf

11/18/2018 at 05:55AM

16
#532 - Jess Lim / @Jessica01075434

12/02/2018 at 05:12PM

16
#533 - Mitch / @miffstarr

12/09/2018 at 07:24AM

16
#534 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 04:48PM

16
#535 - Adam Procio / @AdamProcio

12/10/2018 at 02:10AM

16
#536 - sstar / @sstar60015687

12/26/2018 at 09:26AM

16
#537 - AKYS / @G0G0BIKE

12/27/2018 at 02:11AM

16
#538 - Mat / @matpbo

01/09/2019 at 05:18PM

16
#539 - Dmatrix / @Dr_Dmatrix

01/10/2019 at 06:50PM

16
#540 - Kyle Safran / @kylesafran

01/18/2019 at 05:22PM