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):
14
#241 - Sebastien Nicoud / @sebnukem

12/22/2018 at 02:19PM

14
#242 - shw / @shw30127562

12/26/2018 at 03:18AM

14
#243 - Oran / @Oranav

12/27/2018 at 07:07PM

14
#244 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

12/29/2018 at 12:55AM

14
#245 - Aditya Hegde / @adishegde

12/30/2018 at 05:45AM

14
#246 - Phil Devitt / @GeneralHav0k

01/02/2019 at 02:19PM

14
#247 - Ricardo Sisnett / @sysnet_ai

01/08/2019 at 02:36AM

14
#248 - John Smith / @JohnSmi14480159

01/09/2019 at 10:31PM

14
#249 - Jocelyn Lim / @j0c3lym

01/12/2019 at 11:23PM

14
#250 - Mangeart Yoric / @yoricm

01/16/2019 at 01:57PM

14
#251 - py / @py97235249

01/16/2019 at 03:10PM

14
#252 - LC / @leeren

01/23/2019 at 06:05PM

14
#253 - tp971 / @tp971

01/31/2019 at 01:03AM

14
#254 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:56AM

14
#255 - Patrick Lavin / @LavinComputes

02/01/2019 at 02:10PM

14
#256 - xer0.5ive / @Bibekshah

02/02/2019 at 01:17PM

14
#257 - Mac Goever / @MacGoever

02/04/2019 at 08:58PM

14
#258 - Christopher Weyand / @swordman378

02/11/2019 at 02:32PM

14
#259 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:23AM

14
#260 - Filipe Brandenburger / @filbranden

02/17/2019 at 07:44AM

14
#261 - sjcomp / @sjcomp

02/20/2019 at 03:14PM

14
#262 - vince / @vincentvangott

03/03/2019 at 12:29PM

14
#263 - hn9u / @hn9u

03/05/2019 at 02:44PM

14
#264 - zenwalker / @zenwalker93

03/09/2019 at 01:57PM

14
#265 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:36PM

14
#266 - Gabriel / @cimourdain

03/21/2019 at 12:49PM

14
#267 - 黒澤亮二 / @rjkuro

03/24/2019 at 09:40PM

14
#268 - James Perry Hartman / @JauntyJPH

03/27/2019 at 11:47AM

14
#269 - wanghbxxxx / @wanghbxxxx

04/03/2019 at 02:55AM

14
#270 - J. Nick Terry / @deft_code

04/08/2019 at 09:52PM