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

462 active golfers, 1609 entries

Leaderboard (lowest score wins):
14
#151 - Steve Bitner / @fourbitbots

10/11/2018 at 03:43AM

14
#152 - dayshade / @dayshade_7

10/11/2018 at 07:46AM

14
#153 - Maxim Kim / @mxmkm

10/11/2018 at 10:43AM

14
#154 - Pak Wing / @_Pak_Wing_

10/11/2018 at 01:15PM

14
#155 - tPenguinLTG / @tpenguinltg

10/13/2018 at 11:36PM

14
#156 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 01:47PM

14
#157 - GUL / @GUL_THE_TWITTO

10/14/2018 at 03:55PM

14
#158 - Stefan Heyder / @Astheny_

10/15/2018 at 08:47AM

14
#159 - Florent Jaby / @Floby

10/15/2018 at 08:58AM

14
#160 - Juan / @jubujjamer

10/15/2018 at 03:47PM

14
#161 - PCS Solutions / @PeteSolutions

10/16/2018 at 01:45AM

14
#162 - Daniel Hjelm / @dhjelm

10/16/2018 at 07:26PM

14
#163 - Reuben Narkwo / @reubwo

10/16/2018 at 09:03PM

14
#164 - caplod / @caplod

10/16/2018 at 09:05PM

14
#165 - Matheus Rezende / @matheusr_dev

10/18/2018 at 10:57AM

14
#166 - c0llision / @sh3llcode

10/20/2018 at 06:49AM

14
#167 - Andrei Gasparovici / @agasparovici

10/20/2018 at 10:54AM

14
#168 - David Carlos / @Mr_DavidCarlos

10/21/2018 at 04:29AM

14
#169 - shallowbit / @shallowbit

10/22/2018 at 07:54PM

14
#170 - Sxcy / @SxcyX

10/24/2018 at 08:37AM

14
#171 - Dima Matrohin / @wo_ogy

10/25/2018 at 09:52PM

14
#172 - Finn Francis / @FinnFrancis

10/26/2018 at 07:06PM

14
#173 - Pedro Santos / @pedrosans

10/30/2018 at 01:05AM

14
#174 - Andre Cato / @DreBear800

10/30/2018 at 01:29AM

14
#175 - Blake Tereau / @BlakeTereau

10/30/2018 at 10:44PM

14
#176 - Lapin Max / @LapinMaxm

10/31/2018 at 09:05PM

14
#177 - dorpo / @dorpo2

11/01/2018 at 04:24PM

14
#178 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 01:02PM

14
#179 - David Friar / @davidfriar

11/04/2018 at 08:32AM

14
#180 - Zacky Su / @zackykuangkuang

11/04/2018 at 10:51AM