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):
22
#391 - Jeff Parent / @jeffparent

05/16/2014 at 03:43PM

22
#392 - Netrisk Cool / @C00lt0

10/03/2016 at 02:00PM

22
#393 - Yann / @yannstad

02/22/2017 at 07:21AM

22
#394 - Alexander Bessonov / @nonsleepr

03/19/2017 at 08:31PM

22
#395 - Not real / @Notreal70353016

10/05/2018 at 07:07PM

23
#396 - blamitter ✏️ / @blamitter

02/23/2012 at 01:15PM

23
#397 - Simon ✌ Gate / @simongate

02/23/2012 at 05:17PM

23
#398 - chen_bin / @chen_bin

02/28/2012 at 01:47PM

23
#399 - Justin MacCarthy / @macarthy

02/28/2012 at 06:31PM

23
#400 - Steven Rosato / @steven_rosato

02/28/2012 at 06:34PM

23
#401 - ümit kablan / @udslk

03/10/2012 at 08:43AM

23
#402 - Francois Picalausa / @fpicalausa

03/22/2012 at 12:08AM

23
#403 - angel / @anmaso

04/15/2012 at 11:12PM

23
#404 - Michael Limiero / @michaellimiero

08/14/2012 at 11:29PM

23
#405 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:50PM

23
#406 - Arto Vuori / @dhpe

08/31/2012 at 08:00PM

23
#407 - Matt Mulder / @mxmul

12/15/2012 at 10:51AM

23
#408 - Runar / @runarfu

01/11/2013 at 05:23PM

23
#409 - Asmund / @herrasbe

01/12/2013 at 04:57PM

23
#410 - Eric Alexander / @ericalexander

07/10/2013 at 03:28AM

23
#411 - Aaron Bieber / @aaronbieber

07/14/2013 at 10:56PM

23
#412 - Rémi Jézéquel / @Remjez

08/23/2013 at 06:22PM

23
#413 - isayoldchap / @isayoldchap

09/05/2013 at 04:15AM

23
#414 - brett / @brettyukich

09/19/2013 at 10:08AM

23
#415 - foo / @foo88832727

10/19/2013 at 07:04PM

23
#416 - mwcz / @mwcz

11/01/2013 at 06:25PM

23
#417 - gary.klindt@googlema / @garstekli

11/12/2013 at 10:09PM

23
#418 - Va bien te faire fou / @mplayer_vimgolf

11/16/2013 at 01:49AM

23
#419 - Petr Broz / @ipetrbroz

12/19/2013 at 01:15AM

23
#420 - Alessandro Lisander / @wuiimu

01/05/2014 at 12:43AM