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):
24
#481 - Gammelin Guillaume / @ggammelin

05/28/2015 at 09:57AM

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

11/02/2015 at 05:29PM

24
#483 - Jakob Schöttl / @jschoettl

12/20/2015 at 04:52AM

24
#484 - Kyouma / @kyoumaJohn

10/14/2016 at 06:24PM

24
#485 - Hans Yelek / @hans_yelek

01/13/2017 at 03:32AM

24
#486 - Luis Rodriguez / @luisthecoder

11/15/2018 at 12:04AM

25
#487 - omahn / @omahn

02/21/2012 at 02:17PM

25
#488 - jearsh / @jearsh

02/21/2012 at 05:18PM

25
#489 - Felix Hummel / @felixhummel

03/12/2012 at 07:39PM

25
#490 - Alex David / @alexd_me

03/26/2012 at 08:53PM

25
#491 - Rap Game Dan Aykroyd / @rapdanaykroyd

04/26/2012 at 09:19PM

25
#492 - John Whitley / @johnwhitley

05/09/2012 at 06:26PM

25
#493 - Steve DeWald / @SteveDeWald

05/23/2012 at 04:31PM

25
#494 - kuniyoshi.kouji / @purasiibo

05/26/2012 at 01:14PM

25
#495 - Ori Kremer / @orikr

06/06/2012 at 08:43PM

25
#496 - vansan / @VinceVansan

08/22/2012 at 10:31AM

25
#497 - Joel Taylor / @joelteon_

07/23/2013 at 02:14AM

25
#498 - Arturo Escaip / @arturoescaip

09/01/2013 at 02:36AM

25
#499 - newton / @newtonsmartt

10/16/2013 at 07:34AM

25
#500 - Ali El Amine / @Allouch95

02/02/2014 at 03:27PM

25
#501 - John Amicangelo / @AmicangeloJohn

02/23/2014 at 03:26AM

25
#502 - Christoph / @crrauch

06/11/2014 at 08:58AM

25
#503 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 10:55PM

25
#504 - Tj / @yrddy

08/13/2014 at 07:54AM

25
#505 - Gerald Tilma / @GeraldTilma

10/18/2015 at 07:36PM

25
#506 - Feras / @faldah

05/01/2016 at 02:03PM

25
#507 - 王运 / @640138017

07/25/2016 at 04:54AM

25
#508 - Quatrix / @Quatrix

08/10/2016 at 09:43PM

25
#509 - Moritz Manner / @moritz_manner

01/01/2018 at 09:00PM

25
#510 - SporadicLizard / @sporadiclizard

01/15/2018 at 02:18AM