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):
28
#541 - learninghang / @learninghang

04/13/2012 at 05:33PM

28
#542 - Dave@Highgroove / @HighgrooveDave

05/22/2012 at 07:50PM

28
#543 - Carlos Hernando / @chernando

06/13/2012 at 06:40PM

28
#544 - J. Nick Terry / @deft_code

08/28/2012 at 07:28AM

28
#545 - RobertT / @techrt2050

08/07/2013 at 02:05AM

28
#546 - Joe Kramer / @cozmorado

09/26/2013 at 06:18AM

28
#547 - nona urbiz / @nospampleasemam

09/29/2013 at 08:49AM

28
#548 - Zachery Chin / @momochi0

11/05/2013 at 04:49AM

28
#549 - Eric Potter / @pottereric

12/16/2013 at 06:04PM

28
#550 - Sebastián Lara M. / @slaramen

02/26/2014 at 10:05PM

28
#551 - André Branco / @avbranco

06/30/2014 at 05:41PM

28
#552 - Wade / @vvandy

12/17/2014 at 11:25PM

28
#553 - lpm11 / T. Tsunoda / @lpm11

02/16/2015 at 11:26AM

28
#554 - dave torbeck / @detour503

03/25/2015 at 10:56PM

28
#555 - Nicolas Nistal / @niconistal

11/19/2015 at 04:35AM

28
#556 - Geoff / @RealGeoffErwin

12/14/2017 at 08:51PM

28
#557 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 01:58PM

28
#558 - Jurica / @Jurica34581259

11/16/2018 at 12:32PM

28
#559 - nvb46c74f8ih / @nvb46c74f8ih

05/19/2019 at 08:40AM

28
#560 - Hans Lidiki / @HLidiki

09/07/2019 at 06:29PM

29
#561 - Markus Neusinger / @Tira0

02/23/2012 at 08:44AM

29
#562 - Jey Balachandran / @jeybala

02/26/2012 at 09:11AM

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

03/14/2012 at 10:54PM

29
#564 - Carmen Wick / @fezmonkey

04/18/2012 at 12:05AM

29
#565 - ise0615 / @ise0615

04/30/2012 at 12:19PM

29
#566 - bsjd / @bsjd

05/07/2012 at 08:14PM

29
#567 - Cameron Booth / @coderdaddy

05/23/2012 at 03:12AM

29
#568 - Kerry Burke / @kurver

09/11/2012 at 09:56AM

29
#569 - Alec Chen / @alec929

11/03/2012 at 01:04PM

29
#570 - CY / @wongcy0

03/21/2013 at 06:44AM