Hi Sagdullin,!

On Mo, 10 Aug 2009, Sagdullin, Bulat wrote:
> John Beckett wrote:
> > From my quick look at ":help filename-modifiers", I think:
> > 
> >   :source %:p:h/functions.vim
> 
> No, '%' expands to path to opened file in VIM, not to session (script)
> file path. 

I think you are looking for <sfile>. So try:
so <sfile>:p:h/functions.vim

regards,
Christian
-- 
    With sufficient thrust, pigs fly just fine.
                   -- RFC 1925

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to