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):
21
#301 - Martin Aumueller / @aumuell

04/26/2012 at 09:21PM

21
#302 - Tibor Claassen / @codebeige

04/28/2012 at 01:21PM

21
#303 - Evgeny Persienko / @zzazab

05/12/2012 at 06:11AM

21
#304 - Ben Friedland / @bfriedland174

05/17/2012 at 07:35AM

21
#305 - Chris Dahms / @zentrified

05/19/2012 at 10:39PM

21
#306 - Glen / @Glen_S

07/26/2012 at 06:23AM

21
#307 - Ryan Patterson / @CGamesPlay

07/29/2012 at 05:59PM

21
#308 - Peter Schlette / @pschlette

08/01/2012 at 03:45AM

21
#309 - Reed Riley / @ReedRile

08/13/2012 at 06:54PM

21
#310 - Sean Griffin / @sgrif

08/14/2012 at 02:13AM

21
#311 - Jan Sedivy / @jan_sedivy

08/28/2012 at 01:43PM

21
#312 - Federico Bond / @federicobond

09/22/2012 at 11:29PM

21
#313 - Nick Reynolds / @ndreynolds

12/18/2012 at 09:41PM

21
#314 - Tyler / @tylerbindon

04/04/2013 at 02:52PM

21
#315 - powertomato / @powertomato

06/27/2013 at 07:22PM

21
#316 - Maxime Dréau / @mdreau

06/27/2013 at 09:10PM

21
#317 - Tresifina / @Tresifina

07/11/2013 at 04:03PM

21
#318 - Roland Schatz / @fl_Overmind

07/12/2013 at 04:13PM

21
#319 - Dom Armstrong / @dom_cycleface

08/20/2013 at 01:13PM

21
#320 - Barry Nichols / @Barry_Nichols

08/27/2013 at 12:37AM

21
#321 - Fontaine Kévin / @DotSlash974

08/31/2013 at 04:22PM

21
#322 - Andrew Crites / @ExplosionPills

09/13/2013 at 01:34AM

21
#323 - bunnies president / @bunnies4p

10/22/2013 at 10:30PM

21
#324 - Casey Dwyer / @caseydwyer

10/23/2013 at 01:44PM

21
#325 - A. N. / @arez42

10/24/2013 at 06:32AM

21
#326 - dickbutt / @ryan_haynes

10/24/2013 at 10:31PM

21
#327 - Fnord Everywhere / @FnordE

10/30/2013 at 03:41PM

21
#328 - lastsseldon / @lastsseldon

11/04/2013 at 02:41AM

21
#329 - US Dollar Price / @USDollarPrice

11/04/2013 at 06:27AM

21
#330 - Karun Ramakrishnan / @the_karun

11/22/2013 at 05:13PM