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):
30
#601 - Son of Bongo / @bpcode

05/07/2012 at 04:52PM

30
#602 - Josh Steiner / @josh_steiner

06/12/2012 at 01:03AM

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

08/25/2012 at 01:49AM

30
#604 - Viswanath Sivakumar / @viswanathgs

08/31/2012 at 08:45PM

30
#605 - Tullio Facchinetti / @toolleeo

08/02/2013 at 12:59PM

30
#606 - Jeff Klein / @ravioli_jazz

08/19/2013 at 06:40PM

30
#607 - Daniel Kovacic / @dkov01

09/02/2013 at 09:03PM

30
#608 - rblakem / @rblakem

01/29/2014 at 03:53AM

30
#609 - anichols / @anichols

03/13/2014 at 04:22AM

30
#610 - Violette Vanadium / @ViolettVanadium

10/08/2014 at 02:47PM

30
#611 - Dmitry Zudochkin / @zudochkin

02/20/2015 at 08:14AM

30
#612 - optixx / @optixx

03/25/2015 at 07:35AM

30
#613 - chvzvhn / @chvzvhn

04/28/2015 at 01:02AM

30
#614 - Alex Pelavin / @Lazzer64

04/06/2016 at 12:05AM

30
#615 - Jeremiah Goyette / @JeremiahGoyette

08/02/2016 at 05:01AM

30
#616 - c0llision / @sh3llcode

05/03/2018 at 02:11PM

30
#617 - Brent Woo / @BrentPWoo

10/03/2018 at 08:00PM

30
#618 - Di Peng / @DCodier

11/01/2018 at 10:27PM

30
#619 - Brandon Harrison / @llAboutB

09/24/2019 at 10:32PM

30
#620 - vicver09 / @vicver091

01/27/2020 at 04:08AM

31
#621 - koozie / @koozie

03/04/2012 at 11:53PM

31
#622 - Hawk Newton / @hawknewton

03/06/2012 at 06:45PM

31
#623 - Chris Penkett / @chrispenkett

04/03/2012 at 09:59AM

31
#624 - Raúl Pedroche / @pedrocheisback

04/07/2012 at 07:49PM

31
#625 - Nikita Mikhaylov / @nslqqq

04/25/2012 at 12:39PM

31
#626 - Jordan Scales / @prezjordan

05/16/2012 at 06:33PM

31
#627 - Michael Eisel / @michaeleisel

07/14/2012 at 02:49AM

31
#628 - Michael / @patheticpat

12/16/2012 at 07:06PM

31
#629 - Nicolas Friedli / @NicolasFriedli

12/01/2013 at 01:20PM

31
#630 - Zach Kemp / @zvksf

12/13/2013 at 10:28PM