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

765 active golfers, 2584 entries

Leaderboard (lowest score wins):
14
#421 - Saurabh / @Saurabh09299

07/23/2020 at 09:22AM

14
#422 - ぼとぼと / @boto_voto

08/02/2020 at 09:48AM

14
#423 - Vinay Sharma / @VinaySh63956554

08/09/2020 at 01:05PM

14
#424 - Martin Bielik / @mabielik

08/10/2020 at 06:43PM

14
#425 - Tanzeel Kazi / @tanzeelkazi

08/21/2020 at 06:10AM

14
#426 - fenn.stefan@gmail.com / @FennStefan

08/26/2020 at 08:02PM

14
#427 - 刘宏亮 / @CoyAkey

09/27/2020 at 04:01AM

14
#428 - mevmev / @mevmev8

09/28/2020 at 10:02PM

14
#429 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 10:39PM

14
#430 - mstronam / @mstronam

10/02/2020 at 11:16AM

14
#431 - Jeremiah Smith / @jeremiah4smith

10/06/2020 at 09:30AM

14
#432 - The Valencian Dev / @thevalenciandev

10/12/2020 at 11:00AM

15
#433 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#434 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#435 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM

15
#436 - Adomas Jatužis / @adomixaszvers

10/13/2018 at 09:37AM

15
#437 - Charlie OConor / @charlieoconor

10/15/2018 at 02:37AM

15
#438 - ComedyOfStdErrs 🌹 / @DoodlingDev

10/15/2018 at 01:59PM

15
#439 - Willer / @WilliamChhim

10/16/2018 at 09:00AM

15
#440 - Kasparas Lavrukaitis / @kaslvr

11/11/2018 at 10:31AM

15
#441 - Harsha B C / @Harsha1306_

11/21/2018 at 11:28PM

15
#442 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:34PM

15
#443 - Bob_V / @Bob_V

11/24/2018 at 02:52AM

15
#444 - unclewangshushu / @shuwushu

11/29/2018 at 05:30AM

15
#445 - Shafiq Jetha / @sjetha

12/13/2018 at 10:33PM

15
#446 - aka / @aaik4

12/23/2018 at 02:11AM

15
#447 - daniel / @daniel31464605

12/28/2018 at 07:35AM

15
#448 - Plexigras / @plexigras

12/31/2018 at 01:43PM

15
#449 - Nate / @natedoran

01/01/2019 at 12:30AM

15
#450 - antoine mas / @aneomas

01/05/2019 at 07:57PM