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
#181 - Birger / @Blautkak

11/06/2018 at 10:57PM

14
#182 - Wouter Horlings / @Achilleshiel

11/08/2018 at 01:01PM

14
#183 - justed / @justevild

11/10/2018 at 08:41PM

14
#184 - BaffaloP 🐃🎨 / @bbaffalopp

11/14/2018 at 11:45AM

14
#185 - name / @name65894813

11/14/2018 at 02:25PM

14
#186 - greengreen / @greengr09073862

11/15/2018 at 12:45AM

14
#187 - owen s vallis / @OwenVallis

11/18/2018 at 07:39AM

14
#188 - Benoit Benoit / @Benoit_Tgt

11/19/2018 at 01:13PM

14
#189 - Gary Wild / @amande_pistache

11/19/2018 at 06:24PM

14
#190 - succcubbus / @succcubbus

11/20/2018 at 10:08PM

14
#191 - Michael Rose / @mdroseDev

11/22/2018 at 03:21AM

14
#192 - io / @iovis9

11/22/2018 at 12:11PM

14
#193 - Rob Barry / @rob_barry

11/23/2018 at 04:36PM

14
#194 - Mihai / @mihaicristiant

11/24/2018 at 09:49AM

14
#195 - Angry Dev / @AngryDev7

11/29/2018 at 09:56PM

14
#196 - Alex Fall / @alexandfall

12/04/2018 at 04:42PM

14
#197 - Cabal51 / @Cabal51

12/05/2018 at 11:01PM

14
#198 - Ed Brown / @edbrown

12/09/2018 at 12:29PM

14
#199 - alex m / @al_mk_

12/10/2018 at 07:36PM

14
#200 - Marty Boren / @computerliker

12/11/2018 at 02:47AM

14
#201 - Cocquecigrues / @cocquecigrues

12/14/2018 at 02:30PM

14
#202 - fucus / @fishlovebanana

12/16/2018 at 03:52AM

14
#203 - Fang Yufan / @Fang_Yufan

12/16/2018 at 09:03AM

14
#204 - Kris Ezra / @kris_ezra

12/18/2018 at 04:38AM

14
#205 - guxbug / @guxbug1

12/20/2018 at 03:34AM

14
#206 - Bennett / @bennettbackward

12/20/2018 at 12:14PM

14
#207 - Sebastien Nicoud / @sebnukem

12/22/2018 at 02:19PM

14
#208 - shw / @shw30127562

12/26/2018 at 03:18AM

14
#209 - Oran / @Oranav

12/27/2018 at 07:07PM

14
#210 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

12/29/2018 at 12:55AM