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

800 active golfers, 2696 entries

Leaderboard (lowest score wins):
14
#421 - Jeff Cui / @jeffacce

05/13/2020 at 10:02AM

14
#422 - Quentin Leroy / @qnleroy

05/19/2020 at 06:19AM

14
#423 - David Bragmark / @DBragmark

05/29/2020 at 08:05PM

14
#424 - Valdimar / @genkobar

06/02/2020 at 08:46AM

14
#425 - Yannick / @Yannick88147038

06/07/2020 at 04:23PM

14
#426 - candywrappercrane / @cndwrpprpprcrn

06/12/2020 at 08:19PM

14
#427 - Ed Leafe / @EdLeafe

06/17/2020 at 02:40PM

14
#428 - Felix / @motorente

06/27/2020 at 07:27AM

14
#429 - mocihan / @mocihan

07/01/2020 at 09:49AM

14
#430 - JLObject / @powful_panda

07/04/2020 at 03:22PM

14
#431 - jackmark / @jackmar14540583

07/11/2020 at 04:38AM

14
#432 - Tiago Nascimento / @tigum27

07/18/2020 at 05:40PM

14
#433 - Anil Narayan / @AnilNarayan2013

07/23/2020 at 02:11AM

14
#434 - Saurabh / @Saurabh09299

07/23/2020 at 09:22AM

14
#435 - ぼとぼと / @boto_voto

08/02/2020 at 09:48AM

14
#436 - Vinay Sharma / @VinaySh63956554

08/09/2020 at 01:05PM

14
#437 - Martin Bielik / @mabielik

08/10/2020 at 06:43PM

14
#438 - Tanzeel Kazi / @tanzeelkazi

08/21/2020 at 06:10AM

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

08/26/2020 at 08:02PM

14
#440 - 刘宏亮 / @CoyAkey

09/27/2020 at 04:01AM

14
#441 - mevmev / @mevmev8

09/28/2020 at 10:02PM

14
#442 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 10:39PM

14
#443 - mstronam / @mstronam

10/02/2020 at 11:16AM

14
#444 - Jeremiah Smith / @jeremiah4smith

10/06/2020 at 09:30AM

14
#445 - The Valencian Dev / @thevalenciandev

10/12/2020 at 11:00AM

14
#446 - Leland Paul Kusmer / @lelandpaul

10/22/2020 at 02:32PM

14
#447 - chocolate / @chocola81394123

10/27/2020 at 08:50AM

14
#448 - Zack Freedman / @freedman_zack

11/07/2020 at 08:07PM

14
#449 - David Kutschke / @D4KU_

11/15/2020 at 09:43PM

14
#450 - Jake Grossman / @PiranaLaugh

11/16/2020 at 12:39AM