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
#331 - I / @ForgetIt17

11/22/2013 at 11:07PM

21
#332 - Larry Boltovskoi / @larrybolt

12/08/2013 at 01:33AM

21
#333 - pikaren / @REALpikaren

12/22/2013 at 08:29AM

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

02/03/2014 at 02:01PM

21
#335 - mattsalacain / @mattsalacain

02/03/2014 at 07:46PM

21
#336 - Robert Siemieniec / @rsiemieniec

03/05/2014 at 10:10AM

21
#337 - Huang Yu / @trave7er

03/06/2014 at 03:11AM

21
#338 - Jeff / @just_geophree

04/01/2014 at 06:52AM

21
#339 - Yiyang Chen / @yiyangc91

04/01/2014 at 01:56PM

21
#340 - 청육각형 / @_Yous

04/12/2014 at 06:34PM

21
#341 - Endir / @Endir2

04/17/2014 at 05:08PM

21
#342 - skensell / @skensell

04/27/2014 at 08:43AM

21
#343 - Jake Eaton / @Jake__Eaton

06/01/2014 at 06:22AM

21
#344 - Haoxuan Yue / @yuehaoxuanar

07/17/2014 at 03:51AM

21
#345 - AC / @quadface

08/23/2014 at 07:15PM

21
#346 - Greg / @developergreg

09/08/2014 at 02:08AM

21
#347 - Erik Buček / @_EnterNameHere_

11/27/2014 at 10:41AM

21
#348 - Frederik Vosberg / @FrediVosberg

12/08/2014 at 10:16PM

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

02/13/2015 at 03:29PM

21
#350 - Jouko Karvonen / @joukokar

03/21/2015 at 02:30AM

21
#351 - Mateusz / @foobar98765

05/22/2015 at 12:46PM

21
#352 - Sir Chauffeur / @sebdul

06/02/2015 at 09:48PM

21
#353 - Lindsay Swift / @_lindsai_

07/19/2015 at 05:50PM

21
#354 - aisapatino / @aisapatino

07/30/2015 at 04:09AM

21
#355 - Afonso Matos / @afonsolfm

09/19/2015 at 12:35PM

21
#356 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 07:49PM

21
#357 - Holden Lewis / @lonnez90

12/11/2015 at 06:06AM

21
#358 - Champion Pierre / @Pierre_darkirus

04/19/2016 at 05:44PM

21
#359 - Andres Araya / @arayaandresfco

05/24/2016 at 02:48AM

21
#360 - Ben Hill / @KaizenSoze70

05/30/2016 at 05:22PM