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

569 active golfers, 1997 entries

Leaderboard (lowest score wins):
14
#301 - Pittson / @Pittson95

07/31/2019 at 06:53PM

14
#302 - Jonathan Browning / @yungjig90

08/02/2019 at 04:51PM

14
#303 - Joel Elkins / @dice_tea

08/02/2019 at 05:26PM

14
#304 - Marc André Freiheit / @marc_freiheit

08/09/2019 at 12:19PM

14
#305 - averageRandomPerson / @averageRandomP1

08/10/2019 at 10:30PM

14
#306 - theBecwar / @thebecwar

08/18/2019 at 03:35PM

14
#307 - kevinski / @kevinsk30746831

08/22/2019 at 03:24PM

14
#308 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:47PM

14
#309 - JS / @jjohsan

08/30/2019 at 06:44AM

14
#310 - Алексей Кашуба / @Alex_Kashuba

08/31/2019 at 08:12PM

14
#311 - yesuu / @yesuu15

09/10/2019 at 02:25PM

14
#312 - diwa / @Di_nate_

09/12/2019 at 03:33AM

14
#313 - Sebastian Müller / @echsberde

09/19/2019 at 08:56PM

14
#314 - kkscr / @kkscr1

10/13/2019 at 02:33PM

14
#315 - Jonathan Medwig / @jmedwig

10/18/2019 at 02:08PM

14
#316 - ErQ325 / @EQ325

10/22/2019 at 11:36AM

14
#317 - Ralph Callaway / @RalphAtCCC

10/24/2019 at 04:53PM

14
#318 - Dodge Coates / @coates_dodge

10/26/2019 at 05:32PM

14
#319 - Gregory Furter / @gfurter

10/27/2019 at 09:40PM

14
#320 - Lory / @Lory46845742

10/31/2019 at 03:18PM

14
#321 - Melvin Cheung / @MelvinCheung

11/07/2019 at 06:09PM

14
#322 - Chris Covert / @covertcj

11/07/2019 at 08:36PM

14
#323 - skamgolf / @skamgolf

11/08/2019 at 12:58AM

14
#324 - shoji541 / @shoji541

11/10/2019 at 12:10PM

14
#325 - Emil Braserud / @Erdustiggen

11/10/2019 at 04:24PM

14
#326 - damien / @GreatTestyTest

11/11/2019 at 12:43AM

14
#327 - Erik Engstrom / @eengstrom

11/14/2019 at 11:07PM

14
#328 - Matt Aschmann / @ma7hatter

11/18/2019 at 05:28PM

14
#329 - 吴建明 / @pysnow530

11/19/2019 at 10:58AM

15
#330 - Valacar / @valacar

10/09/2018 at 01:10AM