Hi AndyHancock! ... 2 suggestions to help finding out why/when your working directory changes: 1) :set verbose=5 When the verbose setting is set to at least 5,
Message 1 of 8
, May 2
On Mi, 01 Mai 2013, AndyHancock wrote:
> On Apr 29, 5:09 am, Marcin Szamotulski wrote:
> > If the above will not solve your problem you can record your local
> > directory in vimrc:
> > let g:pwd = getcwd()
> > and in a '.vim/after/plugin/myscript.vim' use:
> > set noautochdir
> > exe 'cd '.fnameescape(g:pwd)
> > If this was due to lcd used somewhere it should solve it. I assume
> > that it only happens on startup, if not you might need to use
> > autocommands. Maybe it only happens with some file type?
> Unfortunately, it doesn't just happen at startup. I haven't been able
> to determine the triggering event.
2 suggestions to help finding out why/when your working directory
1) :set verbose=5
When the verbose setting is set to at least 5, Vim will always
print whenever it changes directories. This might however be
accompanied with a lot of other verbose messages in which you are
2) Try if :set cpo+=. helps. This prevents changing directories, if
your buffer is modified. So this doesn't work in all cases, but
should at least prevent changing directories, when you are editing
Kabarett ist ein Breitband-Antiidiotikum.
-- Volker Pispers
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Your message has been successfully submitted and would be delivered to recipients shortly.
Changes have not been saved
Press OK to abandon changes or Cancel to continue editing
Your browser is not supported
Kindly note that Groups does not support 7.0 or earlier versions of Internet Explorer.
We recommend upgrading to the latest Internet Explorer, Google Chrome, or Firefox. If you are using IE 9 or later, make sure you turn off Compatibility View.