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, 2443 entries

Leaderboard (lowest score wins):
13
#181 - Delon / @delonleonard

12/25/2019 at 04:27AM

13
#182 - Bashar Jaan Khan / @basharjaankhan

01/07/2020 at 05:50PM

13
#183 - nicosierra / @nicosierra84

01/09/2020 at 10:18PM

13
#184 - mowglian / @mowglian

01/17/2020 at 02:23PM

13
#185 - Tefe / @tefetic

01/30/2020 at 09:10PM

13
#186 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 02:51AM

13
#187 - Kyle X. Clark / @KyXr_Clark

02/10/2020 at 02:20AM

13
#188 - Falafel Palapel / @falafelpalapel

02/15/2020 at 10:31AM

13
#189 - Pham Tuan Anh / @anhpt379

02/17/2020 at 04:05AM

13
#190 - howanto / @ho_wan_

02/20/2020 at 12:40AM

13
#191 - Anthony BERNARD / @TweetTontony

02/20/2020 at 09:05PM

13
#192 - countime / @countime1

03/05/2020 at 09:23AM

13
#193 - Sean Dewar / @seandewar

03/13/2020 at 06:16PM

13
#194 - Toby Hawkins / @Toby_Hawkins

03/17/2020 at 02:17AM

13
#195 - Ryan Nevius / @ryannevius

03/18/2020 at 05:50AM

13
#196 - Marco / @Marco24456514

03/22/2020 at 12:18PM

13
#197 - relastle / @relastle

03/30/2020 at 04:33AM

13
#198 - koyumeishi / @koyumeishi_

04/02/2020 at 04:34PM

13
#199 - Rodrigo V. Lopes / @rodvlopes

04/03/2020 at 03:49PM

13
#200 - Kumar Ankur / @k_ankur

04/10/2020 at 11:56AM

13
#201 - edvrds / @edvrds

04/14/2020 at 10:22AM

13
#202 - Moatvald / @moatvald

04/18/2020 at 09:08AM

13
#203 - Sikker Rosendal / @srosendaldk

04/18/2020 at 11:41AM

13
#204 - Victor / @victor_rma

04/24/2020 at 10:06PM

13
#205 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 09:05AM

13
#206 - ryan carins / @ryan_carins

05/09/2020 at 10:12PM

13
#207 - δΊŽε‰ζ˜Ÿ / @fishermryn

05/25/2020 at 09:09AM

13
#208 - RockerZZY / @rocker_zzy

05/27/2020 at 02:44PM

13
#209 - Matt DB / @MattDB12

06/07/2020 at 07:59PM

13
#210 - Kevin Keefe / @KevinKeefe5

06/12/2020 at 05:57PM