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):
30
#601 - chvzvhn / @chvzvhn

04/28/2015 at 01:02AM

30
#602 - Alex Pelavin / @Lazzer64

04/06/2016 at 12:05AM

30
#603 - Jeremiah Goyette / @JeremiahGoyette

08/02/2016 at 05:01AM

30
#604 - c0llision / @sh3llcode

05/03/2018 at 02:11PM

30
#605 - Brent Woo / @BrentPWoo

10/03/2018 at 08:00PM

30
#606 - Di Peng / @DCodier

11/01/2018 at 10:27PM

30
#607 - TimMcGuire / @mcguire

01/02/2019 at 08:51PM

30
#608 - Brandon Harrison / @llAboutB

09/24/2019 at 10:32PM

31
#609 - koozie / @koozie

03/04/2012 at 11:53PM

31
#610 - Hawk Newton / @hawknewton

03/06/2012 at 06:45PM

31
#611 - Chris Penkett / @chrispenkett

04/03/2012 at 09:59AM

31
#612 - Raúl Pedroche / @pedrocheisback

04/07/2012 at 07:49PM

31
#613 - Nikita Mikhaylov / @nslqqq

04/25/2012 at 12:39PM

31
#614 - Jordan Scales / @prezjordan

05/16/2012 at 06:33PM

31
#615 - Michael Eisel / @michaeleisel

07/14/2012 at 02:49AM

31
#616 - Michael / @patheticpat

12/16/2012 at 07:06PM

31
#617 - Nicolas Friedli / @NicolasFriedli

12/01/2013 at 01:20PM

31
#618 - Zach Kemp / @zvksf

12/13/2013 at 10:28PM

31
#619 - Brian Olpin / @bolpin

03/23/2014 at 06:46AM

31
#620 - Pin / @ponfelipon

03/02/2016 at 02:31PM

31
#621 - Patrick Lavin / @LavinComputes

01/30/2019 at 09:12PM

31
#622 - theBecwar / @thebecwar

08/19/2019 at 06:50PM

32
#623 - Bartłomiej Kozal / @bkzl_

03/13/2012 at 09:44PM

32
#624 - neerajsharma / @neerajsharma

03/22/2012 at 04:53AM

32
#625 - John Cooper / @choffee

03/31/2012 at 06:53PM

32
#626 - Nathan Manousos / @trafnar

04/01/2012 at 03:22AM

32
#627 - Smit Shah / @Who828

04/10/2012 at 01:20AM

32
#628 - Maciej Litwiniuk / @mlitwiniuk

04/26/2012 at 08:57PM

32
#629 - Viktor Jackson / @AntiStalinista

05/05/2012 at 03:42AM

32
#630 - Marco / @xmarkoz

06/29/2012 at 05:27AM