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):
20
#211 - Dan Oneata / @DanOneata

08/04/2012 at 09:32AM

20
#212 - Frank Twitting / @knarfben

09/08/2012 at 08:47PM

20
#213 - G. Ahtune / @gahtune

11/03/2012 at 06:09PM

20
#214 - Yann Moisan / @YannMoisan

01/12/2013 at 08:45PM

20
#215 - Kai Yuan / @kentyuan

02/21/2013 at 05:39PM

20
#216 - James Scriven / @JamesDScriven

07/07/2013 at 12:31PM

20
#217 - Timothée Gauthier / @zmf_tim

07/10/2013 at 12:16PM

20
#218 - Matt Cook / @mattcook08

07/10/2013 at 09:17PM

20
#219 - Bradd Szonye / @bszonye

07/11/2013 at 06:32AM

20
#220 - arminas / @arminas

07/11/2013 at 07:48AM

20
#221 - Gwilym Kuiper / @gwilymk

07/11/2013 at 08:49PM

20
#222 - Andrew Dennis / @ALzonedOut

07/18/2013 at 02:07AM

20
#223 - Nathan / @NathanHarperoni

07/19/2013 at 10:44PM

20
#224 - cj / @cj01101

08/04/2013 at 06:41PM

20
#225 - Stephen Drodge / @sjdrodge

08/25/2013 at 04:16AM

20
#226 - Marcin Sza / @coot_

10/12/2013 at 09:20AM

20
#227 - John Gray Cole / @johngraycole

12/15/2013 at 02:34AM

20
#228 - D / @justcallmedrago

12/15/2013 at 07:51AM

20
#229 - Domingue Justin / @_jdomingue

01/01/2014 at 02:52AM

20
#230 - Andreas Källberg / @Anka213

01/17/2014 at 03:54AM

20
#231 - john / @KMKY_Aha

05/04/2014 at 05:34PM

20
#232 - Herr Oppermann / @HerrOppermann

06/15/2014 at 08:13PM

20
#233 - Matt / @mcr05

12/11/2014 at 07:36PM

20
#234 - Andreas Møller / @cullophid

01/16/2015 at 04:06PM

20
#235 - Garrett Smith / @garrettwhsmith

03/29/2015 at 05:43PM

20
#236 - Daniel Pham / @dany_pham

10/19/2015 at 04:42PM

20
#237 - Pete Sevander / @Sevanteri

11/12/2015 at 02:27PM

20
#238 - Janine Cheng / @janineist

02/13/2016 at 01:26PM

20
#239 - Syrrim / @syrrim

03/10/2016 at 09:02PM

20
#240 - Mister Knister / @vimgolf_ctrl_x

03/17/2016 at 12:55PM