airblade / vim-rooter

Changes Vim working directory to project root.
MIT License
1.23k stars 72 forks source link

Optionally use :tcd instead of :cd or :lcd #109

Closed ArifRoktim closed 4 years ago

ArifRoktim commented 4 years ago

Allow changing the current directory for tabs only.


It doesn't make much sense for users to use both: let g:rooter_use_tcd = 1 and let g:rooter_use_lcd = 1 but regardless, I made g:rooter_use_tcd have higher priority over g:rooter_use_lcd since the tab's current dir is more general and a window will override that with its own local current dir.