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):
14
#451 - mevmev / @mevmev8

09/28/2020 at 10:02PM

14
#452 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 10:39PM

14
#453 - mstronam / @mstronam

10/02/2020 at 11:16AM

14
#454 - Jeremiah Smith / @jeremiah4smith

10/06/2020 at 09:30AM

14
#455 - The Valencian Dev / @thevalenciandev

10/12/2020 at 11:00AM

14
#456 - Leland Paul Kusmer / @lelandpaul

10/22/2020 at 02:32PM

14
#457 - chocolate / @chocola81394123

10/27/2020 at 08:50AM

14
#458 - Zack Freedman / @freedman_zack

11/07/2020 at 08:07PM

14
#459 - David Kutschke / @D4KU_

11/15/2020 at 09:43PM

14
#460 - Jake Grossman / @PiranaLaugh

11/16/2020 at 12:39AM

14
#461 - Serhiy Prikhodko / @mastersnetru

11/23/2020 at 03:39PM

14
#462 - __VimGolfer__ / @VimGolfer19

11/26/2020 at 03:57PM

14
#463 - roudens / @roudens2

12/07/2020 at 01:49PM

14
#464 - rats is a cool name / @cd_rum

12/21/2020 at 07:48PM

14
#465 - 영훈 / @odjfnrtm

01/04/2021 at 01:13AM

14
#466 - Alex / @AlexanderHeatl2

05/30/2022 at 09:16PM

15
#467 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#468 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#469 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM

15
#470 - Adomas Jatužis / @adomixaszvers

10/13/2018 at 09:37AM

15
#471 - Charlie OConor / @charlieoconor

10/15/2018 at 02:37AM

15
#472 - ComedyOfStdErrs 🌹 / @DoodlingDev

10/15/2018 at 01:59PM

15
#473 - Willer / @WilliamChhim

10/16/2018 at 09:00AM

15
#474 - Kasparas Lavrukaitis / @kaslvr

11/11/2018 at 10:31AM

15
#475 - Harsha B C / @Harsha1306_

11/21/2018 at 11:28PM

15
#476 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:34PM

15
#477 - Bob_V / @Bob_V

11/24/2018 at 02:52AM

15
#478 - unclewangshushu / @shuwushu

11/29/2018 at 05:30AM

15
#479 - Shafiq Jetha / @sjetha

12/13/2018 at 10:33PM

15
#480 - aka / @aaik4

12/23/2018 at 02:11AM