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

534 active golfers, 1842 entries

Leaderboard (lowest score wins):
15
#331 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 01:02AM

15
#332 - majo senf / @majo_senf

06/14/2019 at 08:31AM

15
#333 - Clint Caudle / @ClintCaudle

07/22/2019 at 05:09AM

15
#334 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:53PM

15
#335 - Bradley M. Small / @BradleySmall

08/10/2019 at 03:43AM

15
#336 - Masi Valkonen / @masivalkonen

08/28/2019 at 12:51PM

15
#337 - Ralph / @Ralph59017303

09/08/2019 at 09:55AM

15
#338 - Baine Wedlock / @BaineWedlock

09/12/2019 at 08:51AM

15
#339 - Yannick Gladow / @y_gldw

09/17/2019 at 10:58AM

15
#340 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:49PM

15
#341 - Serpentri / @Serpentri1

10/01/2019 at 05:51PM

16
#342 - Alon L / @0xa10

10/08/2018 at 06:31PM

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

10/18/2018 at 01:36PM

16
#344 - Paul Inc / @hiniol1982

10/18/2018 at 08:08PM

16
#345 - Peter Ruschhaupt / @PeterRuschhaupt

10/19/2018 at 07:44AM

16
#346 - Urbanovics Péter / @UrbanovicsP

10/19/2018 at 09:06AM

16
#347 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 07:31AM

16
#348 - namongk / @namongk

10/25/2018 at 11:47AM

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

10/27/2018 at 05:47PM

16
#350 - Hatsubaku / @hatsubaku

11/02/2018 at 03:12PM

16
#351 - Luis Rodriguez / @luisthecoder

11/11/2018 at 11:23PM

16
#352 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:02PM

16
#353 - Hachemi / @HachemiHarizi

11/12/2018 at 10:50PM

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

11/13/2018 at 08:22PM

16
#355 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:31PM

16
#356 - Levi Self / @LeviRSelf

11/18/2018 at 05:55AM

16
#357 - Jess Lim / @Jessica01075434

12/02/2018 at 05:12PM

16
#358 - Mitch / @miffstarr

12/09/2018 at 07:24AM

16
#359 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 04:48PM

16
#360 - Adam Procio / @AdamProcio

12/10/2018 at 02:10AM