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
#361 - Sir Chauffeur / @sebdul

06/02/2015 at 09:48PM

21
#362 - Lindsay Swift / @_lindsai_

07/19/2015 at 05:50PM

21
#363 - aisapatino / @aisapatino

07/30/2015 at 04:09AM

21
#364 - Afonso Matos / @afonsolfm

09/19/2015 at 12:35PM

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

10/26/2015 at 07:49PM

21
#366 - Holden Lewis / @lonnez90

12/11/2015 at 06:06AM

21
#367 - Champion Pierre / @Pierre_darkirus

04/19/2016 at 05:44PM

21
#368 - Andres Araya / @arayaandresfco

05/24/2016 at 02:48AM

21
#369 - Ben Hill / @KaizenSoze70

05/30/2016 at 05:22PM

21
#370 - tgmeng / @lazy_fabric

06/16/2016 at 12:34PM

21
#371 - Reuben Huxley / @missiontocode

06/29/2016 at 10:54PM

21
#372 - TweetDreams / @TweetMusicians

10/10/2016 at 06:02AM

21
#373 - caplod / @caplod

03/26/2017 at 10:39AM

21
#374 - Saul Hardman / @saulhardman

08/21/2017 at 09:11AM

21
#375 - Sebastian Wieland / @oktupol

01/18/2018 at 03:23PM

21
#376 - prince ducaca / @prince_du_caca

09/20/2018 at 06:45PM

21
#377 - PJ Frazer / @pj_frazer

11/25/2018 at 01:40AM

21
#378 - faisal / @faisalhackshah

11/26/2018 at 06:30PM

21
#379 - Performa / @performa6400

12/10/2018 at 04:23PM

21
#380 - daniel / @daniel31464605

01/02/2019 at 09:28AM

21
#381 - Дима / @dimkino

05/30/2019 at 07:49AM

21
#382 - monaqa / @mo_naqa

09/16/2019 at 10:35AM

21
#383 - Vladimir Leskov / @vladimirlesk

11/24/2019 at 11:19PM

21
#384 - James Casey / @hanavi

12/22/2019 at 12:46AM

21
#385 - Johannes Riecken / @rubystallion

01/15/2020 at 07:09PM

21
#386 - Michael Meixner / @meixner62

01/23/2020 at 06:47PM

22
#387 - skellam / @skellam

02/24/2012 at 01:19AM

22
#388 - Nicholas E. Ewing / @nickewing

02/25/2012 at 11:59PM

22
#389 - Jomo / @yoyoyojomo

03/14/2012 at 06:01AM

22
#390 - David Elentok / @elentok

04/19/2012 at 04:50PM