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):
14
#121 - Daniel Hjelm / @dhjelm

10/16/2018 at 07:26PM

14
#122 - Reuben Narkwo / @reubwo

10/16/2018 at 09:03PM

14
#123 - caplod / @caplod

10/16/2018 at 09:05PM

14
#124 - Matheus Rezende / @matheusr_dev

10/18/2018 at 10:57AM

14
#125 - c0llision / @sh3llcode

10/20/2018 at 06:49AM

14
#126 - Andrei Gasparovici / @agasparovici

10/20/2018 at 10:54AM

14
#127 - David Carlos / @Mr_DavidCarlos

10/21/2018 at 04:29AM

14
#128 - shallowbit / @shallowbit

10/22/2018 at 07:54PM

14
#129 - Sxcy / @SxcyX

10/24/2018 at 08:37AM

14
#130 - Dima Matrohin / @wo_ogy

10/25/2018 at 09:52PM

14
#131 - Finn Francis / @FinnFrancis

10/26/2018 at 07:06PM

14
#132 - Pedro Santos / @pedrosans

10/30/2018 at 01:05AM

14
#133 - Andre Cato / @DreBear800

10/30/2018 at 01:29AM

14
#134 - Blake Tereau / @BlakeTereau

10/30/2018 at 10:44PM

14
#135 - Lapin Max / @LapinMaxm

10/31/2018 at 09:05PM

14
#136 - dorpo / @dorpo2

11/01/2018 at 04:24PM

14
#137 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 01:02PM

14
#138 - David Friar / @davidfriar

11/04/2018 at 08:32AM

14
#139 - Zacky Su / @zackykuangkuang

11/04/2018 at 10:51AM

14
#140 - Birger / @Blautkak

11/06/2018 at 10:57PM

14
#141 - Wouter Horlings / @Achilleshiel

11/08/2018 at 01:01PM

14
#142 - justed / @justevild

11/10/2018 at 08:41PM

14
#143 - BaffaloP 🐃🎨 / @bbaffalopp

11/14/2018 at 11:45AM

14
#144 - name / @name65894813

11/14/2018 at 02:25PM

14
#145 - greengreen / @greengr09073862

11/15/2018 at 12:45AM

14
#146 - owen s vallis / @OwenVallis

11/18/2018 at 07:39AM

14
#147 - Benoit Tigeot / @Benoit_Tgt

11/19/2018 at 01:13PM

14
#148 - Gary Wild / @amande_pistache

11/19/2018 at 06:24PM

14
#149 - succcubbus / @succcubbus

11/20/2018 at 10:08PM

14
#150 - Michael Rose / @mdroseDev

11/22/2018 at 03:21AM