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):
18
#271 - Chris Vasicek / @aixChris

11/17/2018 at 03:42AM

18
#272 - Álvaro Melgosa / @AlvaroMlgs

11/17/2018 at 02:28PM

18
#273 - Shunichi Kanade / @shunkana

11/18/2018 at 01:45AM

18
#274 - Pablo / @suspekt007

11/25/2018 at 08:02PM

18
#275 - Jacob Xu / @jacobhxu

12/05/2018 at 06:38AM

18
#276 - thvdburgt / @thvdburgt

12/06/2018 at 12:54PM

18
#277 - Zeming Lin / @ebetica

01/17/2019 at 07:31PM

18
#278 - churaki / @churaki

01/24/2019 at 01:45PM

18
#279 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:18PM

18
#280 - Stefan Käser / @stivi_kivi

03/22/2019 at 12:14PM

18
#281 - Raul / @Raul50174499

03/23/2019 at 04:17AM

19
#282 - Sam Kim / @samkimhis

10/11/2018 at 06:18AM

19
#283 - Julius / @cShortForC

10/24/2018 at 07:59PM

19
#284 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 10:29PM

19
#285 - Max / @bionic_pi

11/01/2018 at 01:50AM

19
#286 - Di Peng / @DCodier

11/06/2018 at 03:45AM

19
#287 - Sergey Novik / @konnigun

11/10/2018 at 03:33PM

19
#288 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:03PM

19
#289 - Osleg aka Akira ^_^ / @4k1r4

12/18/2018 at 10:57AM

19
#290 - Jared Knutson / @Knu750n_0xcc

12/22/2018 at 09:02PM

19
#291 - Prem Oza / @OzaPrem

01/03/2019 at 01:12PM

19
#292 - Blah Blah / @BlahBla08410389

01/20/2019 at 04:17PM

19
#293 - makke_vn / @makke_vn

02/05/2019 at 04:51PM

19
#294 - noisevoid / @noisevoid

02/26/2019 at 07:12AM

19
#295 - Inf Loop / @infl00p

03/24/2019 at 07:17PM

20
#296 - Nicolas Erny / @nicolaspika

10/20/2018 at 04:05PM

20
#297 - Bashar Jaan Khan / @basharjaankhan

10/29/2018 at 02:14PM

20
#298 - Why Am / @WhysDeCatOnFire

11/07/2018 at 03:18PM

20
#299 - Bart Barnard / @BartBarnard

11/18/2018 at 12:19PM

20
#300 - 강현 / @Applesquiz

01/20/2019 at 05:24PM