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

568 active golfers, 1994 entries

Leaderboard (lowest score wins):
13
#91 - zh0ng / @zh00ng

03/07/2019 at 07:27AM

13
#92 - Robert Orr / @orrrobert

03/08/2019 at 08:15PM

13
#93 - Amado Antonini / @AmadoAntonini

03/11/2019 at 08:31PM

13
#94 - enji / @enji_ja

03/16/2019 at 12:40PM

13
#95 - k24w24 / @k24w24

03/18/2019 at 01:00PM

13
#96 - serent / @serent

03/18/2019 at 09:35PM

13
#97 - Parsa Amini / @ParsaAmini

03/19/2019 at 03:33PM

13
#98 - longB / @longB77353628

03/20/2019 at 08:30AM

13
#99 - ktbffh / @ktbffh73607665

03/20/2019 at 12:31PM

13
#100 - Alex Mihov / @AlexMihov

03/29/2019 at 11:53AM

13
#101 - Maximilian F. / @TheMaex

03/30/2019 at 02:11AM

13
#102 - Mark Stillwell / @marklee77

04/03/2019 at 11:40PM

13
#103 - Joel Eriksson / @OwariDa

04/09/2019 at 02:14PM

13
#104 - phoibos92@gmail.com / @phoibos92

04/13/2019 at 04:26PM

13
#105 - alekfed / @alek_fed

04/14/2019 at 12:54PM

13
#106 - Remy Oudemans / @OudemansRemy

04/15/2019 at 09:44PM

13
#107 - 이종혁 / @BluePaisa

04/17/2019 at 09:15AM

13
#108 - Rand Omperson / @197258444

04/17/2019 at 06:26PM

13
#109 - Jaan Toots / @JaanToots

04/18/2019 at 03:18PM

13
#110 - Norbert / @mullno

04/18/2019 at 06:13PM

13
#111 - Gitsnik / @dracyrys

04/19/2019 at 11:14AM

13
#112 - Mekhi Thomas / @ReelGreenRanger

04/24/2019 at 07:43PM

13
#113 - Grant / @grant_7788

04/26/2019 at 05:49AM

13
#114 - 김현수 / @flyhigh43

04/27/2019 at 05:57PM

13
#115 - ImaNotgate / @INotgate

04/28/2019 at 02:58AM

13
#116 - ow / @ow34480012

04/28/2019 at 10:10PM

13
#117 - Sherab Giovannini / @shaddycls

05/01/2019 at 03:45PM

13
#118 - Quinn Collins / @Quinn00239061

05/07/2019 at 12:13PM

13
#119 - anna / @moonbeeaam

05/11/2019 at 10:01AM

13
#120 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 07:53AM