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

212 active golfers, 748 entries

Leaderboard (lowest score wins):
13
#1 - Jon Krause / @jkrause314

10/08/2018 at 05:35PM

13
#2 - Roger Bongers / @RogerBongers

10/08/2018 at 05:49PM

13
#3 - Андрей / @777Android777

10/08/2018 at 06:31PM

13
#4 - Saki Gw / @Sakigw

10/09/2018 at 07:55AM

13
#5 - Smylers / @Smylers2

10/09/2018 at 09:35AM

13
#6 - John Braxler / @braxler

10/09/2018 at 01:22PM

13
#7 - Andy Balaam / @andybalaam

10/10/2018 at 02:23PM

13
#8 - Eli Edrian Tan / @eeveeedriantan

10/11/2018 at 12:25AM

13
#9 - James LaChance / @FatBoyXPC

10/11/2018 at 07:38AM

13
#10 - tskepla / @tskepla

10/11/2018 at 08:45PM

13
#11 - Wilson Chang / @ckwojai

10/13/2018 at 08:00AM

13
#12 - Chris Budetti / @ChrisBudetti

10/14/2018 at 10:46AM

13
#13 - ajsantander / @_ajsantander

10/17/2018 at 08:47AM

13
#14 - 王有铭 / @coder_ming

10/20/2018 at 05:22PM

13
#15 - Wandering_startupper / @Hlushchenko_VL

10/21/2018 at 11:52PM

13
#16 - Hunter Tidwell / @hunter2tidwell

10/23/2018 at 05:13AM

13
#17 - Will / @SirAero

10/25/2018 at 06:04PM

13
#18 - Картопля / @69MxdbCh4jtIZSx

10/25/2018 at 09:07PM

13
#19 - zaperrer / @zaperrer

10/26/2018 at 12:54AM

13
#20 - Adam / @askoufish

10/26/2018 at 02:44AM

13
#21 - Today's Big Idea / @todaysfamilyid1

10/26/2018 at 08:41PM

13
#22 - Andy Aldo Dharmawan / @andyyaldoo

10/27/2018 at 01:44AM

13
#23 - matthew brett / @matthewbrett

10/27/2018 at 07:58AM

13
#24 - Omar / @ombako

10/29/2018 at 03:15PM

13
#25 - Constant Bridon / @COBOcto

10/31/2018 at 11:12AM

13
#26 - jyloup / @jyloup

10/31/2018 at 08:07PM

13
#27 - Mike Adams / @davis_cromwell

11/02/2018 at 02:44AM

13
#28 - i33 / @i3342th

11/03/2018 at 01:11AM

13
#29 - Dax / @zacoxi

11/04/2018 at 02:50PM

13
#30 - tweets about snakes / @theryangeary

11/04/2018 at 04:06PM