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

725 active golfers, 2442 entries

Leaderboard (lowest score wins):
14
#391 - bluemartian / @bluemartianz59

04/13/2020 at 07:33PM

14
#392 - Ebi / @ehan6

04/19/2020 at 08:13AM

14
#393 - volandkit / @volandkit

04/20/2020 at 07:02PM

14
#394 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:44AM

14
#395 - Jeff Cui / @jeffacce

05/13/2020 at 10:02AM

14
#396 - Quentin Leroy / @qnleroy

05/19/2020 at 06:19AM

14
#397 - David Bragmark / @DBragmark

05/29/2020 at 08:05PM

14
#398 - Valdimar / @genkobar

06/02/2020 at 08:46AM

14
#399 - Yannick / @Yannick88147038

06/07/2020 at 04:23PM

14
#400 - candywrappercrane / @cndwrpprpprcrn

06/12/2020 at 08:19PM

14
#401 - Ed Leafe / @EdLeafe

06/17/2020 at 02:40PM

14
#402 - Felix / @motorente

06/27/2020 at 07:27AM

14
#403 - mocihan / @mocihan

07/01/2020 at 09:49AM

15
#404 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#405 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#406 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM

15
#407 - Adomas Jatužis / @adomixaszvers

10/13/2018 at 09:37AM

15
#408 - Charlie OConor / @charlieoconor

10/15/2018 at 02:37AM

15
#409 - ComedyOfStdErrs 🌹 / @DoodlingDev

10/15/2018 at 01:59PM

15
#410 - Willer / @WilliamChhim

10/16/2018 at 09:00AM

15
#411 - Kasparas Lavrukaitis / @kaslvr

11/11/2018 at 10:31AM

15
#412 - Harsha B C / @Harsha1306_

11/21/2018 at 11:28PM

15
#413 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:34PM

15
#414 - Bob_V / @Bob_V

11/24/2018 at 02:52AM

15
#415 - unclewangshushu / @shuwushu

11/29/2018 at 05:30AM

15
#416 - Shafiq Jetha / @sjetha

12/13/2018 at 10:33PM

15
#417 - aka / @aaik4

12/23/2018 at 02:11AM

15
#418 - daniel / @daniel31464605

12/28/2018 at 07:35AM

15
#419 - Plexigras / @plexigras

12/31/2018 at 01:43PM

15
#420 - Nate / @natedoran

01/01/2019 at 12:30AM