I usually start vim from the folder where I have my Makefile and tags file
and edit a file that is two levels down the three.
So if I am at folder x I usually would do vim x1/x2/code.c
The problem is that recently vim changes the folder to the folder where the code is (so if I do pwd it will show x1/x2).
I want it to stay at the top folder.
Is there a way of knowing what is causing the change of folder? I am assuming that is some kind of plugin but have not been able to track it down.
Thanks.
Check if you have autochdir turned on in your vimrc.
:set autochdir?to check.There are any number of plugins that could be doing it, do you happen to remember what you’ve installed recently?