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

563 active golfers, 1975 entries

Leaderboard (lowest score wins):
13
#31 - ForVimGolfReally / @VimFor

11/08/2018 at 11:23PM

13
#32 - 唐偉 / @tangw

11/09/2018 at 04:43PM

13
#33 - Nir Givon / @nir_givon

11/10/2018 at 03:52PM

13
#34 - Kim Hwa Joong / @hanmwoi

11/12/2018 at 01:48PM

13
#35 - Bracaval Elias / @BracavalE

11/13/2018 at 06:08PM

13
#36 - 永森 / @nagk05

11/15/2018 at 04:28PM

13
#37 - Bruno Cunha / @bruncun

11/17/2018 at 05:53PM

13
#38 - Matt Burg / @matsbleurgh

11/18/2018 at 05:03PM

13
#39 - DustVoice / @DustVoice

11/21/2018 at 02:46PM

13
#40 - william cedervall / @Master_smily

11/22/2018 at 05:59PM

13
#41 - faisal / @faisalhackshah

11/25/2018 at 01:22AM

13
#42 - Jonathan Cabezas / @John_Harkan

11/26/2018 at 12:18PM

13
#43 - Jacky Tian / @xjtian

11/29/2018 at 06:15AM

13
#44 - Anant Mishra / @anantanni22

11/30/2018 at 06:33AM

13
#45 - Maas Lalani / @maaslalani

12/02/2018 at 05:39PM

13
#46 - Rossi / @mrossinek

12/04/2018 at 06:41PM

13
#47 - band / @band26376522

12/04/2018 at 07:56PM

13
#48 - Artur Mróz / @MrozArtur

12/05/2018 at 09:19AM

13
#49 - 土豆 / @hujianxincn

12/08/2018 at 05:07PM

13
#50 - mathestar / @mathestar

12/11/2018 at 11:59AM

13
#51 - Quark / @PuzzleQuark

12/11/2018 at 08:10PM

13
#52 - lofoneax / @lofoneax

12/12/2018 at 09:54PM

13
#53 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 02:21AM

13
#54 - Evyk / @Mr_Evyk

12/16/2018 at 11:31AM

13
#55 - Zeeshan Ahmad / @zeeshahmad

12/17/2018 at 07:45PM

13
#56 - heppen / @heppen_He

12/19/2018 at 02:46AM

13
#57 - Steven Bell / @stevenbell

12/19/2018 at 06:47PM

13
#58 - Bård Dybwad Kristensen / @BardDybwad

12/21/2018 at 07:15AM

13
#59 - Ackman Syntax Error / @AckmanSux

12/22/2018 at 12:33AM

13
#60 - TimMcGuire / @mcguire

12/23/2018 at 04:08PM