I take part in some programming projects. I use vim to code for these projects. For each project I need a corresponding .vimrc with appropriate plugins set and customization. I can use custom .vimrc with command line options -u:$ vim -u /home/loom/.vimrc.customHowever, I share ~/.vim/ directory for all projects and each plugin I installed for some project is loaded for any vim start. Definitely, I don't want such behavior. So, is there a way to select preferable .vim directory like I can select .vimrc (or maybe to have several vim installation with corresponding .vim)?
Parallel vim installations
plugin system
So, I decided to have original ~/.vim/ directory empty and to create special .vimrc.XXX and .vim.XXX/ for each project. For example/home/loom/     .vims/        .vim.foo/        .vim.bar/     .vimrc.foo     .vimrc.barFirst lines of original .vimrc looks like set nocompatiblefiletype offset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()Plugin 'VundleVim/Vundle.vim'For original ~/.vimrc :echo &rtp returns /home/loom/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim80,/usr/share/vim/vimfiles/after,/home/loom/.vim/afterSo, I need to redefine rtp. The following is the first lines of new ~/.vimrc.fooset nocompatiblefiletype offlet MYVIMDIR='/home/loom/.vims/.vim.foo'let &rtp=expand(MYVIMDIR).','.expand($VIM).'/vimfiles,'.expand($VIMRUNTIME).','.expand($VIM).'/vimfiles/after'.expand(MYVIMDIR).'/after'let &rtp .= ','.expand(MYVIMDIR).'/bundle/Vundle.vim'call vundle#begin(expand(MYVIMDIR).'/bundle')Plugin 'VundleVim/Vundle.vim'Other lines was left unchanged, except possible minor paths fixes