Hi,
Sean Hubbell wrote:
>
> A long time ago I had something set up in my .vimrc file to change the
> working directory to the location of the file I was editing. Since this
> was in the mid 90's I cannot remember so may be this functionality is
> obsolete now but when I was going through the help I found autochdir but
> this does not work for me. Does anyone have this working for them?
:help 'autochdir'
tells
{only available when compiled with the
|+netbeans_intg| or |+sun_workshop| feature}
But you can simulate this option with something like
:autocmd BufRead,BufNewFile * cd %:p:h
:autocmd BufEnter * cd %:p:h
...
(You might want to use lcd instead of cd.)
Regards,
J?rgen
--
J?rgen Kr?mer Softwareentwicklung
HABEL GmbH & Co. KG mailto:
[hidden email]
Hinteres ?schle 2 Tel: +49 / 74 61 / 93 53 - 15
78604 Rietheim-Weilheim Fax: +49 / 74 61 / 93 53 - 99