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):
13
#91 - james_bunch / @james_bunch

03/06/2019 at 06:10AM

13
#92 - zh0ng / @zh00ng

03/07/2019 at 07:27AM

13
#93 - Robert Orr / @orrrobert

03/08/2019 at 08:15PM

13
#94 - Amado Antonini / @AmadoAntonini

03/11/2019 at 08:31PM

13
#95 - enji / @enji_jp

03/16/2019 at 12:40PM

13
#96 - k24w24 / @k24w24

03/18/2019 at 01:00PM

13
#97 - serent / @serent

03/18/2019 at 09:35PM

13
#98 - Parsa Amini / @ParsaAmini

03/19/2019 at 03:33PM

13
#99 - longB / @longB77353628

03/20/2019 at 08:30AM

13
#100 - ktbffh / @ktbffh73607665

03/20/2019 at 12:31PM

14
#101 - Walker Boh / @walker_boh

10/08/2018 at 04:33PM

14
#102 - Andrey / @andreyrmg

10/08/2018 at 04:46PM

14
#103 - PRK / @NoMoTo

10/09/2018 at 05:50AM

14
#104 - towc / @MateiCopot

10/09/2018 at 09:17AM

14
#105 - Edouard Piette / @EdPiette

10/09/2018 at 09:25AM

14
#106 - しーまん / @nemusoudane

10/09/2018 at 11:38AM

14
#107 - Benjamin Kiesl / @BenjaminKiesl

10/09/2018 at 03:16PM

14
#108 - Tomoya Ishihama / @ishmt

10/10/2018 at 04:03AM

14
#109 - 中鉢 洋介 / @cyubachi

10/10/2018 at 06:11AM

14
#110 - Steve Bitner / @fourbitbots

10/11/2018 at 03:43AM

14
#111 - dayshade / @dayshade_7

10/11/2018 at 07:46AM

14
#112 - Maxim Kim / @mxmkm

10/11/2018 at 10:43AM

14
#113 - Pak Wing / @_Pak_Wing_

10/11/2018 at 01:15PM

14
#114 - tPenguinLTG / @tpenguinltg

10/13/2018 at 11:36PM

14
#115 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 01:47PM

14
#116 - GUL / @GUL_THE_TWITTO

10/14/2018 at 03:55PM

14
#117 - Stefan Heyder / @Astheny_

10/15/2018 at 08:47AM

14
#118 - Florent Jaby / @Floby

10/15/2018 at 08:58AM

14
#119 - Juan / @jubujjamer

10/15/2018 at 03:47PM

14
#120 - PCS Solutions / @PeteSolutions

10/16/2018 at 01:45AM