Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Command-T from changing directories

Tags:

vim

macvim

My problem is that Command-T changes the current directory when opening a file. How do I prevent this?

I've followed the instructions here: Prevent vim from changing directories when opening files but setting noautochdir doesn't seem to have any effect.

If I just open a file like this :e folder/folder/file.ext vim doesn't change pwd, but when I use Command-T to open a file it changes the current directory.

like image 316
Julian Krispel-Samsel Avatar asked Aug 10 '26 00:08

Julian Krispel-Samsel


1 Answers

For prevent change directory I use vim-rooter plugin. https://github.com/airblade/vim-rooter. It works fine with Command-T and Nerdtree.

like image 114
Nikolai Borisik Avatar answered Aug 12 '26 12:08

Nikolai Borisik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!