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):
25
#481 - John Whitley / @johnwhitley

05/09/2012 at 06:26PM

25
#482 - Steve DeWald / @SteveDeWald

05/23/2012 at 04:31PM

25
#483 - kuniyoshi.kouji / @purasiibo

05/26/2012 at 01:14PM

25
#484 - Ori Kremer / @orikr

06/06/2012 at 08:43PM

25
#485 - vansan / @VinceVansan

08/22/2012 at 10:31AM

25
#486 - Joel Taylor / @joelteon_

07/23/2013 at 02:14AM

25
#487 - Arturo Escaip / @arturoescaip

09/01/2013 at 02:36AM

25
#488 - newton / @newtonsmartt

10/16/2013 at 07:34AM

25
#489 - Ali El Amine / @Allouch95

02/02/2014 at 03:27PM

25
#490 - John Amicangelo / @AmicangeloJohn

02/23/2014 at 03:26AM

25
#491 - Christoph / @crrauch

06/11/2014 at 08:58AM

25
#492 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 10:55PM

25
#493 - Tj / @yrddy

08/13/2014 at 07:54AM

25
#494 - Gerald Tilma / @GeraldTilma

10/18/2015 at 07:36PM

25
#495 - Feras / @faldah

05/01/2016 at 02:03PM

25
#496 - 王运 / @640138017

07/25/2016 at 04:54AM

25
#497 - Quatrix / @Quatrix

08/10/2016 at 09:43PM

25
#498 - Moritz Manner / @moritz_manner

01/01/2018 at 09:00PM

25
#499 - SporadicLizard / @sporadiclizard

01/15/2018 at 02:18AM

25
#500 - niwatoco / @yoshitune9

07/20/2018 at 03:32PM

25
#501 - 14758f1afd44c09b7992073ccf00b43d / @14758f1afd44c01

11/26/2018 at 07:12PM

25
#502 - wrglprmft1 / @wrglprmft1

01/26/2019 at 02:42PM

26
#503 - Hachez Floran / @FloranHachez

09/02/2013 at 08:19PM

26
#504 - Jason Walton / @jay_ay_y

04/11/2014 at 11:12PM

26
#505 - Kirill / @wedens_

07/14/2014 at 05:09AM

26
#506 - Nicholas McHenry / @n_mchenry

06/14/2015 at 05:18PM

26
#507 - Daniel / @Daniel00288663

04/27/2017 at 01:03PM

26
#508 - Phil Devitt / @GeneralHav0k

01/03/2019 at 01:38PM

26
#509 - StrangeNumbers / @NumbersStrange

03/28/2019 at 08:37AM

27
#510 - Jyun-Fan Tsai / @fakecolor

02/21/2012 at 12:52PM