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

800 active golfers, 2696 entries

Leaderboard (lowest score wins):
15
#481 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 01:07AM

15
#482 - PJ Frazer / @pj_frazer

04/28/2019 at 11:47PM

15
#483 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 01:02AM

15
#484 - Clint Caudle / @ClintCaudle

07/22/2019 at 05:09AM

15
#485 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:53PM

15
#486 - Bradley M. Small / @BradleySmall

08/10/2019 at 03:43AM

15
#487 - Masi Valkonen / @masivalkonen

08/28/2019 at 12:51PM

15
#488 - Ralph / @Ralph59017303

09/08/2019 at 09:55AM

15
#489 - Baine Wedlock / @BaineWedlock

09/12/2019 at 08:51AM

15
#490 - Yannick Gladow / @y_gldw

09/17/2019 at 10:58AM

15
#491 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:49PM

15
#492 - Serpentri / @Serpentri1

10/01/2019 at 05:51PM

15
#493 - Homo Ludens / @BsMainly

10/17/2019 at 02:48PM

15
#494 - Minyi Zhong / @minyi_zhong

11/23/2019 at 04:17AM

15
#495 - King Kang / @nobagtravel

12/11/2019 at 12:12AM

15
#496 - John Otters / @OttersJohn

12/17/2019 at 01:20AM

15
#497 - 𝚙𝚛𝚒𝚗𝚐𝚕𝚎 𝚖𝚊𝚗 / @neeasade

02/26/2020 at 05:43PM

15
#498 - Soptik / @Soptik3

02/29/2020 at 09:32PM

15
#499 - dule2607 / @dule26071

04/30/2020 at 10:30AM

15
#500 - Sebastián Zaffarano / @SebaZaffarano

08/11/2020 at 11:40AM

15
#501 - Camilo A. Matajira / @CamiloMatajira

08/30/2020 at 08:05PM

15
#502 - Shunichi Kanade / @shunkana

09/06/2020 at 06:29AM

15
#503 - Demian Martinez / @demianuco

11/02/2020 at 09:02AM

15
#504 - quemeraisc / @quemeraisc

11/20/2020 at 08:26AM

15
#505 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 02:55PM

16
#506 - Alon L / @0xa10

10/08/2018 at 06:31PM

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

10/18/2018 at 01:36PM

16
#508 - Paul Inc / @hiniol1982

10/18/2018 at 08:08PM

16
#509 - Peter Ruschhaupt / @PeterRuschhaupt

10/19/2018 at 07:44AM

16
#510 - Urbanovics Péter / @UrbanovicsP

10/19/2018 at 09:06AM