Saturday, May 29, 2010

Re: Relative path to plugin script?

> Did you try expand('<sfile>:p:h') in order to obtain the directory where your script is installed?

I remember sfile not working within functions. So you have to define a
file local var as suggested:

let s:foo = expand('<sfile>:p:h') ..

Then you can use that var within that file easily.

Marc Weber

--
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: