Add rooter_change_directory_for_project_files option#117
Add rooter_change_directory_for_project_files option#117barankarakus wants to merge 1 commit intoairblade:masterfrom
Conversation
Purpose: To replicate autochdir while still computing root directories and storing them as b:rootDir variables.
|
In that case wouldn't it be simpler to add two lines to your vimrc instead of using this plugin? set autochdir
autocmd BufEnter * let b:rootDir = expand('<afile>:p:h') |
|
Thanks for getting back to me. I don't want to set
What's my use case? It's the following:
There is a seemingly more obvious way to achieve this:
I've found that the problem with this lies in Step 2. |
|
I think it's worth persevering with your approach a bit longer. I'm not sure why You could try defining a command which turns off autochdir, runs vim-rooter manually, does your actual file-finding, then turns autochdir back on. |
Purpose:
To replicate autochdir while still computing root directories and storing them as b:rootDir variables.