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

518 active golfers, 1791 entries

Leaderboard (lowest score wins):
14
#211 - io / @iovis9

11/22/2018 at 12:11PM

14
#212 - Rob Barry / @rob_barry

11/23/2018 at 04:36PM

14
#213 - Mihai / @mihaicristiant

11/24/2018 at 09:49AM

14
#214 - Angry Dev / @AngryDev7

11/29/2018 at 09:56PM

14
#215 - Alex Fall / @alexandfall

12/04/2018 at 04:42PM

14
#216 - Cabal51 / @Cabal51

12/05/2018 at 11:01PM

14
#217 - Ed Brown / @edbrown

12/09/2018 at 12:29PM

14
#218 - alex m / @al_mk_

12/10/2018 at 07:36PM

14
#219 - Marty Boren / @computerliker

12/11/2018 at 02:47AM

14
#220 - Cocquecigrues / @cocquecigrues

12/14/2018 at 02:30PM

14
#221 - fucus / @fishlovebanana

12/16/2018 at 03:52AM

14
#222 - Fang Yufan / @Fang_Yufan

12/16/2018 at 09:03AM

14
#223 - Kris Ezra / @kris_ezra

12/18/2018 at 04:38AM

14
#224 - guxbug / @guxbug1

12/20/2018 at 03:34AM

14
#225 - Bennett / @bennettbackward

12/20/2018 at 12:14PM

14
#226 - Sebastien Nicoud / @sebnukem

12/22/2018 at 02:19PM

14
#227 - shw / @shw30127562

12/26/2018 at 03:18AM

14
#228 - Oran / @Oranav

12/27/2018 at 07:07PM

14
#229 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

12/29/2018 at 12:55AM

14
#230 - Aditya Hegde / @adishegde

12/30/2018 at 05:45AM

14
#231 - Phil Devitt / @GeneralHav0k

01/02/2019 at 02:19PM

14
#232 - Ricardo Sisnett / @sysnet_ai

01/08/2019 at 02:36AM

14
#233 - John Smith / @JohnSmi14480159

01/09/2019 at 10:31PM

14
#234 - Jocelyn Lim / @j0c3lym

01/12/2019 at 11:23PM

14
#235 - Mangeart Yoric / @yoricm

01/16/2019 at 01:57PM

14
#236 - py / @py97235249

01/16/2019 at 03:10PM

14
#237 - LC / @leeren

01/23/2019 at 06:05PM

14
#238 - tp971 / @tp971

01/31/2019 at 01:03AM

14
#239 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:56AM

14
#240 - Patrick Lavin / @LavinComputes

02/01/2019 at 02:10PM