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 4f438739f5a8d70001000019

replacing each line of a block selection

replace each line's ../assets/js with /javascripts

Start file
<script src="../assets/js/jquery.js"></script>
<script src="../assets/js/bootstrap-transition.js"></script>
<script src="../assets/js/bootstrap-alert.js"></script>
<script src="../assets/js/bootstrap-modal.js"></script>
<script src="../assets/js/bootstrap-dropdown.js"></script>

<script src="../assets/js/bootstrap-scrollspy.js"></script>
<script src="../assets/js/bootstrap-tab.js"></script>
<script src="../assets/js/bootstrap-tooltip.js"></script>
<script src="../assets/js/bootstrap-popover.js"></script>
<script src="../assets/js/bootstrap-button.js"></script>
<script src="../assets/js/bootstrap-collapse.js"></script>

<script src="../assets/js/bootstrap-carousel.js"></script>
<script src="../assets/js/bootstrap-typeahead.js"></script>
End file
<script src="/javascripts/jquery.js"></script>
<script src="/javascripts/bootstrap-transition.js"></script>
<script src="/javascripts/bootstrap-alert.js"></script>
<script src="/javascripts/bootstrap-modal.js"></script>
<script src="/javascripts/bootstrap-dropdown.js"></script>

<script src="/javascripts/bootstrap-scrollspy.js"></script>
<script src="/javascripts/bootstrap-tab.js"></script>
<script src="/javascripts/bootstrap-tooltip.js"></script>
<script src="/javascripts/bootstrap-popover.js"></script>
<script src="/javascripts/bootstrap-button.js"></script>
<script src="/javascripts/bootstrap-collapse.js"></script>

<script src="/javascripts/bootstrap-carousel.js"></script>
<script src="/javascripts/bootstrap-typeahead.js"></script>

View Diff

1,5c1,5
< <script src="../assets/js/jquery.js"></script>
< <script src="../assets/js/bootstrap-transition.js"></script>
< <script src="../assets/js/bootstrap-alert.js"></script>
< <script src="../assets/js/bootstrap-modal.js"></script>
< <script src="../assets/js/bootstrap-dropdown.js"></script>
---
> <script src="/javascripts/jquery.js"></script>
> <script src="/javascripts/bootstrap-transition.js"></script>
> <script src="/javascripts/bootstrap-alert.js"></script>
> <script src="/javascripts/bootstrap-modal.js"></script>
> <script src="/javascripts/bootstrap-dropdown.js"></script>
7,12c7,12
< <script src="../assets/js/bootstrap-scrollspy.js"></script>
< <script src="../assets/js/bootstrap-tab.js"></script>
< <script src="../assets/js/bootstrap-tooltip.js"></script>
< <script src="../assets/js/bootstrap-popover.js"></script>
< <script src="../assets/js/bootstrap-button.js"></script>
< <script src="../assets/js/bootstrap-collapse.js"></script>
---
> <script src="/javascripts/bootstrap-scrollspy.js"></script>
> <script src="/javascripts/bootstrap-tab.js"></script>
> <script src="/javascripts/bootstrap-tooltip.js"></script>
> <script src="/javascripts/bootstrap-popover.js"></script>
> <script src="/javascripts/bootstrap-button.js"></script>
> <script src="/javascripts/bootstrap-collapse.js"></script>
14,15c14,15
< <script src="../assets/js/bootstrap-carousel.js"></script>
< <script src="../assets/js/bootstrap-typeahead.js"></script>
---
> <script src="/javascripts/bootstrap-carousel.js"></script>
> <script src="/javascripts/bootstrap-typeahead.js"></script>

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 718 remaining solutions by signing in and submitting your own entry
#719 Teilhard de Chardin / @tdChardin - Score: 75 - 10/24/13 @ 20:47
:%s/../a<BS><BS>//assetes<BS><BS>s//js/<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS>\<Right><Right><Right><Right><Right><Right><Right><Right><BS>\<Right><Right><Right><Right>\/javascripts/g<CR>:wq<CR>

0 comments


Created by: @pklingem

719 active golfers, 2706 entries

Leaderboard (lowest score wins):
23
#451 - Timothy Michael Fox / @Timothy_M_Fox

11/21/2018 at 05:19PM

23
#452 - Kevin Ullmann / @kevosauce

01/16/2019 at 01:04AM

23
#453 - Sebastien Nicoud / @sebnukem

02/04/2019 at 01:53AM

23
#454 - zenwalker / @zenwalker93

03/11/2019 at 05:43PM

23
#455 - José / @AngelGaldamez

08/31/2019 at 06:26AM

23
#456 - Magnus / @praktiskt

11/24/2019 at 08:22PM

23
#457 - RockerZZY / @rocker_zzy

06/08/2020 at 12:49AM

24
#458 - Patrick Klingemann / @pklingem

02/21/2012 at 12:08PM

24
#459 - Dan Herbert / @pocketninja_au

02/28/2012 at 09:49PM

24
#460 - Mislav Marohnić / @mislav

03/19/2012 at 12:15PM

24
#461 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 09:25PM

24
#462 - Jez Cope / @jezcope

04/26/2012 at 09:30PM

24
#463 - Alfredo Di Napoli / @alfredodinapoli

04/28/2012 at 04:48PM

24
#464 - Matty Williams / @matty_jwilliams

07/02/2012 at 12:49PM

24
#465 - JustGage / @JustGage

09/03/2012 at 07:38AM

24
#466 - Domon / @Domon

09/11/2012 at 10:25AM

24
#467 - Koko / @Koko72525913

01/17/2013 at 04:34PM

24
#468 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 01:02PM

24
#469 - Dan Harrington / @Dan1H1

07/26/2013 at 11:52AM

24
#470 - Bradley Tse / @bradleytse

08/30/2013 at 03:23AM

24
#471 - Oliver Christ / @0liverChrist

09/17/2013 at 09:39PM

24
#472 - Jesse Nazario / @jessenzr

10/16/2013 at 07:22PM

24
#473 - Mathieu Larouche / @matdube

11/19/2013 at 02:02AM

24
#474 - Charlene Tshos / @charlymul

12/05/2013 at 03:47PM

24
#475 - André / @Joschasa

01/22/2014 at 03:29PM

24
#476 - Jae Won Kim / @jaewone

02/05/2014 at 01:16AM

24
#477 - Patrick Oscity / @der_padde

02/10/2014 at 01:39AM

24
#478 - Omer Lachish / @rauchy

03/02/2014 at 12:38PM

24
#479 - RiccardoSven Risuleo / @riccardosven

07/20/2014 at 06:14PM

24
#480 - d1uckym d1uckym / @d1uckym

02/19/2015 at 12:43AM