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):
20
#301 - Grorco / @grorco

01/27/2019 at 10:34AM

20
#302 - Calvin Fong / @LordyBaka

02/10/2019 at 11:38AM

21
#303 - David English / @Nglish26

10/17/2018 at 02:56PM

21
#304 - 張閎傑 / @JohnnyEllisJohn

10/19/2018 at 09:46AM

21
#305 - Oren Koriat / @KoriatOren

12/04/2018 at 04:24PM

21
#306 - xwlearn / @ixw1991

12/17/2018 at 02:04PM

21
#307 - Netrisk Cool / @C00lt0

01/05/2019 at 07:25PM

21
#308 - Jacke Molis / @jackemolis

02/03/2019 at 03:36PM

22
#309 - Joe Cabezas / @JoeCabezas

10/16/2018 at 12:19AM

22
#310 - Jake Schurch / @jake_schurch

10/30/2018 at 07:03PM

22
#311 - lvinhas / @lvinhas1

11/04/2018 at 04:04AM

22
#312 - CptBong / @cpt1bong

11/14/2018 at 06:30AM

22
#313 - Jayesh Hathila / @jayesh_hathila

11/23/2018 at 06:22PM

22
#314 - hansim / @hanstartup

12/02/2018 at 11:25AM

22
#315 - Jasper Pangilinan / @JasperP

12/23/2018 at 11:54PM

22
#316 - Khoa Anh Nguyen / @ca0932

01/02/2019 at 07:31AM

22
#317 - Nikos Koukis / @bergercookie12

01/02/2019 at 07:14PM

22
#318 - Fl4t / @Fl4t

01/07/2019 at 08:35PM

22
#319 - The Joe / @computerjoe708

03/16/2019 at 07:48PM

23
#320 - Amir Rajan / @amirrajan

10/11/2018 at 07:49AM

23
#321 - Jack Kersey / @jrkerse

10/19/2018 at 07:06AM

23
#322 - urandom / @ttyrandom

10/20/2018 at 07:19AM

23
#323 - Robin De Mol / @RobinDeMol

10/22/2018 at 02:42PM

23
#324 - hogehoge / @hogehoge_1234

10/26/2018 at 08:58AM

23
#325 - Tad McCorkle / @TAD897

11/11/2018 at 03:38AM

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

11/16/2018 at 04:49PM

23
#327 - samsuma000 / @samsuma000

11/22/2018 at 03:46PM

23
#328 - algebraic-geometric / @algebraicgeome1

02/23/2019 at 12:55PM

24
#329 - Random / @Random29985999

11/19/2018 at 02:26AM

24
#330 - Suneel Freimuth / @FreimuthSuneel

11/27/2018 at 11:53PM