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):
28
#571 - Hans Lidiki / @HLidiki

09/07/2019 at 06:29PM

28
#572 - Quentin Leroy / @qnleroy

05/17/2020 at 04:38PM

29
#573 - Markus Neusinger / @Tira0

02/23/2012 at 08:44AM

29
#574 - Jey Balachandran / @jeybala

02/26/2012 at 09:11AM

29
#575 - Piotr Ślatała / @pslapsla

03/14/2012 at 10:54PM

29
#576 - Carmen Wick / @fezmonkey

04/18/2012 at 12:05AM

29
#577 - ise0615 / @ise0615

04/30/2012 at 12:19PM

29
#578 - bsjd / @bsjd

05/07/2012 at 08:14PM

29
#579 - Cameron Booth / @coderdaddy

05/23/2012 at 03:12AM

29
#580 - Kerry Burke / @kurver

09/11/2012 at 09:56AM

29
#581 - Alec Chen / @alec929

11/03/2012 at 01:04PM

29
#582 - CY / @wongcy0

03/21/2013 at 06:44AM

29
#583 - James Zaghini / @jameszaghini

08/08/2013 at 09:42AM

29
#584 - Edgar Hipp / @EdgarHipp

12/13/2013 at 04:08PM

29
#585 - Alexander Bandukwala / @abanduk

01/20/2014 at 03:28PM

29
#586 - Hannes Remahl / @hannesr

02/27/2014 at 01:40PM

29
#587 - Alan Sherman / @InfoLeak117

06/03/2014 at 07:51PM

29
#588 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 08:45PM

29
#589 - TheProgrammer971 / @tp971

03/19/2015 at 12:21PM

29
#590 - William Ott / @oddalot

04/08/2015 at 02:52PM

29
#591 - Sebastian Pardo / @sebpardo

02/18/2016 at 09:02PM

29
#592 - Will / @obiwan__k3n00bi

07/31/2016 at 07:22PM

29
#593 - Michał Dytko / @DytkoM

12/21/2016 at 01:26PM

29
#594 - Herr Joschka / @HerrJoschka

10/27/2017 at 03:50AM

29
#595 - Dominic Z / @thammaaa

01/23/2018 at 07:23PM

29
#596 - Bob_V / @Bob_V

11/26/2018 at 07:22PM

29
#597 - Ivo Blöchliger / @aigledesalpes

08/05/2019 at 08:06PM

30
#598 - mjwalds / @mjwalds

03/14/2012 at 09:45PM

30
#599 - Corey Winkelmann / @cawinkelmann

03/15/2012 at 02:48PM

30
#600 - Infertux / @Infertux

05/01/2012 at 12:23AM