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):
22
#391 - jDeveloper / @jDevEE

04/24/2012 at 07:20PM

22
#392 - Daumantas / @dbaltrus

04/29/2012 at 01:54AM

22
#393 - Eric Weikl / @ericweikl

05/02/2012 at 08:25PM

22
#394 - mnx / @mnxx

05/14/2012 at 01:53PM

22
#395 - John Dahlström / @dahlstromjohn

06/27/2012 at 09:45PM

22
#396 - Kerson Hsiao / @KersonHsiao

06/29/2012 at 08:21AM

22
#397 - d1hotpep / @d1hotpep

07/29/2012 at 07:18PM

22
#398 - Peter Johannson / @PeterJohannson

08/04/2013 at 08:54PM

22
#399 - Richard Veneracion / @rveneracion

05/11/2014 at 08:10AM

22
#400 - Jeff Parent / @jeffparent

05/16/2014 at 03:43PM

22
#401 - Netrisk Cool / @C00lt0

10/03/2016 at 02:00PM

22
#402 - Yann / @yannstad

02/22/2017 at 07:21AM

22
#403 - Alexander Bessonov / @nonsleepr

03/19/2017 at 08:31PM

22
#404 - Not real / @Notreal70353016

10/05/2018 at 07:07PM

22
#405 - Moatvald / @moatvald

05/20/2020 at 11:30AM

23
#406 - blamitter ✏️ / @blamitter

02/23/2012 at 01:15PM

23
#407 - Simon ✌ Gate / @simongate

02/23/2012 at 05:17PM

23
#408 - chen_bin / @chen_bin

02/28/2012 at 01:47PM

23
#409 - Justin MacCarthy / @macarthy

02/28/2012 at 06:31PM

23
#410 - Steven Rosato / @steven_rosato

02/28/2012 at 06:34PM

23
#411 - ümit kablan / @udslk

03/10/2012 at 08:43AM

23
#412 - Francois Picalausa / @fpicalausa

03/22/2012 at 12:08AM

23
#413 - angel / @anmaso

04/15/2012 at 11:12PM

23
#414 - Michael Limiero / @michaellimiero

08/14/2012 at 11:29PM

23
#415 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:50PM

23
#416 - Arto Vuori / @dhpe

08/31/2012 at 08:00PM

23
#417 - Matt Mulder / @mxmul

12/15/2012 at 10:51AM

23
#418 - Runar / @runarfu

01/11/2013 at 05:23PM

23
#419 - Asmund / @herrasbe

01/12/2013 at 04:57PM

23
#420 - Eric Alexander / @ericalexander

07/10/2013 at 03:28AM