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

815 active golfers, 2748 entries

Leaderboard (lowest score wins):
13
#91 - r / @revanthedarth

02/09/2019 at 03:15AM

13
#92 - T A / @SirAviles

02/11/2019 at 10:07PM

13
#93 - forvimgolf / @forvimgolf2

02/12/2019 at 03:43PM

13
#94 - Wei Wen / @goweiwen

02/14/2019 at 02:55AM

13
#95 - Ng Sek Long / @NgSekLong

02/14/2019 at 07:06AM

13
#96 - Turkey Man / @lvturkeyman

02/20/2019 at 05:55AM

13
#97 - Sam Miller / @sam_miller93

02/20/2019 at 06:41PM

13
#98 - Greg Anders / @gregory_anders

02/21/2019 at 09:19PM

13
#99 - Jeff / @sir_wiggles3

02/22/2019 at 06:27PM

13
#100 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎𝚢𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

02/23/2019 at 10:16PM

13
#101 - Jiho Noh / @JihoNoh

03/02/2019 at 11:07PM

13
#102 - maq / @maq41476369

03/05/2019 at 02:29PM

13
#103 - james_bunch / @james_bunch

03/06/2019 at 06:10AM

13
#104 - zh0ng / @zh00ng

03/07/2019 at 07:27AM

13
#105 - Robert Orr / @orrrobert

03/08/2019 at 08:15PM

13
#106 - Amado Antonini / @AmadoAntonini

03/11/2019 at 08:31PM

13
#107 - enji / @enji_ja

03/16/2019 at 12:40PM

13
#108 - k24w24 / @k24w24

03/18/2019 at 01:00PM

13
#109 - serent / @serent

03/18/2019 at 09:35PM

13
#110 - Parsa Amini / @ParsaAmini

03/19/2019 at 03:33PM

13
#111 - longB / @longB77353628

03/20/2019 at 08:30AM

13
#112 - ktbffh / @ktbffh73607665

03/20/2019 at 12:31PM

13
#113 - Alex Mihov / @AlexMihov

03/29/2019 at 11:53AM

13
#114 - Maximilian F. / @TheMaex

03/30/2019 at 02:11AM

13
#115 - Mark Stillwell / @marklee77

04/03/2019 at 11:40PM

13
#116 - Joel Eriksson / @OwariDa

04/09/2019 at 02:14PM

13
#117 - phoibos92@gmail.com / @phoibos92

04/13/2019 at 04:26PM

13
#118 - alekfed / @alek_fed

04/14/2019 at 12:54PM

13
#119 - Remy Oudemans / @OudemansRemy

04/15/2019 at 09:44PM

13
#120 - 이종혁 / @BluePaisa

04/17/2019 at 09:15AM