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):
21
#331 - Andrew Crites / @ExplosionPills

09/13/2013 at 01:34AM

21
#332 - bunnies president / @bunnies4p

10/22/2013 at 10:30PM

21
#333 - Casey Dwyer / @caseydwyer

10/23/2013 at 01:44PM

21
#334 - A. N. / @arez42

10/24/2013 at 06:32AM

21
#335 - dickbutt / @ryan_haynes

10/24/2013 at 10:31PM

21
#336 - Fnord Everywhere / @FnordE

10/30/2013 at 03:41PM

21
#337 - lastsseldon / @lastsseldon

11/04/2013 at 02:41AM

21
#338 - US Dollar Price / @USDollarPrice

11/04/2013 at 06:27AM

21
#339 - Karun Ramakrishnan / @the_karun

11/22/2013 at 05:13PM

21
#340 - I / @ForgetIt17

11/22/2013 at 11:07PM

21
#341 - Larry Boltovskoi / @larrybolt

12/08/2013 at 01:33AM

21
#342 - pikaren / @REALpikaren

12/22/2013 at 08:29AM

21
#343 - Павел Игоревич / @VizierST

02/03/2014 at 02:01PM

21
#344 - mattsalacain / @mattsalacain

02/03/2014 at 07:46PM

21
#345 - Robert Siemieniec / @rsiemieniec

03/05/2014 at 10:10AM

21
#346 - Space Sloth / @daspacesloth

03/06/2014 at 03:11AM

21
#347 - Jeff / @just_geophree

04/01/2014 at 06:52AM

21
#348 - Yiyang Chen / @yiyangc91

04/01/2014 at 01:56PM

21
#349 - 청육각형 / @_Yous

04/12/2014 at 06:34PM

21
#350 - Endir / @Endir2

04/17/2014 at 05:08PM

21
#351 - skensell / @skensell

04/27/2014 at 08:43AM

21
#352 - Jake Eaton / @Jake__Eaton

06/01/2014 at 06:22AM

21
#353 - Haoxuan Yue / @yuehaoxuanar

07/17/2014 at 03:51AM

21
#354 - AC / @quadface

08/23/2014 at 07:15PM

21
#355 - Greg / @developergreg

09/08/2014 at 02:08AM

21
#356 - Erik Buček / @_EnterNameHere_

11/27/2014 at 10:41AM

21
#357 - Frederik Vosberg / @FrediVosberg

12/08/2014 at 10:16PM

21
#358 - Алексанр Цыганков / @capybarov

02/13/2015 at 03:29PM

21
#359 - Jouko Karvonen / @joukokar

03/21/2015 at 02:30AM

21
#360 - Mateusz / @foobar98765

05/22/2015 at 12:46PM