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):
27
#511 - Michał Taszycki / @mehowte

02/21/2012 at 03:15PM

27
#512 - Augustin Trancart / @autra42

02/28/2012 at 01:52PM

27
#513 - Aaron Lake / @aaronmlake

02/28/2012 at 06:43PM

27
#514 - Brandon Liu / @branliu

03/02/2012 at 02:11PM

27
#515 - Leon Miller-Out / @leonmo

03/06/2012 at 03:43PM

27
#516 - Michał Wróbel / @sparrovv_

03/13/2012 at 04:15PM

27
#517 - Matthieu Honel / @ocus

03/21/2012 at 11:22PM

27
#518 - cyberrodent_n / @cyberRodent_n

03/31/2012 at 05:03AM

27
#519 - (Erik Michaels-Ober) / @sferik

04/01/2012 at 03:11AM

27
#520 - 蒼時弦也 / @elct9620

04/01/2012 at 01:40PM

27
#521 - Cormac Relf / @cormacrelf

04/02/2012 at 10:49AM

27
#522 - Mahefa Randimbisoa / @DotMG

04/20/2012 at 04:03PM

27
#523 - seanwalberg / @seanwalberg

04/23/2012 at 03:18AM

27
#524 - Christian Knappskog / @chknapp

05/01/2012 at 07:23PM

27
#525 - Nathan Fisher / @natbobc

05/31/2012 at 05:57PM

27
#526 - Alykhan Kanji / @alykhank

08/17/2012 at 01:02PM

27
#527 - jakeroberts / @jakeroberts

09/07/2012 at 02:36PM

27
#528 - Jeremiah / @jeremiahishere

02/05/2013 at 06:15PM

27
#529 - Adrian Roston / @akroston

06/26/2013 at 05:59AM

27
#530 - James / @Dronak

09/07/2013 at 04:31AM

27
#531 - Foo Bar / @FooWatson

12/11/2013 at 09:16PM

27
#532 - Quota / @Quotad

01/13/2014 at 09:45AM

27
#533 - Johan Berg / @_berg85

01/17/2014 at 03:25PM

27
#534 - Billy McCarthy / @reshippie

02/10/2014 at 09:42PM

27
#535 - Ben Lambeth / @azy2_ben

02/12/2014 at 10:49PM

27
#536 - Solar Powered Robot / @moskrin

04/30/2014 at 07:02PM

27
#537 - Will Munn / @lfsaw

07/03/2014 at 12:11AM

27
#538 - MrTchuss / @buffer_x90

08/08/2015 at 11:51AM

27
#539 - Jörg Meyer / @JoergMy

08/25/2015 at 09:32PM

28
#540 - Lonny Jepson / @StrayPanda42

03/02/2012 at 03:11PM