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

416 active golfers, 1475 entries

Leaderboard (lowest score wins):
13
#121 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 07:53AM

13
#122 - Francois Urquhart / @LostUrquhart

05/14/2019 at 08:33PM

13
#123 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:42AM

13
#124 - TheMagzuz / @DamMarkus

05/17/2019 at 04:18PM

13
#125 - David McDonald / @dmcdona

05/19/2019 at 12:52AM

13
#126 - Fiffy / @sr21486642

05/21/2019 at 07:47AM

13
#127 - Caleb Rollins / @CalebRollins1

05/22/2019 at 08:00PM

14
#128 - Walker Boh / @walker_boh

10/08/2018 at 04:33PM

14
#129 - Andrey / @andreyrmg

10/08/2018 at 04:46PM

14
#130 - PRK / @NoMoTo

10/09/2018 at 05:50AM

14
#131 - towc / @MateiCopot

10/09/2018 at 09:17AM

14
#132 - Edouard Piette / @EdPiette

10/09/2018 at 09:25AM

14
#133 - しーまん / @nemusoudane

10/09/2018 at 11:38AM

14
#134 - Benjamin Kiesl / @BenjaminKiesl

10/09/2018 at 03:16PM

14
#135 - Tomoya Ishihama / @ishmt

10/10/2018 at 04:03AM

14
#136 - 中鉢 洋介 / @cyubachi

10/10/2018 at 06:11AM

14
#137 - Steve Bitner / @fourbitbots

10/11/2018 at 03:43AM

14
#138 - dayshade / @dayshade_7

10/11/2018 at 07:46AM

14
#139 - Maxim Kim / @mxmkm

10/11/2018 at 10:43AM

14
#140 - Pak Wing / @_Pak_Wing_

10/11/2018 at 01:15PM

14
#141 - tPenguinLTG / @tpenguinltg

10/13/2018 at 11:36PM

14
#142 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 01:47PM

14
#143 - GUL / @GUL_THE_TWITTO

10/14/2018 at 03:55PM

14
#144 - Stefan Heyder / @Astheny_

10/15/2018 at 08:47AM

14
#145 - Florent Jaby / @Floby

10/15/2018 at 08:58AM

14
#146 - Juan / @jubujjamer

10/15/2018 at 03:47PM

14
#147 - PCS Solutions / @PeteSolutions

10/16/2018 at 01:45AM

14
#148 - Daniel Hjelm / @dhjelm

10/16/2018 at 07:26PM

14
#149 - Reuben Narkwo / @reubwo

10/16/2018 at 09:03PM

14
#150 - caplod / @caplod

10/16/2018 at 09:05PM