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

522 active golfers, 1805 entries

Leaderboard (lowest score wins):
14
#271 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 03:17PM

14
#272 - Aurel / @AurelienFebvre

06/25/2019 at 07:42PM

14
#273 - hielke / @hielke24840788

06/28/2019 at 10:06PM

14
#274 - Epecb / @BceEpecb

06/30/2019 at 06:11PM

14
#275 - Trevor Langston / @sunkenroad

07/03/2019 at 01:38AM

14
#276 - せいほう / @FICSQF

07/03/2019 at 11:59PM

14
#277 - Chester Yap / @Chest_ErYap

07/06/2019 at 04:58AM

14
#278 - Denis / @4NNTGudvin

07/11/2019 at 01:15PM

14
#279 - Neil Struthers / @struthersneil

07/16/2019 at 11:31PM

14
#280 - Scott Schlesier / @sschlesier

07/22/2019 at 04:02PM

14
#281 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 01:50AM

14
#282 - Not real / @Notreal70353016

07/23/2019 at 04:48AM

14
#283 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:24AM

14
#284 - Markus / @ARealAnnoyance

07/29/2019 at 11:45AM

14
#285 - Pittson / @Pittson95

07/31/2019 at 06:53PM

14
#286 - Jonathan Browning / @yungjig90

08/02/2019 at 04:51PM

14
#287 - Joel Elkins / @dice_tea

08/02/2019 at 05:26PM

14
#288 - Marc André Freiheit / @marc_freiheit

08/09/2019 at 12:19PM

14
#289 - averageRandomPerson / @averageRandomP1

08/10/2019 at 10:30PM

14
#290 - theBecwar / @thebecwar

08/18/2019 at 03:35PM

14
#291 - kevinski / @kevinsk30746831

08/22/2019 at 03:24PM

14
#292 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:47PM

14
#293 - JS / @jjohsan

08/30/2019 at 06:44AM

14
#294 - Алексей Кашуба / @Alex_Kashuba

08/31/2019 at 08:12PM

14
#295 - yesuu / @yesuu15

09/10/2019 at 02:25PM

14
#296 - diwa / @Di_nate_

09/12/2019 at 03:33AM

14
#297 - Sebastian Müller / @echsberde

09/19/2019 at 08:56PM

15
#298 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#299 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#300 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM