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):
19
#121 - Urtica dioica / @udioica

12/10/2012 at 04:39AM

19
#122 - Marco Hinz / @_mhinz_

05/23/2013 at 10:02AM

19
#123 - Steve Tjoa / @stevetjoa

07/09/2013 at 04:40AM

19
#124 - William Snyders / @iam2391212

07/13/2013 at 01:27AM

19
#125 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/21/2013 at 07:28PM

19
#126 - Andy Balaam / @andybalaam

08/05/2013 at 04:13PM

19
#127 - Chris Brown / @engineercyb

08/06/2013 at 11:15PM

19
#128 - David Pathakjee / @DavidPathakjee

08/14/2013 at 04:26AM

19
#129 - Michael Coles / @gen_ale_drinker

08/17/2013 at 03:42PM

19
#130 - Arthur叔 / @Arthurljg

08/31/2013 at 04:16AM

19
#131 - Trần Lê Anh Minh / @lekima

10/13/2013 at 07:41AM

19
#132 - Dimitar Dimitrov / @kurkale6ka

10/18/2013 at 03:43PM

19
#133 - thasso / @thasso23

10/27/2013 at 06:07PM

19
#134 - Nathan Wallace / @nathanmwallace

11/05/2013 at 09:49PM

19
#135 - Jonathan Potter / @nTypeRed

11/11/2013 at 08:39PM

19
#136 - Joshua Appelman / @JoshuaAppelman

12/21/2013 at 08:21PM

19
#137 - Paul Liu / @automorphism

01/01/2014 at 03:03PM

19
#138 - João Paiva / @jgpaiva

01/30/2014 at 02:46PM

19
#139 - John Braxler / @braxler

02/18/2014 at 10:36PM

19
#140 - Timothy Lin / @lzh9102

03/08/2014 at 03:50AM

19
#141 - Jared Weakly / @jaredweakly

03/08/2014 at 07:17AM

19
#142 - Jean / @ygu0_0

03/09/2014 at 10:07PM

19
#143 - RB / @powerage88

03/15/2014 at 06:31PM

19
#144 - Joonas Pihlajamaa / @jokkebk

03/19/2014 at 01:03PM

19
#145 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:53PM

19
#146 - Akshay Hegde / @ajh_17

04/14/2014 at 07:20AM

19
#147 - Jones / @Libidijones

04/18/2014 at 04:10PM

19
#148 - Nic West / @west_nic

04/21/2014 at 10:11AM

19
#149 - zmo / @guyzmo

05/11/2014 at 03:43PM

19
#150 - Martin Delille / @martinodelilo

05/11/2014 at 08:45PM