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

563 active golfers, 1975 entries

Leaderboard (lowest score wins):
15
#361 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:49PM

15
#362 - Serpentri / @Serpentri1

10/01/2019 at 05:51PM

15
#363 - Homo Ludens / @BsMainly

10/17/2019 at 02:48PM

16
#364 - Alon L / @0xa10

10/08/2018 at 06:31PM

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

10/18/2018 at 01:36PM

16
#366 - Paul Inc / @hiniol1982

10/18/2018 at 08:08PM

16
#367 - Peter Ruschhaupt / @PeterRuschhaupt

10/19/2018 at 07:44AM

16
#368 - Urbanovics Péter / @UrbanovicsP

10/19/2018 at 09:06AM

16
#369 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 07:31AM

16
#370 - namongk / @namongk

10/25/2018 at 11:47AM

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

10/27/2018 at 05:47PM

16
#372 - Hatsubaku / @hatsubaku

11/02/2018 at 03:12PM

16
#373 - Luis Rodriguez / @luisthecoder

11/11/2018 at 11:23PM

16
#374 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:02PM

16
#375 - Hachemi / @HachemiHarizi

11/12/2018 at 10:50PM

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

11/13/2018 at 08:22PM

16
#377 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:31PM

16
#378 - Levi Self / @LeviRSelf

11/18/2018 at 05:55AM

16
#379 - Jess Lim / @Jessica01075434

12/02/2018 at 05:12PM

16
#380 - Mitch / @miffstarr

12/09/2018 at 07:24AM

16
#381 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 04:48PM

16
#382 - Adam Procio / @AdamProcio

12/10/2018 at 02:10AM

16
#383 - sstar / @sstar60015687

12/26/2018 at 09:26AM

16
#384 - AKYS / @G0G0BIKE

12/27/2018 at 02:11AM

16
#385 - Mat / @matpbo

01/09/2019 at 05:18PM

16
#386 - Dmatrix / @Dr_Dmatrix

01/10/2019 at 06:50PM

16
#387 - Kyle Safran / @kylesafran

01/18/2019 at 05:22PM

16
#388 - Deepstack / @deepstackux

01/29/2019 at 03:55PM

16
#389 - HuyHung / @hungdh0x5e

01/31/2019 at 02:36AM

16
#390 - Colby Brown / @colbyabrown

02/11/2019 at 04:38AM