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
#271 - Trevor Powell / @DoomedBunnies

02/22/2012 at 06:01AM

21
#272 - Vasil Sakarov / @vsakarov

02/22/2012 at 06:23AM

21
#273 - Henri Wiechers / @hwiechers

02/22/2012 at 07:16AM

21
#274 - Song Zheng / @songz

02/22/2012 at 09:15AM

21
#275 - William Dunand / @wdunand

02/23/2012 at 06:05AM

21
#276 - Michael Jin / @michaeljin

02/23/2012 at 06:31AM

21
#277 - veki / @vx_ras

02/23/2012 at 11:03AM

21
#278 - Alex Koloskov / @xenocid

02/23/2012 at 09:26PM

21
#279 - Alan Oliver / @alol

02/25/2012 at 01:06PM

21
#280 - Vijay Dev / @vijay_dev

02/25/2012 at 06:17PM

21
#281 - Erlend F. / @_erlend

02/26/2012 at 03:08AM

21
#282 - Joey Geiger / @jgeiger

02/26/2012 at 05:12AM

21
#283 - Clem / @clemst

02/26/2012 at 08:40PM

21
#284 - Grigoriy Glushko / @grinderrz

02/26/2012 at 09:19PM

21
#285 - Justin Cullen / @zenguine

02/27/2012 at 10:40PM

21
#286 - Ryan Fitzgerald / @revfitz

02/29/2012 at 07:26AM

21
#287 - Peter Anselmo / @peter_anselmo

03/02/2012 at 04:29PM

21
#288 - Asymmetrical Max / @thismax

03/05/2012 at 07:18PM

21
#289 - Horatio Tashe / @deothrin

03/12/2012 at 09:43AM

21
#290 - sjatkinson / @sjatkinson

03/13/2012 at 09:01PM

21
#291 - Kubek2k / @kubek2k

03/14/2012 at 07:16PM

21
#292 - Kurt Gaastra / @KGaastra

03/16/2012 at 12:07AM

21
#293 - Thijs Brobbel / @tiesmaster

03/17/2012 at 11:23AM

21
#294 - arno renevier / @dadadiblog

03/18/2012 at 04:49PM

21
#295 - Analog / @analogp1xel

03/20/2012 at 09:10PM

21
#296 - Pan Thomakos / @panthomakos

03/25/2012 at 05:31PM

21
#297 - not so punk :] / @notsopunk

03/31/2012 at 02:10AM

21
#298 - Tor Ivry / @torkale

04/01/2012 at 10:30PM

21
#299 - Prody / @Prody225

04/02/2012 at 10:58AM

21
#300 - Steven Moazami / @mong8se

04/02/2012 at 01:59PM