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):
23
#421 - Aaron Bieber / @aaronbieber

07/14/2013 at 10:56PM

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

08/23/2013 at 06:22PM

23
#423 - isayoldchap / @isayoldchap

09/05/2013 at 04:15AM

23
#424 - brett / @brettyukich

09/19/2013 at 10:08AM

23
#425 - foo / @foo88832727

10/19/2013 at 07:04PM

23
#426 - mwcz / @mwcz

11/01/2013 at 06:25PM

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

11/12/2013 at 10:09PM

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

11/16/2013 at 01:49AM

23
#429 - Petr Broz / @ipetrbroz

12/19/2013 at 01:15AM

23
#430 - Alessandro Lisander / @wuiimu

01/05/2014 at 12:43AM

23
#431 - Guy Rozen / @HolyEggplant

03/02/2014 at 12:40PM

23
#432 - Anthony Robson / @anthonyrobson9

05/05/2014 at 01:12AM

23
#433 - CJ Avilla / @wizemanip

05/10/2014 at 04:35AM

23
#434 - Kyle Travis / @kmakai

05/16/2014 at 03:25PM

23
#435 - Sntano Euhsk / @SEuhsk

06/03/2014 at 09:06AM

23
#436 - Deepak Surti / @dmsurti

03/18/2015 at 03:10PM

23
#437 - shugen / @shugeno

03/23/2015 at 08:55PM

23
#438 - darookee / @darookee

07/24/2015 at 10:04AM

23
#439 - Roland Crosby / @roooooland

08/05/2015 at 12:41PM

23
#440 - Gabriel Florit / @gabrielflorit

09/05/2015 at 08:49PM

23
#441 - Sean Stout / @s183s657

12/09/2015 at 07:37AM

23
#442 - Kostas / @blackraven_13

02/24/2016 at 09:59PM

23
#443 - Chenut Ludovic / @7Brwa7

04/01/2016 at 10:53AM

23
#444 - Ryan van Rensburg / @rdvr001

07/21/2016 at 04:19PM

23
#445 - poke / @useraaaaaaaaaaf

10/05/2016 at 02:52PM

23
#446 - Etienne Florent / @EtienneFlorent

11/25/2016 at 02:51PM

23
#447 - Edouard Piette / @EdPiette

05/11/2017 at 03:04PM

23
#448 - moritz / @moritz45081535

06/19/2017 at 10:19AM

23
#449 - Stop and think / @ms_uncountable

07/07/2017 at 11:38AM

23
#450 - Felipe Apostol / @flipjsio

10/08/2017 at 07:03PM