-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent changing directory when restoring view. #11
Comments
Ah, yes, the I’ll ponder approaches to fixing this (again – it’s been sitting in the private Trello for this plugin for quite some time now), but I can’t promise anything ATM. |
Until I get around to this, you might be interested in the workaround I suggested in #10 . |
Thanks! This is much better than the workaround that I've been using - save cwd on Vim start and cd to it on each file opening. |
Best we can do until Vim gets a sane working directory API (e.g. the getcwd() patch lands). Closes #11.
Best we can do until Vim gets a sane working directory API (e.g. the getcwd() patch lands). Closes #11.
Best we can do until Vim gets a sane working directory API (e.g. the getcwd() patch lands). Closes #11.
JFI: Neovim has tab local directories now additionally: neovim/neovim@5ebffaa |
Thanks, but I was aware of that, having been part of the discussion that led to the feature ;). Unluckily, neither that feature nor Vim’s recent |
According to my observations and Vim's help
mkview
always addslcd ...
command to created file. This can lead to unexpected current directory changes when same file is opened in different "sessions" (projects etc.)A possible workaround would be to remove
lcd
line from the generated script.The text was updated successfully, but these errors were encountered: