I am aware that it is possible to have project and folder specific .vimrc files, but I can’t seem to find the correct command to disable a plugin for a specific directory.
In case it might be a plugin-specific matter, I am trying to disable AutoClose in my Django Templates folder.
Vim’s autocmd doesn’t support any directory change event.
So you are forced to use some other event, maybe CursorMoved and execute a function that checks if the saved current working directory equals the current working directory.
If not, you can execute your command.
Also, vim isn’t made for unloading plugins. But there’s a plugin for that!
https://github.com/MarcWeber/vim-addon-manager
Be aware that this idea is kinda hackish and might result in some serious issues.