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

360 active golfers, 1256 entries

Leaderboard (lowest score wins):
16
#241 - HuyHung / @hungdh0x5e

01/31/2019 at 02:36AM

16
#242 - Colby Brown / @colbyabrown

02/11/2019 at 04:38AM

16
#243 - ثامر / @julienborghetti

02/19/2019 at 06:45AM

16
#244 - Zach Miller / @barizachsy

02/27/2019 at 03:07AM

16
#245 - cubemike / @cubemike

03/02/2019 at 03:39PM

16
#246 - Halle Knast / @halleknast

03/10/2019 at 10:30PM

16
#247 - Anthony Catterwell / @ACatterwell

03/11/2019 at 02:09PM

17
#248 - Yannick / @Malnoc

10/09/2018 at 01:51PM

17
#249 - alexche8 / @alexche_8

10/23/2018 at 11:55AM

17
#250 - ✖❎✖𝔩'𝔒𝔩𝔦𝔳𝔢✖❎✖ / @olivschwab

10/26/2018 at 01:33PM

17
#251 - bkdir / @Burak_Dir

10/26/2018 at 09:57PM

17
#252 - Tom Smeding / @TomSmeding

11/05/2018 at 10:17PM

17
#253 - tuck / @19emtuck

11/16/2018 at 08:13AM

17
#254 - Sören Schellhoff / @Jackokomm

11/17/2018 at 05:31PM

17
#255 - MEschenbacher / @eschenbacher_m

11/29/2018 at 01:45PM

17
#256 - Vending Machine / @storyn26383

12/16/2018 at 06:54AM

17
#257 - Eluded7 / @Eluded71

12/19/2018 at 05:41PM

17
#258 -  Martijn Engler / @MartijnEngler

12/31/2018 at 08:03PM

17
#259 - Brome / @Brome20887421

01/04/2019 at 06:38PM

17
#260 - wrglprmft / @wrglprmft

01/19/2019 at 08:44PM

17
#261 - tenteke / @kuskus3

01/21/2019 at 03:15PM

17
#262 - Chris AtLee / @chrisatlee

03/01/2019 at 09:59PM

17
#263 - Saphire Lattice / @SaphireLattice

03/06/2019 at 11:50AM

17
#264 - Emil Braserud / @Erdustiggen

03/16/2019 at 04:04PM

18
#265 - Brent Woo / @BrentPWoo

10/10/2018 at 04:42PM

18
#266 - Stefan Stutz / @0VIIXI

10/10/2018 at 06:56PM

18
#267 - m472 / @m4729

10/26/2018 at 11:46PM

18
#268 - Juliette but spooky / @namebrandloser

10/27/2018 at 12:10AM

18
#269 - ary31415 / @ary31415

10/29/2018 at 07:13AM

18
#270 - Omar Zeidan / @OZeidan97

11/13/2018 at 11:38AM