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 806 remaining solutions by signing in and submitting your own entry
#807 alex ekstrom / @alexekstrom07 - Score: 433 - 01/30/20 @ 20:02
i<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><Up><Right><BS>(<Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><Esc>ZZ

0 comments


Created by: @alvesmarcell

807 active golfers, 2713 entries

Leaderboard (lowest score wins):
12
#1 - A A A / @37fatos

01/09/2021 at 02:50AM

12
#2 - Anh Duc TRAN / @__OwlBlaster__

01/09/2021 at 11:32PM

12
#3 - 김범준 / @kmbmjn

01/14/2021 at 07:01AM

12
#4 - John Braxler / @braxler

01/19/2021 at 02:58PM

12
#5 - Andreas Siegrist / @andreaszwei

01/21/2021 at 09:18PM

12
#6 - 蔡徐坤真是爱吃屎 / @Hashub7

01/22/2021 at 02:04AM

12
#7 - Gaston / @Gaston53635525

01/25/2021 at 10:16PM

12
#8 - vim_maxter / @MaxterVim

07/01/2021 at 10:41AM

12
#9 - yancy / @yancy_dong

09/28/2021 at 01:18AM

13
#10 - Jon Krause / @jkrause314

10/08/2018 at 05:35PM

13
#11 - Roger Bongers / @RogerBongers

10/08/2018 at 05:49PM

13
#12 - A / @777Android777

10/08/2018 at 06:31PM

13
#13 - Saki Gw / @Sakigw

10/09/2018 at 07:55AM

13
#14 - Smylers / @Smylers2

10/09/2018 at 09:35AM

13
#15 - Andy Balaam / @andybalaam

10/10/2018 at 02:23PM

13
#16 - Eli Edrian Tan / @eeveeedriantan

10/11/2018 at 12:25AM

13
#17 - James LaChance / @FatBoyXPC

10/11/2018 at 07:38AM

13
#18 - tskepla / @tskepla

10/11/2018 at 08:45PM

13
#19 - Wilson Chang / @ckwojai

10/13/2018 at 08:00AM

13
#20 - Chris Budetti / @ChrisBudetti

10/14/2018 at 10:46AM

13
#21 - Alejandro Santander / @_ajsantander

10/17/2018 at 08:47AM

13
#22 - 王有铭 / @wangyouming1209

10/20/2018 at 05:22PM

13
#23 - Владек / @escept1c

10/21/2018 at 11:52PM

13
#24 - Hunter Tidwell / @hunter2tidwell

10/23/2018 at 05:13AM

13
#25 - Will / @SirAero

10/25/2018 at 06:04PM

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

10/25/2018 at 09:07PM

13
#27 - zaperrer / @zaperrer

10/26/2018 at 12:54AM

13
#28 - Adam / @askoufish

10/26/2018 at 02:44AM

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

10/26/2018 at 08:41PM

13
#30 - Andy Aldo Dharmawan / @andyyaldoo

10/27/2018 at 01:44AM