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):
23
#421 - Guy Rozen / @HolyEggplant

03/02/2014 at 12:40PM

23
#422 - Anthony Robson / @anthonyrobson9

05/05/2014 at 01:12AM

23
#423 - w1zeman1p / @wizemanip

05/10/2014 at 04:35AM

23
#424 - Kyle Travis / @kmakai

05/16/2014 at 03:25PM

23
#425 - Sntano Euhsk / @SEuhsk

06/03/2014 at 09:06AM

23
#426 - Deepak Surti / @dmsurti

03/18/2015 at 03:10PM

23
#427 - shugen / @shugeno

03/23/2015 at 08:55PM

23
#428 - darookee / @darookee

07/24/2015 at 10:04AM

23
#429 - Roland Crosby / @roooooland

08/05/2015 at 12:41PM

23
#430 - Gabriel Florit / @gabrielflorit

09/05/2015 at 08:49PM

23
#431 - Sean Stout / @s183s657

12/09/2015 at 07:37AM

23
#432 - Kostas / @blackraven_13

02/24/2016 at 09:59PM

23
#433 - Chenut Ludovic / @7Brwa7

04/01/2016 at 10:53AM

23
#434 - Ryan van Rensburg / @rdvr001

07/21/2016 at 04:19PM

23
#435 - poke / @useraaaaaaaaaaf

10/05/2016 at 02:52PM

23
#436 - Etienne Florent / @EtienneFlorent

11/25/2016 at 02:51PM

23
#437 - Edouard Piette / @EdPiette

05/11/2017 at 03:04PM

23
#438 - moritz / @moritz45081535

06/19/2017 at 10:19AM

23
#439 - Stop and think / @ms_uncountable

07/07/2017 at 11:38AM

23
#440 - Felipe Apostol / @flipjsio

10/08/2017 at 07:03PM

23
#441 - Timothy Michael Fox / @Timothy_M_Fox

11/21/2018 at 05:19PM

23
#442 - Kevin Ullmann / @kevosauce

01/16/2019 at 01:04AM

23
#443 - Sebastien Nicoud / @sebnukem

02/04/2019 at 01:53AM

23
#444 - zenwalker / @zenwalker93

03/11/2019 at 05:43PM

23
#445 - José / @AngelGaldamez

08/31/2019 at 06:26AM

23
#446 - Magnus / @praktiskt

11/24/2019 at 08:22PM

24
#447 - Patrick Klingemann / @pklingem

02/21/2012 at 12:08PM

24
#448 - Dan Herbert / @pocketninja_au

02/28/2012 at 09:49PM

24
#449 - Mislav Marohnić / @mislav

03/19/2012 at 12:15PM

24
#450 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 09:25PM