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 55 remaining solutions by signing in and submitting your own entry
#56 Marcell Alves / @alvesmarcell - Score: 45 - 10/08/18 @ 16:56
d7w$hxj^^d7w$hxj^^d7w$hxj^^d7w$hxj^^d7w$hx:x<CR>

0 comments


Created by: @alvesmarcell

56 active golfers, 177 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

14
#14 - Walker Boh / @walker_boh

10/08/2018 at 04:33PM

14
#15 - Andrey / @andreyrmg

10/08/2018 at 04:46PM

14
#16 - Henrique Malheiro / @rike09

10/08/2018 at 11:07PM

14
#17 - PRK / @NoMoTo

10/09/2018 at 05:50AM

14
#18 - 张超 / @zacoxi

10/09/2018 at 06:31AM

14
#19 - towc / @MateiCopot

10/09/2018 at 09:17AM

14
#20 - Edouard Piette / @EdPiette

10/09/2018 at 09:25AM

14
#21 - しーまん / @nemusoudane

10/09/2018 at 11:38AM

14
#22 - Benjamin Kiesl / @BenjaminKiesl

10/09/2018 at 03:16PM

14
#23 - Tomoya Ishihama / @ishmt

10/10/2018 at 04:03AM

14
#24 - 中鉢 洋介 / @cyubachi

10/10/2018 at 06:11AM

14
#25 - Steve Bitner / @fourbitbots

10/11/2018 at 03:43AM

14
#26 - dayshade / @dayshade_7

10/11/2018 at 07:46AM

14
#27 - Maxim Kim / @mxmkm

10/11/2018 at 10:43AM

14
#28 - Pak Wing / @_Pak_Wing_

10/11/2018 at 01:15PM

14
#29 - Jeff / @sir_wiggles3

10/11/2018 at 10:41PM

14
#30 - tPenguinLTG / @tpenguinltg

10/13/2018 at 11:36PM