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

521 active golfers, 1803 entries

Leaderboard (lowest score wins):
14
#241 - Patrick Lavin / @LavinComputes

02/01/2019 at 02:10PM

14
#242 - xer0.5ive / @Bibekshah

02/02/2019 at 01:17PM

14
#243 - Mac Goever / @MacGoever

02/04/2019 at 08:58PM

14
#244 - Christopher Weyand / @swordman378

02/11/2019 at 02:32PM

14
#245 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:23AM

14
#246 - Filipe Brandenburger / @filbranden

02/17/2019 at 07:44AM

14
#247 - sjcomp / @sjcomp

02/20/2019 at 03:14PM

14
#248 - vince / @vincentvangott

03/03/2019 at 12:29PM

14
#249 - hn9u / @hn9u

03/05/2019 at 02:44PM

14
#250 - zenwalker / @zenwalker93

03/09/2019 at 01:57PM

14
#251 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:36PM

14
#252 - Gabriel / @cimourdain

03/21/2019 at 12:49PM

14
#253 - 黒澤亮二 / @rjkuro

03/24/2019 at 09:40PM

14
#254 - James Perry Hartman / @JauntyJPH

03/27/2019 at 11:47AM

14
#255 - wanghbxxxx / @wanghbxxxx

04/03/2019 at 02:55AM

14
#256 - J. Nick Terry / @deft_code

04/08/2019 at 09:52PM

14
#257 - Magnus Israel / @Mangust1

04/16/2019 at 08:09PM

14
#258 - Olle NoRdesjö / @Rasinj

04/20/2019 at 11:03PM

14
#259 - Bruce Woodward / @b00ffer

04/21/2019 at 07:54PM

14
#260 - Mike C / @StrixVariaXIX

04/22/2019 at 02:05PM

14
#261 - Kai.Li / @KaiLi19

04/28/2019 at 04:55AM

14
#262 - hoge2341836 / @RootShunsuke

05/04/2019 at 04:25AM

14
#263 - Arno / @arnoxmp

05/09/2019 at 09:59AM

14
#264 - nvb46c74f8ih / @nvb46c74f8ih

05/12/2019 at 01:57PM

14
#265 - ささ / @nick11033

05/16/2019 at 11:12AM

14
#266 - alexandrasou / @alexandrasou2

05/23/2019 at 03:48AM

14
#267 - JonasS / @jonas42s

05/30/2019 at 09:51AM

14
#268 - mkaminaga / @mkmng3

06/03/2019 at 11:44AM

14
#269 - Tim Dean / @Tmdean

06/06/2019 at 06:08PM

14
#270 - Graeme Smith / @InstaGraeme

06/08/2019 at 08:48AM