I understand to backup my vimrc file but what about my plugins? Will I have to reinstall them if I move to another machine? Or can I just copy paste the directories in my vim folder ( but what if i go from windows to linux) ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally, it is sufficient to take the
vimfiles/.vimdirectory with you. However, in my experience the Linux builds of Vim are much more fussy about plugin line-endings than the Windows ones. Therefore, it is worth checking that all of your plugins and other vim configuration files have Unix line endings so that they work on Windows and Linux without issues.In my set-up, I have the whole of
.vimunder version control: this makes synchronising multiple computers very straightforward. To make this work well, put your_vimrcinto yourvimfilesdirectory and name it (e.g.)vimrc. Then in the place where you normally have_vimrcadd a file with this content:Do the same for
_gvimrcif you have one. This means you can keep everything in one folder (plugins andvimrc) and keep that folder under version control or just synchronise it by some other means if you prefer.