On Tue, Jan 20, at 10:24 Tom Link wrote: > > > I've been using autochdir...the only broken thing I've noticed is > > saving and restoring sessions > > The same here. I don't think it will break too many other plugins > since without that option you cannot make any assumptions about the > current directory anyway. The autocommand is probably worse because a > plugin couldn't test whether it's enabled.
Right, the autocommand is probably worse, as a matter of fact, exactly this breakage occurred to me last week while running a script. When I (finally) figure out the reason of the failure, I had to place an awful 'if' statement to check for a global variable (which I am not very fond of them) to run the autocommand or not. I've read the docs and I wasn't sure if it was for better to use 'autochdir' or not and because I didn't have enough time to test it, I postponed the transition. So thanks for posting your experiences. Checking for 'autochdir' is easy so I believe is more safe to use, it just requires by the script writers to check for that option. Regards, Ag. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---