Hello all,

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

But this string is searching for functions.vim in current working
directory, so if I'm working not in C:\scripts folder, my script fails.
How I can find out the full path to main.vim (and so functions.vim) from
within main.vim? I.e. I want to use something as relative to main.vim
path.

Thank you in advance,
Bulat.

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

Reply via email to