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

462 active golfers, 1609 entries

Leaderboard (lowest score wins):
15
#271 - unclewangshushu / @shuwushu

11/29/2018 at 05:30AM

15
#272 - Shafiq Jetha / @sjetha

12/13/2018 at 10:33PM

15
#273 - aka / @aaik4

12/23/2018 at 02:11AM

15
#274 - daniel / @daniel31464605

12/28/2018 at 07:35AM

15
#275 - Plexigras / @plexigras

12/31/2018 at 01:43PM

15
#276 - Nate / @natedoran

01/01/2019 at 12:30AM

15
#277 - antoine mas / @aneomas

01/05/2019 at 07:57PM

15
#278 - abgalphabet / @abgalphabet

01/12/2019 at 01:32PM

15
#279 - joe / @wyohjoe

01/23/2019 at 11:45AM

15
#280 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 10:29PM

15
#281 - Matti Sairanen / @MattiSairanen

02/09/2019 at 08:39PM

15
#282 - Tim White / @antichrist65535

02/12/2019 at 01:44AM

15
#283 - Loنtre / @OtterPy

04/09/2019 at 10:33AM

15
#284 - Laurent Atlan / @laurentatlan1

04/14/2019 at 07:29PM

15
#285 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 01:07AM

15
#286 - PJ Frazer / @pj_frazer

04/28/2019 at 11:47PM

15
#287 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 01:02AM

15
#288 - majo senf / @majo_senf

06/14/2019 at 08:31AM

16
#289 - Alon L / @0xa10

10/08/2018 at 06:31PM

16
#290 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/18/2018 at 01:36PM

16
#291 - Paul Inc / @hiniol1982

10/18/2018 at 08:08PM

16
#292 - Peter Ruschhaupt / @PeterRuschhaupt

10/19/2018 at 07:44AM

16
#293 - Urbanovics Péter / @UrbanovicsP

10/19/2018 at 09:06AM

16
#294 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 07:31AM

16
#295 - namongk / @namongk

10/25/2018 at 11:47AM

16
#296 - @pfitz@chaos.social / @Pfitz

10/27/2018 at 05:47PM

16
#297 - Hatsubaku / @hatsubaku

11/02/2018 at 03:12PM

16
#298 - Luis Rodriguez / @luisthecoder

11/11/2018 at 11:23PM

16
#299 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:02PM

16
#300 - Hachemi / @HachemiHarizi

11/12/2018 at 10:50PM