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):
22
#361 - Jake Schurch / @jake_schurch

10/30/2018 at 07:03PM

22
#362 - lvinhas / @lvinhas1

11/04/2018 at 04:04AM

22
#363 - CptBong / @cpt1bong

11/14/2018 at 06:30AM

22
#364 - Jayesh Hathila / @jayesh_hathila

11/23/2018 at 06:22PM

22
#365 - hansim / @hanstartup

12/02/2018 at 11:25AM

22
#366 - Jasper Pangilinan / @JasperP

12/23/2018 at 11:54PM

22
#367 - Khoa Anh Nguyen / @ca0932

01/02/2019 at 07:31AM

22
#368 - Nikos Koukis / @bergercookie12

01/02/2019 at 07:14PM

22
#369 - Fl4t / @Fl4t

01/07/2019 at 08:35PM

22
#370 - The Joe / @computerjoe708

03/16/2019 at 07:48PM

23
#371 - Amir Rajan / @amirrajan

10/11/2018 at 07:49AM

23
#372 - Jack Kersey / @jrkerse

10/19/2018 at 07:06AM

23
#373 - urandom / @ttyrandom

10/20/2018 at 07:19AM

23
#374 - Robin De Mol / @RobinDeMol

10/22/2018 at 02:42PM

23
#375 - hogehoge / @hogehoge_1234

10/26/2018 at 08:58AM

23
#376 - Tad McCorkle / @TAD897

11/11/2018 at 03:38AM

23
#377 - Jose Villalta 👨‍💻 / @PhilosoGeekDad

11/16/2018 at 04:49PM

23
#378 - samsuma000 / @samsuma000

11/22/2018 at 03:46PM

23
#379 - algebraic-geometric / @algebraicgeome1

02/23/2019 at 12:55PM

24
#380 - Random / @Random29985999

11/19/2018 at 02:26AM

24
#381 - Suneel Freimuth / @FreimuthSuneel

11/27/2018 at 11:53PM

24
#382 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:17AM

24
#383 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 06:46AM

24
#384 - Danny / @dannywood1976

05/09/2019 at 08:39AM

25
#385 - editor3D / @editor3D

11/13/2018 at 11:54AM

25
#386 - Chris Maher / @chrismaherthe

11/14/2018 at 03:35PM

25
#387 - Alexander Popov / @Alexand01782341

03/03/2019 at 06:59AM

26
#388 - Fabio Branquinho / @branquif

11/07/2018 at 04:27PM

26
#389 - Graham Singer / @grahamsinger

02/18/2019 at 05:44AM

26
#390 - MGJoe93 / @mgjoe93

03/02/2019 at 06:01PM