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):
18
#31 - bray / @bray

05/24/2012 at 03:11AM

18
#32 - funkattack / @funkattack

05/25/2012 at 05:29PM

18
#33 - Conner McDaniel / @connermcd

06/04/2012 at 05:22AM

18
#34 - David / @ebonhand09

06/12/2012 at 10:06AM

18
#35 - exitmouse / @exitmouse

06/26/2012 at 06:40PM

18
#36 - mwatkward / @AftrschoolSpe

06/29/2012 at 10:24PM

18
#37 - Dragan Cvetinovic / @kawkafi

07/11/2012 at 09:01PM

18
#38 - Wei Dai / @clvv42

07/12/2012 at 08:25PM

18
#39 - Raúl Jara / @rauljara

07/13/2012 at 07:28PM

18
#40 - (Emile (Swarts)) / @EmileSwarts

08/26/2012 at 10:37PM

18
#41 - Vim rocks / @vimrocks

10/09/2012 at 01:29PM

18
#42 - Hubba / @HubbaBubbaFett

12/10/2012 at 08:46PM

18
#43 - Adam Bell / @adamgbell

03/16/2013 at 10:00PM

18
#44 - Chris Webb / @chriswebb_42

04/07/2013 at 11:17PM

18
#45 - Kate / @Arohanui

05/01/2013 at 01:33AM

18
#46 - Petro Тrouq / @zulolosi

06/01/2013 at 08:23AM

18
#47 - aRkadeFR / @aRkadeFR

10/04/2013 at 09:20PM

18
#48 - Jack Z / @itszhou

10/29/2013 at 06:25AM

18
#49 - Alexey Shmalko / @RasenDubi

11/04/2013 at 05:03PM

18
#50 - Stefan Schmidt / @stafue

12/05/2013 at 03:33PM

18
#51 - Tim Smart / @tim_smart

12/11/2013 at 08:40AM

18
#52 - Jacob Niehus / @wilywampa

01/20/2014 at 07:14AM

18
#53 - Gregory Kielian / @turnbasedsoccer

01/28/2014 at 08:58AM

18
#54 - harsh / @harsh1618

01/29/2014 at 11:16AM

18
#55 - Olivier Parent / @oliparcol

02/02/2014 at 03:24PM

18
#56 - Felix Fischer / @felixfischer

02/02/2014 at 04:41PM

18
#57 - Michael Bitzi / @mibitzi

02/15/2014 at 12:40PM

18
#58 - Xelrifos / @Xelrifos

02/19/2014 at 06:55PM

18
#59 - Mina Naguib / @minaguib

02/22/2014 at 02:10AM

18
#60 - Dmitry Petrov / @can3p

02/25/2014 at 10:18AM