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

568 active golfers, 1994 entries

Leaderboard (lowest score wins):
14
#271 - wanghbxxxx / @wanghbxxxx

04/03/2019 at 02:55AM

14
#272 - J. Nick Terry / @deft_code

04/08/2019 at 09:52PM

14
#273 - Magnus Israel / @Mangust1

04/16/2019 at 08:09PM

14
#274 - Olle NoRdesjö / @Rasinj

04/20/2019 at 11:03PM

14
#275 - Bruce Woodward / @b00ffer

04/21/2019 at 07:54PM

14
#276 - Mike C / @StrixVariaXIX

04/22/2019 at 02:05PM

14
#277 - Kai.Li / @KaiLi19

04/28/2019 at 04:55AM

14
#278 - hoge2341836 / @RootShunsuke

05/04/2019 at 04:25AM

14
#279 - Arno / @arnoxmp

05/09/2019 at 09:59AM

14
#280 - nvb46c74f8ih / @nvb46c74f8ih

05/12/2019 at 01:57PM

14
#281 - ささ / @nick11033

05/16/2019 at 11:12AM

14
#282 - alexandrasou / @alexandrasou2

05/23/2019 at 03:48AM

14
#283 - JonasS / @jonas42s

05/30/2019 at 09:51AM

14
#284 - mkaminaga / @mkmng3

06/03/2019 at 11:44AM

14
#285 - Tim Dean / @Tmdean

06/06/2019 at 06:08PM

14
#286 - Graeme Smith / @InstaGraeme

06/08/2019 at 08:48AM

14
#287 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 03:17PM

14
#288 - Aurel / @AurelienFebvre

06/25/2019 at 07:42PM

14
#289 - hielke / @hielke24840788

06/28/2019 at 10:06PM

14
#290 - Epecb / @BceEpecb

06/30/2019 at 06:11PM

14
#291 - Trevor Langston / @sunkenroad

07/03/2019 at 01:38AM

14
#292 - せいほう / @FICSQF

07/03/2019 at 11:59PM

14
#293 - Chester Yap / @Chest_ErYap

07/06/2019 at 04:58AM

14
#294 - Denis / @4NNTGudvin

07/11/2019 at 01:15PM

14
#295 - Neil Struthers / @struthersneil

07/16/2019 at 11:31PM

14
#296 - Scott Schlesier / @sschlesier

07/22/2019 at 04:02PM

14
#297 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 01:50AM

14
#298 - Not real / @Notreal70353016

07/23/2019 at 04:48AM

14
#299 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:24AM

14
#300 - Markus / @ARealAnnoyance

07/29/2019 at 11:45AM