On 2007-01-09, at 14:54, Brian McKee wrote:

" Get a good value for $PATH. For example, if teTeX is installed, this
" should add the path to tex, pdflatex, etc.
" This should only make a difference when vim is started from the Finder or
" with open.
let $PATH = system("printenv PATH")
let $PATH = substitute($PATH, "\<C-J>$", "", "")

Hi,
I have a question. If I open my GVIM from the Dock and after that I open some file from the gui it sets PWD to my home directory not to the place from the file really is. If I open the same file clicking on it in Finder VIM sets PWD to the right place (to directory from this file is). I have written above lines to my .gvimrc but without any effects. Could somebody explain me what's going on? It's really frustrating because if I don't change the path manually forgetting about it, GVIM write my file in the home directory not in the place where it really is, making two diffrent copies of it.

How to correct it?

Cheers,
--
Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)



Reply via email to