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 410 remaining solutions by signing in and submitting your own entry
#411 /home/ck / @_CarlKenny - Score: 70 - 11/12/18 @ 01:34
dF_<Esc>jkkdf_<Esc>j.j.j.j.<C-V>kkkkI_<Esc>jjkkdf_f)<Esc>lxjwwwblxjwwbllxjhxjwllx<Esc>;:;x<BS><BS>x<CR>

0 comments


Created by: @alvesmarcell

411 active golfers, 1456 entries

Leaderboard (lowest score wins):
14
#211 - vince / @vincentvangott

03/03/2019 at 12:29PM

14
#212 - hn9u / @hn9u

03/05/2019 at 02:44PM

14
#213 - zenwalker / @zenwalker93

03/09/2019 at 01:57PM

14
#214 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:36PM

14
#215 - Gabriel / @cimourdain

03/21/2019 at 12:49PM

14
#216 - 黒澤亮二 / @rjkuro

03/24/2019 at 09:40PM

14
#217 - James Perry Hartman / @JauntyJPH

03/27/2019 at 11:47AM

14
#218 - wanghbxxxx / @wanghbxxxx

04/03/2019 at 02:55AM

14
#219 - J. Nick Terry / @deft_code

04/08/2019 at 09:52PM

14
#220 - Magnus Israel / @Mangust1

04/16/2019 at 08:09PM

14
#221 - Olle NoRdesjö / @Rasinj

04/20/2019 at 11:03PM

14
#222 - Bruce Woodward / @b00ffer

04/21/2019 at 07:54PM

14
#223 - Mike C / @StrixVariaXIX

04/22/2019 at 02:05PM

14
#224 - Kai.Li / @KaiLi19

04/28/2019 at 04:55AM

14
#225 - hoge2341836 / @RootShunsuke

05/04/2019 at 04:25AM

14
#226 - Arno / @arnoxmp

05/09/2019 at 09:59AM

14
#227 - Denton Phosavanh / @DPhosavanh

05/12/2019 at 01:57PM

14
#228 - ささ / @nick11033

05/16/2019 at 11:12AM

15
#229 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#230 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#231 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM

15
#232 - Adomas Jatužis / @adomixaszvers

10/13/2018 at 09:37AM

15
#233 - Charlie OConor / @charlieoconor

10/15/2018 at 02:37AM

15
#234 - ComedyOfStdErrs 🌹 / @DoodlingDev

10/15/2018 at 01:59PM

15
#235 - Willer / @WilliamChhim

10/16/2018 at 09:00AM

15
#236 - Kasparas Lavrukaitis / @kaslvr

11/11/2018 at 10:31AM

15
#237 - Harsha B C / @Harsha1306_

11/21/2018 at 11:28PM

15
#238 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:34PM

15
#239 - Bob_V / @Bob_V

11/24/2018 at 02:52AM

15
#240 - unclewangshushu / @shuwushu

11/29/2018 at 05:30AM