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):
29
#571 - James Zaghini / @jameszaghini

08/08/2013 at 09:42AM

29
#572 - Edgar Hipp / @EdgarHipp

12/13/2013 at 04:08PM

29
#573 - Alexander Bandukwala / @abanduk

01/20/2014 at 03:28PM

29
#574 - Hannes Remahl / @hannesr

02/27/2014 at 01:40PM

29
#575 - Alan Sherman / @InfoLeak117

06/03/2014 at 07:51PM

29
#576 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 08:45PM

29
#577 - TheProgrammer971 / @tp971

03/19/2015 at 12:21PM

29
#578 - William Ott / @oddalot

04/08/2015 at 02:52PM

29
#579 - Sebastian Pardo / @sebpardo

02/18/2016 at 09:02PM

29
#580 - Will / @obiwan__k3n00bi

07/31/2016 at 07:22PM

29
#581 - Michał Dytko / @DytkoM

12/21/2016 at 01:26PM

29
#582 - Herr Joschka / @HerrJoschka

10/27/2017 at 03:50AM

29
#583 - Dominic Z / @thammaaa

01/23/2018 at 07:23PM

29
#584 - Bob_V / @Bob_V

11/26/2018 at 07:22PM

29
#585 - Ivo Blöchliger / @aigledesalpes

08/05/2019 at 08:06PM

30
#586 - mjwalds / @mjwalds

03/14/2012 at 09:45PM

30
#587 - Corey Winkelmann / @cawinkelmann

03/15/2012 at 02:48PM

30
#588 - Infertux / @Infertux

05/01/2012 at 12:23AM

30
#589 - Son of Bongo / @bpcode

05/07/2012 at 04:52PM

30
#590 - Josh Steiner / @josh_steiner

06/12/2012 at 01:03AM

30
#591 - Joseph J. Piché / @jjpiche

08/25/2012 at 01:49AM

30
#592 - Viswanath Sivakumar / @viswanathgs

08/31/2012 at 08:45PM

30
#593 - Tullio Facchinetti / @toolleeo

08/02/2013 at 12:59PM

30
#594 - Jeff Klein / @ravioli_jazz

08/19/2013 at 06:40PM

30
#595 - Daniel Kovacic / @dkov01

09/02/2013 at 09:03PM

30
#596 - rblakem / @rblakem

01/29/2014 at 03:53AM

30
#597 - anichols / @anichols

03/13/2014 at 04:22AM

30
#598 - Violette Vanadium / @ViolettVanadium

10/08/2014 at 02:47PM

30
#599 - Dmitry Zudochkin / @zudochkin

02/20/2015 at 08:14AM

30
#600 - optixx / @optixx

03/25/2015 at 07:35AM