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):
21
#271 - Vijay Dev / @vijay_dev

02/25/2012 at 06:17PM

21
#272 - Erlend F. / @_erlend

02/26/2012 at 03:08AM

21
#273 - Joey Geiger / @jgeiger

02/26/2012 at 05:12AM

21
#274 - Clem / @clemst

02/26/2012 at 08:40PM

21
#275 - Grigoriy Glushko / @grinderrz

02/26/2012 at 09:19PM

21
#276 - Justin Cullen / @zenguine

02/27/2012 at 10:40PM

21
#277 - Ryan Fitzgerald / @revfitz

02/29/2012 at 07:26AM

21
#278 - Peter Anselmo / @peter_anselmo

03/02/2012 at 04:29PM

21
#279 - Asymmetrical Max / @thismax

03/05/2012 at 07:18PM

21
#280 - Horatio Tashe / @deothrin

03/12/2012 at 09:43AM

21
#281 - sjatkinson / @sjatkinson

03/13/2012 at 09:01PM

21
#282 - Kubek2k / @kubek2k

03/14/2012 at 07:16PM

21
#283 - Kurt Gaastra / @KGaastra

03/16/2012 at 12:07AM

21
#284 - Thijs Brobbel / @tiesmaster

03/17/2012 at 11:23AM

21
#285 - arno renevier / @dadadiblog

03/18/2012 at 04:49PM

21
#286 - Analog / @analogp1xel

03/20/2012 at 09:10PM

21
#287 - Pan Thomakos / @panthomakos

03/25/2012 at 05:31PM

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

03/31/2012 at 02:10AM

21
#289 - Tor Ivry / @torkale

04/01/2012 at 10:30PM

21
#290 - Prody / @Prody225

04/02/2012 at 10:58AM

21
#291 - Steven Moazami / @mong8se

04/02/2012 at 01:59PM

21
#292 - Jonas Samuelsson / @RegalSkeppet

04/04/2012 at 12:41PM

21
#293 - Pepe / @GomTvIneluki

04/16/2012 at 04:38PM

21
#294 - Radek / @qrczeno

04/19/2012 at 08:34AM

21
#295 - Chris Thorn / @thorncp

04/19/2012 at 03:54PM

21
#296 - matthewpeck / @matthewpeck

04/24/2012 at 02:44PM

21
#297 - keyboardsurfer / @keyboardsurfer

04/24/2012 at 06:09PM

21
#298 - Scott Christopherson / @Scottopherson

04/25/2012 at 04:23PM

21
#299 - Jonathan Lozinski / @jlozinski

04/25/2012 at 07:38PM

21
#300 - Golf Sinteppadon / @minigolf2000

04/25/2012 at 08:17PM