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):
21
#301 - Jonas Samuelsson / @RegalSkeppet

04/04/2012 at 12:41PM

21
#302 - Pepe / @GomTvIneluki

04/16/2012 at 04:38PM

21
#303 - Radek / @qrczeno

04/19/2012 at 08:34AM

21
#304 - Chris Thorn / @thorncp

04/19/2012 at 03:54PM

21
#305 - matthewpeck / @matthewpeck

04/24/2012 at 02:44PM

21
#306 - keyboardsurfer / @keyboardsurfer

04/24/2012 at 06:09PM

21
#307 - Scott Christopherson / @Scottopherson

04/25/2012 at 04:23PM

21
#308 - Jonathan Lozinski / @jlozinski

04/25/2012 at 07:38PM

21
#309 - Golf Sinteppadon / @minigolf2000

04/25/2012 at 08:17PM

21
#310 - Martin Aumueller / @aumuell

04/26/2012 at 09:21PM

21
#311 - Tibor Claassen / @codebeige

04/28/2012 at 01:21PM

21
#312 - Evgeny Persienko / @zzazab

05/12/2012 at 06:11AM

21
#313 - Ben Friedland / @bfriedland174

05/17/2012 at 07:35AM

21
#314 - Chris Dahms / @zentrified

05/19/2012 at 10:39PM

21
#315 - Glen / @Glen_S

07/26/2012 at 06:23AM

21
#316 - Ryan Patterson / @CGamesPlay

07/29/2012 at 05:59PM

21
#317 - Peter Schlette / @pschlette

08/01/2012 at 03:45AM

21
#318 - Reed Riley / @ReedRile

08/13/2012 at 06:54PM

21
#319 - Sean Griffin / @sgrif

08/14/2012 at 02:13AM

21
#320 - Jan Sedivy / @jan_sedivy

08/28/2012 at 01:43PM

21
#321 - Federico Bond / @federicobond

09/22/2012 at 11:29PM

21
#322 - Nick Reynolds / @ndreynolds

12/18/2012 at 09:41PM

21
#323 - Tyler / @tylerbindon

04/04/2013 at 02:52PM

21
#324 - powertomato / @powertomato

06/27/2013 at 07:22PM

21
#325 - Maxime Dréau / @mdreau

06/27/2013 at 09:10PM

21
#326 - Tresifina / @Tresifina

07/11/2013 at 04:03PM

21
#327 - Roland Schatz / @fl_Overmind

07/12/2013 at 04:13PM

21
#328 - Dom Armstrong / @dom_cycleface

08/20/2013 at 01:13PM

21
#329 - Barry Nichols / @Barry_Nichols

08/27/2013 at 12:37AM

21
#330 - Fontaine Kévin / @DotSlash974

08/31/2013 at 04:22PM