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

462 active golfers, 1609 entries

Leaderboard (lowest score wins):
14
#241 - Kai.Li / @KaiLi19

04/28/2019 at 04:55AM

14
#242 - hoge2341836 / @RootShunsuke

05/04/2019 at 04:25AM

14
#243 - Arno / @arnoxmp

05/09/2019 at 09:59AM

14
#244 - Denton Phosavanh / @DPhosavanh

05/12/2019 at 01:57PM

14
#245 - ささ / @nick11033

05/16/2019 at 11:12AM

14
#246 - alexandrasou / @alexandrasou2

05/23/2019 at 03:48AM

14
#247 - JonasS / @jonas42s

05/30/2019 at 09:51AM

14
#248 - mkaminaga / @mkmng3

06/03/2019 at 11:44AM

14
#249 - Tim Dean / @Tmdean

06/06/2019 at 06:08PM

14
#250 - Graeme Smith / @InstaGraeme

06/08/2019 at 08:48AM

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

06/11/2019 at 03:17PM

14
#252 - Aurel / @AurelienFebvre

06/25/2019 at 07:42PM

14
#253 - hielke / @hielke24840788

06/28/2019 at 10:06PM

14
#254 - Epecb / @BceEpecb

06/30/2019 at 06:11PM

14
#255 - Trevor Langston / @sunkenroad

07/03/2019 at 01:38AM

14
#256 - せいほう / @FICSQF

07/03/2019 at 11:59PM

14
#257 - Chester Yap / @Chest_ErYap

07/06/2019 at 04:58AM

14
#258 - Denis / @4NNTGudvin

07/11/2019 at 01:15PM

14
#259 - Neil Struthers / @struthersneil

07/16/2019 at 11:31PM

15
#260 - Valacar / @valacar

10/09/2018 at 01:10AM

15
#261 - Mauricio Ariza / @_hell_spawn

10/09/2018 at 01:45PM

15
#262 - Sebastien Mesili / @seb_kr

10/10/2018 at 07:12AM

15
#263 - Adomas Jatužis / @adomixaszvers

10/13/2018 at 09:37AM

15
#264 - Charlie OConor / @charlieoconor

10/15/2018 at 02:37AM

15
#265 - ComedyOfStdErrs 🌹 / @DoodlingDev

10/15/2018 at 01:59PM

15
#266 - Willer / @WilliamChhim

10/16/2018 at 09:00AM

15
#267 - Kasparas Lavrukaitis / @kaslvr

11/11/2018 at 10:31AM

15
#268 - Harsha B C / @Harsha1306_

11/21/2018 at 11:28PM

15
#269 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:34PM

15
#270 - Bob_V / @Bob_V

11/24/2018 at 02:52AM