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
#361 - tgmeng / @lazy_fabric

06/16/2016 at 12:34PM

21
#362 - Reuben Huxley / @missiontocode

06/29/2016 at 10:54PM

21
#363 - TweetDreams / @TweetMusicians

10/10/2016 at 06:02AM

21
#364 - caplod / @caplod

03/26/2017 at 10:39AM

21
#365 - Saul Hardman / @saulhardman

08/21/2017 at 09:11AM

21
#366 - Sebastian Wieland / @oktupol

01/18/2018 at 03:23PM

21
#367 - prince ducaca / @prince_du_caca

09/20/2018 at 06:45PM

21
#368 - PJ Frazer / @pj_frazer

11/25/2018 at 01:40AM

21
#369 - faisal / @faisalhackshah

11/26/2018 at 06:30PM

21
#370 - Performa / @performa6400

12/10/2018 at 04:23PM

21
#371 - daniel / @daniel31464605

01/02/2019 at 09:28AM

21
#372 - Дима / @dimkino

05/30/2019 at 07:49AM

21
#373 - monaqa / @mo_naqa

09/16/2019 at 10:35AM

21
#374 - Vladimir Leskov / @vladimirlesk

11/24/2019 at 11:19PM

21
#375 - James Casey / @hanavi

12/22/2019 at 12:46AM

21
#376 - Johannes Riecken / @rubystallion

01/15/2020 at 07:09PM

21
#377 - Michael Meixner / @meixner62

01/23/2020 at 06:47PM

22
#378 - skellam / @skellam

02/24/2012 at 01:19AM

22
#379 - Nicholas E. Ewing / @nickewing

02/25/2012 at 11:59PM

22
#380 - Jomo / @yoyoyojomo

03/14/2012 at 06:01AM

22
#381 - David Elentok / @elentok

04/19/2012 at 04:50PM

22
#382 - jDeveloper / @jDevEE

04/24/2012 at 07:20PM

22
#383 - Daumantas / @dbaltrus

04/29/2012 at 01:54AM

22
#384 - Eric Weikl / @ericweikl

05/02/2012 at 08:25PM

22
#385 - mnx / @mnxx

05/14/2012 at 01:53PM

22
#386 - John Dahlström / @dahlstromjohn

06/27/2012 at 09:45PM

22
#387 - Kerson Hsiao / @KersonHsiao

06/29/2012 at 08:21AM

22
#388 - d1hotpep / @d1hotpep

07/29/2012 at 07:18PM

22
#389 - Peter Johannson / @PeterJohannson

08/04/2013 at 08:54PM

22
#390 - Richard Veneracion / @rveneracion

05/11/2014 at 08:10AM