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 842 remaining solutions by signing in and submitting your own entry
#843 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

843 active golfers, 2851 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

12
#10 - Max / @Max17868626

11/16/2021 at 03:25AM

12
#11 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 03:38PM

12
#12 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 01:56AM

12
#13 - dorianm / @dorianm

05/12/2022 at 12:26AM

12
#14 - russellzhaomao / @russellzhaomao

05/28/2022 at 09:53AM

12
#15 - Alex / @AlexanderHeatl2

07/06/2022 at 11:38PM

12
#16 - 刘宏亮 / @AkeyCoy

09/24/2022 at 02:48AM

12
#17 - Janzen / @__Coos

10/03/2022 at 12:34PM

12
#18 - ky05uk3 / @kyo89347563

12/13/2022 at 01:06AM

12
#19 - Mrmclarrinson / @mrmclarrinson

12/14/2022 at 07:34AM

12
#20 - e_e / @eleloi

02/15/2023 at 11:17PM

12
#21 - Thomas Hiron / @thomashiron

03/02/2023 at 04:59PM

12
#22 - Игорь Квачёнок / @IKvacenok

06/16/2023 at 11:14AM

12
#23 - 咸糖🎯 / @GIA917229015

07/09/2023 at 04:05PM

12
#24 - moh ayaya / @AyayaMoh

09/17/2023 at 03:08PM

12
#25 - Hans Wurscht / @HansW313

09/22/2023 at 10:13AM

12
#26 - Peppa Pig / @PeppaPi95550250

05/19/2024 at 04:57AM

13
#27 - Jon Krause / @jkrause314

10/08/2018 at 05:35PM

13
#28 - Roger Bongers / @RogerBongers

10/08/2018 at 05:49PM

13
#29 - A / @777Android777

10/08/2018 at 06:31PM

13
#30 - Saki Gw / @Sakigw

10/09/2018 at 07:55AM