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 359 remaining solutions by signing in and submitting your own entry
#360 /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

360 active golfers, 1256 entries

Leaderboard (lowest score wins):
14
#181 - Mac Goever / @MacGoever

02/04/2019 at 08:58PM

14
#182 - Christopher Weyand / @swordman378

02/11/2019 at 02:32PM

14
#183 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:23AM

14
#184 - filbranden / @filbranden

02/17/2019 at 07:44AM

14
#185 - sjcomp / @sjcomp

02/20/2019 at 03:14PM

14
#186 - vince / @vincentvangott

03/03/2019 at 12:29PM

14
#187 - hn9u / @hn9u

03/05/2019 at 02:44PM

14
#188 - zenwalker / @zenwalker93

03/09/2019 at 01:57PM

14
#189 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:36PM

14
#190 - Gabriel / @cimourdain

03/21/2019 at 12:49PM

14
#191 - 黒澤亮二 / @rjkuro

03/24/2019 at 09:40PM

15
#192 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#193 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#194 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM

15
#195 - Adomas Jatužis / @adomixaszvers

10/13/2018 at 09:37AM

15
#196 - Charlie OConor / @charlieoconor

10/15/2018 at 02:37AM

15
#197 - ComedyOfStdErrs 🌹 / @DoodlingDev

10/15/2018 at 01:59PM

15
#198 - Willer / @WilliamChhim

10/16/2018 at 09:00AM

15
#199 - Kasparas Lavrukaitis / @kaslvr

11/11/2018 at 10:31AM

15
#200 - Harsha B C / @Harsha1306_

11/21/2018 at 11:28PM

15
#201 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:34PM

15
#202 - Bob_V / @Bob_V

11/24/2018 at 02:52AM

15
#203 - unclewangshushu / @shuwushu

11/29/2018 at 05:30AM

15
#204 - Shafiq Jetha / @sjetha

12/13/2018 at 10:33PM

15
#205 - aka / @aaik4

12/23/2018 at 02:11AM

15
#206 - daniel / @daniel31464605

12/28/2018 at 07:35AM

15
#207 - Plexigras / @plexigras

12/31/2018 at 01:43PM

15
#208 - Nate / @natedoran

01/01/2019 at 12:30AM

15
#209 - antoine mas / @aneomas

01/05/2019 at 07:57PM

15
#210 - abgalphabet / @abgalphabet

01/12/2019 at 01:32PM