Skip to content
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

Feature Request: Create an autocmd event for when the current working directory changes #868

Closed
still-dreaming-1 opened this issue Jun 15, 2016 · 2 comments

Comments

@still-dreaming-1
Copy link

still-dreaming-1 commented Jun 15, 2016

The current working directory changing is very significant for my desired workflow. It would be really helpful to have an autocmd event for when Vim's current working directory changes that could be tied into.

Here is an example where I think this would be useful. vim-fugitive uses the VimEnter event for a special case where it uses the current working directory instead of the current file. However, if the user then changes the current working directory before editing a file, I don't know of any way for either the plugin author or a user to make vim-fugitive reference the current directory as an additional special case where there is no current file. The creator of vim-fugitive says that a good autocmd for this is what is missing in order for him to add that feature: tpope/vim-fugitive#45

Another example where this would be useful would be if you wanted to automatically change NERDTree's root directory to match Vim's current working directory.

@still-dreaming-1 still-dreaming-1 changed the title Feature Request: Create an autocmd for when the current working directory changes Feature Request: Create an autocmd event for when the current working directory changes Jun 15, 2016
andymass added a commit to andymass/vim that referenced this issue Jan 8, 2018
@Cimbali
Copy link

Cimbali commented May 28, 2018

This can be closed no? The feature is implemented in b7407d3, and the PR #888 related to this issue is closed as well

@k-takata
Copy link
Member

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants