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

411 active golfers, 1456 entries

Leaderboard (lowest score wins):
13
#61 - TimMcGuire / @mcguire

12/23/2018 at 04:08PM

13
#62 - Алексей Чудинов / @BanjoMoscow

12/23/2018 at 10:59PM

13
#63 - Julien Harbulot / @julienharbulot

12/27/2018 at 01:34AM

13
#64 - omrisarig / @omrisarig

12/27/2018 at 09:09AM

13
#65 - wes / @_weslly

01/03/2019 at 02:59PM

13
#66 - daveramirez / @daveramirez

01/03/2019 at 10:34PM

13
#67 - Jonathan Gin / @jonathangin52

01/12/2019 at 11:27PM

13
#68 - adir ohayon / @AdirKip

01/13/2019 at 09:53AM

13
#69 - pankaj singh / @pankajsingh013

01/14/2019 at 12:30PM

13
#70 - たくみー(転職ドラシル) / @reirei_As

01/15/2019 at 05:21AM

13
#71 - Vildu / @Vildu3

01/16/2019 at 09:16AM

13
#72 - Thomas Surlykke / @THSurlykke

01/17/2019 at 12:02AM

13
#73 - Mario Olofo / @mario_olofo

01/19/2019 at 01:43AM

13
#74 - Federico / @gselsette

01/23/2019 at 07:15PM

13
#75 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 11:54PM

13
#76 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 04:40PM

13
#77 - amal / @cdsudama

02/03/2019 at 07:40PM

13
#78 - Henrique Malheiro / @rike09

02/04/2019 at 01:05AM

13
#79 - r / @revanthedarth

02/09/2019 at 03:15AM

13
#80 - T A / @SirAviles

02/11/2019 at 10:07PM

13
#81 - forvimgolf / @forvimgolf2

02/12/2019 at 03:43PM

13
#82 - Wei Wen / @goweiwen

02/14/2019 at 02:55AM

13
#83 - Ng Sek Long / @NgSekLong

02/14/2019 at 07:06AM

13
#84 - Turkey Man / @lvturkeyman

02/20/2019 at 05:55AM

13
#85 - Sam Miller / @sam_miller93

02/20/2019 at 06:41PM

13
#86 - Greg Anders / @gregory_anders

02/21/2019 at 09:19PM

13
#87 - Jeff / @sir_wiggles3

02/22/2019 at 06:27PM

13
#88 - Titouan Teyssier / @TitouanT_

02/23/2019 at 10:16PM

13
#89 - Jiho Noh / @JihoNoh

03/02/2019 at 11:07PM

13
#90 - maq / @maq41476369

03/05/2019 at 02:29PM