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

464 active golfers, 1617 entries

Leaderboard (lowest score wins):
19
#391 - Inf Loop / @infl00p

03/24/2019 at 07:17PM

19
#392 - Noel Evans / @noelevans

06/19/2019 at 08:09PM

20
#393 - Nicolas Erny / @nicolaspika

10/20/2018 at 04:05PM

20
#394 - Bashar Jaan Khan / @basharjaankhan

10/29/2018 at 02:14PM

20
#395 - Why Am / @WhysDeCatOnFire

11/07/2018 at 03:18PM

20
#396 - Bart Barnard / @BartBarnard

11/18/2018 at 12:19PM

20
#397 - 강현 / @Applesquiz

01/20/2019 at 05:24PM

20
#398 - Grorco / @grorco

01/27/2019 at 10:34AM

20
#399 - Calvin Fong / @LordyBaka

02/10/2019 at 11:38AM

20
#400 - Jess / @Jess74311450

06/11/2019 at 05:01PM

21
#401 - David English / @Nglish26

10/17/2018 at 02:56PM

21
#402 - 張閎傑 / @JohnnyEllisJohn

10/19/2018 at 09:46AM

21
#403 - Oren Koriat / @KoriatOren

12/04/2018 at 04:24PM

21
#404 - xwlearn / @ixw1991

12/17/2018 at 02:04PM

21
#405 - Netrisk Cool / @C00lt0

01/05/2019 at 07:25PM

21
#406 - Jacke Molis / @jackemolis

02/03/2019 at 03:36PM

21
#407 - Am Jam / @LoneJam

06/07/2019 at 01:18AM

22
#408 - Joe Cabezas / @JoeCabezas

10/16/2018 at 12:19AM

22
#409 - Jake Schurch / @jake_schurch

10/30/2018 at 07:03PM

22
#410 - lvinhas / @lvinhas1

11/04/2018 at 04:04AM

22
#411 - CptBong / @cpt1bong

11/14/2018 at 06:30AM

22
#412 - Jayesh Hathila / @jayesh_hathila

11/23/2018 at 06:22PM

22
#413 - hansim / @hanstartup

12/02/2018 at 11:25AM

22
#414 - Jasper Pangilinan / @JasperP

12/23/2018 at 11:54PM

22
#415 - Khoa Anh Nguyen / @ca0932

01/02/2019 at 07:31AM

22
#416 - Nikos Koukis / @bergercookie12

01/02/2019 at 07:14PM

22
#417 - Fl4t / @Fl4t

01/07/2019 at 08:35PM

22
#418 - The Joe / @computerjoe708

03/16/2019 at 07:48PM

22
#419 - Floyd Gantt / @fgantt

06/28/2019 at 12:47PM

23
#420 - Amir Rajan / @amirrajan

10/11/2018 at 07:49AM