-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Proposal: let g:netrw_keepdir = 0 #27
Comments
I disagree with this. I use the Rooter plugin and an autocommand to automatically cd to the root of the project whenever I open a file which is inside a repository (='project'). This makes it easy to use ctrlp for the entire project, use Ack to search the entire project etc. So while I'm working my CD never changes and always points to the root of my project. |
Looking around my vim settings, I realize that probably makes the most sense if you use
So when I edit files or refresh my buffer (I have @teranex: My projects have hierarchies so deep that I can't imagine using something like Rooter. I guess that would be useful for Ack (although how do you search within the current subtree?). I use ctrlp's root markers and a search index (codesearch + notgrep). I can see how this default breaks anyone who doesn't auto change their cwd. |
Yeah, this is pretty clearly not a good fit. |
Navigating in netrw to change the cwd makes so much sense to me that it seems like it should be the default. Although, I'm not sure how much you want to change the behaviour of other plugins.
The text was updated successfully, but these errors were encountered: