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:
Post a Comment