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

563 active golfers, 1975 entries

Leaderboard (lowest score wins):
13
#151 - Oleg Skillup / @skill_up

08/24/2019 at 08:03AM

13
#152 - Marco Mannucci / @markomannux

08/24/2019 at 05:57PM

13
#153 - blub / @agorilladriving

08/28/2019 at 01:49PM

13
#154 - Andrew Blokzyl / @linuxKd

08/30/2019 at 03:39PM

13
#155 - Madelyn Freed / @EcoBummer

09/04/2019 at 06:34PM

13
#156 - Zach Ingbretsen / @ZIngbretsen

09/08/2019 at 11:34PM

13
#157 - Vim Player / @PlayerVim

09/11/2019 at 11:35AM

13
#158 - Andac Safa / @SanDForcE94

09/11/2019 at 11:31PM

13
#159 - Cassandra / @kascein

09/17/2019 at 08:01AM

13
#160 - Kvazhir / @kvazhir

09/17/2019 at 02:55PM

13
#161 - Abner jr / @Abnerjr19

09/21/2019 at 04:26AM

13
#162 - Viktor Styrud / @Visklol

09/24/2019 at 12:25PM

13
#163 - vimgolfer / @vimgolfer7

09/28/2019 at 02:46PM

13
#164 - brypto / @hiimbenjy

09/30/2019 at 04:58AM

13
#165 - Adrian Craciun / @adi_craciun

10/03/2019 at 04:07PM

13
#166 - IronTiger Park / @IrontigerP

10/06/2019 at 07:26AM

13
#167 - leo / @leo28356948

10/17/2019 at 12:20PM

13
#168 - Tamás Kárándi / @tkarandi

10/19/2019 at 05:47PM

13
#169 - Ivan Volosyuk / @IvanVolosyuk

10/21/2019 at 10:19AM

13
#170 - Jeremy Soller / @jeremy_soller

10/25/2019 at 01:47AM

13
#171 - dahan / @dahan74265266

10/28/2019 at 01:23PM

13
#172 - vicver09 / @vicver091

10/28/2019 at 01:57PM

13
#173 - Harrison / @ardentcow

10/31/2019 at 03:52AM

13
#174 - Alex Emelianov / @AlexEmelianov3

11/02/2019 at 11:31PM

13
#175 - harmony_krieg / @harmony_krieg

11/03/2019 at 10:32AM

14
#176 - Walker Boh / @walker_boh

10/08/2018 at 04:33PM

14
#177 - Andrey / @andreyrmg

10/08/2018 at 04:46PM

14
#178 - PRK / @NoMoTo

10/09/2018 at 05:50AM

14
#179 - towc / @MateiCopot

10/09/2018 at 09:17AM

14
#180 - Edouard Piette / @EdPiette

10/09/2018 at 09:25AM