Saturday, May 29, 2010

Re: Relative path to plugin script?

> If you push bundle into &rtp, I'd recommend you to play with globpath() instead in order to find the script. It's a neater solution IMO.

findfile('bin/yourplugin.groovy', &rtp) would be an alternative
solution.

> exe "nnoremap <leader>f :call system(".string(s:install_dir).".'../bin/yourplugin.groovy')<cr>"

I think you should also use shellescape(s:install_dir).

Regards,
Tom

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: