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):
31
#631 - Brian Olpin / @bolpin

03/23/2014 at 06:46AM

31
#632 - Pin / @ponfelipon

03/02/2016 at 02:31PM

31
#633 - Patrick Lavin / @LavinComputes

01/30/2019 at 09:12PM

31
#634 - theBecwar / @thebecwar

08/19/2019 at 06:50PM

31
#635 - 김도현 / @6fdKwPnTtQiGrWx

02/11/2020 at 08:12AM

31
#636 - abhijeet patil / @abhijeetptl5

09/03/2020 at 04:57AM

32
#637 - Bartłomiej Kozal / @bkzl_

03/13/2012 at 09:44PM

32
#638 - neerajsharma / @neerajsharma

03/22/2012 at 04:53AM

32
#639 - John Cooper / @choffee

03/31/2012 at 06:53PM

32
#640 - Nathan Manousos / @trafnar

04/01/2012 at 03:22AM

32
#641 - Smit Shah / @Who828

04/10/2012 at 01:20AM

32
#642 - Maciej Litwiniuk / @mlitwiniuk

04/26/2012 at 08:57PM

32
#643 - Viktor Jackson / @AntiStalinista

05/05/2012 at 03:42AM

32
#644 - Marco / @xmarkoz

06/29/2012 at 05:27AM

32
#645 - Underhill Labs / @underhilllabs

11/01/2012 at 06:25AM

32
#646 - George GZ Zakhour / @AlloGeorge

06/25/2013 at 11:44AM

32
#647 - TrentonZero / @TrentonZero

07/04/2013 at 09:51PM

32
#648 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 01:39AM

32
#649 - Blaine Schmeisser / @blainesch

10/16/2013 at 10:52AM

32
#650 - Sam Burk / @smwbk

12/23/2013 at 01:09AM

32
#651 - starrynte / @starrynte

07/10/2014 at 06:04PM

32
#652 - luffy / @raxcoi

06/09/2015 at 08:22PM

33
#653 - Mark Zalar / @ZalarMark

04/24/2012 at 01:08PM

33
#654 - Gavin Hughes / @gavinhughes

05/17/2012 at 08:28AM

33
#655 - Brandon Montgomery / @bmonty

06/23/2012 at 07:35PM

33
#656 - Jan Wedekind / @wedesoft

07/11/2012 at 11:37AM

33
#657 - Alberto Pose / @thepose

11/06/2013 at 06:01PM

33
#658 - WoljaIlpapa / @WoljaIlpapa

12/20/2013 at 04:40AM

33
#659 - Pedro Santos / @pedrosans

02/24/2014 at 05:32PM

33
#660 - Almog / @almog

03/02/2014 at 12:48PM