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 703 remaining solutions by signing in and submitting your own entry
#704 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

704 active golfers, 2618 entries

Leaderboard (lowest score wins):
24
#451 - Jez Cope / @jezcope

04/26/2012 at 09:30PM

24
#452 - Alfredo Di Napoli / @alfredodinapoli

04/28/2012 at 04:48PM

24
#453 - Matty Williams / @matty_jwilliams

07/02/2012 at 12:49PM

24
#454 - JustGage / @JustGage

09/03/2012 at 07:38AM

24
#455 - Domon / @Domon

09/11/2012 at 10:25AM

24
#456 - Koko / @Koko72525913

01/17/2013 at 04:34PM

24
#457 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 01:02PM

24
#458 - Dan Harrington / @Dan1H1

07/26/2013 at 11:52AM

24
#459 - Bradley Tse / @bradleytse

08/30/2013 at 03:23AM

24
#460 - Oliver Christ / @0liverChrist

09/17/2013 at 09:39PM

24
#461 - Jesse Nazario / @jessenzr

10/16/2013 at 07:22PM

24
#462 - Mathieu Larouche / @matdube

11/19/2013 at 02:02AM

24
#463 - Charlene Tshos / @charlymul

12/05/2013 at 03:47PM

24
#464 - André / @Joschasa

01/22/2014 at 03:29PM

24
#465 - Jae Won Kim / @jaewone

02/05/2014 at 01:16AM

24
#466 - Patrick Oscity / @der_padde

02/10/2014 at 01:39AM

24
#467 - Omer Lachish / @rauchy

03/02/2014 at 12:38PM

24
#468 - RiccardoSven Risuleo / @riccardosven

07/20/2014 at 06:14PM

24
#469 - d1uckym d1uckym / @d1uckym

02/19/2015 at 12:43AM

24
#470 - Gammelin Guillaume / @ggammelin

05/28/2015 at 09:57AM

24
#471 - Árpád Krejczinger / @krarpi

11/02/2015 at 05:29PM

24
#472 - Jakob Schöttl / @jschoettl

12/20/2015 at 04:52AM

24
#473 - Kyouma / @kyoumaJohn

10/14/2016 at 06:24PM

24
#474 - Hans Yelek / @hans_yelek

01/13/2017 at 03:32AM

24
#475 - Luis Rodriguez / @luisthecoder

11/15/2018 at 12:04AM

25
#476 - omahn / @omahn

02/21/2012 at 02:17PM

25
#477 - jearsh / @jearsh

02/21/2012 at 05:18PM

25
#478 - Felix Hummel / @felixhummel

03/12/2012 at 07:39PM

25
#479 - Alex David / @alexd_me

03/26/2012 at 08:53PM

25
#480 - Rap Game Dan Aykroyd / @rapdanaykroyd

04/26/2012 at 09:19PM