From: John Beckett
Sent: Saturday, August 08, 2009 03:19
> Sagdullin, Bulat wrote:
> > Let's consider I have two session scripts in one folder:
> > C:\scripts\main.vim
> > C:\scripts\functions.vim
> >
> > In main.vim I have the next string:
> >  :source functions.vim
> 
> 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. 
For example, if we put your string to main.vim, this will work:
 vim.exe C:\scripts\1.txt -S main.vim
because 1.txt in the same folder as functions.vim. But this will not:
 vim.exe C:\1.txt -S main.vim

Regards,
Bulat.

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

Reply via email to