My vim under Linux has three vimrcs, what are the differences?
过去多啦不再A梦2017-05-16 16:42:19
0
4
1071
I just revised the question, here it is, I am Linux, I found that there are three vimrcs: /etc/vim/vimrc, /usr/share/vim/vimrc and /usr/share/vim/vimfiles/ vimrc, what's the difference?
I guess you may be using vim under win. _vimrc in $VIM (that is, your /vim) is the global configuration file, and _vimrc in $HOME is the current user's configuration file. As for /vim/vimfiles, you don’t need vimrc (usually there doesn’t seem to be one).
Use the :version command in vim to see the following information:
Default configuration files and so on... If you want to use it, you have to create a new ~/.vimrc in the home directory and configure it slowly by yourself
I guess you may be using vim under win. _vimrc in $VIM (that is, your /vim) is the global configuration file, and _vimrc in $HOME is the current user's configuration file. As for /vim/vimfiles, you don’t need vimrc (usually there doesn’t seem to be one).
Use the
:version
command in vim to see the following information::version Take your time
vim -u /path/to/your/vimrc
Default configuration files and so on... If you want to use it, you have to create a new ~/.vimrc in the home directory and configure it slowly by yourself