Setting set wrap in. vimrc is ineffective today. Later we found that gvim's configuration file is different from Vim's! No culture is terrible ......
First, the current user directory contains three files and folders.
. VIM: this is the place to save the plug-in colors related to VIM. Of course, this is a personal location.
. Vimrc Vim configuration file
. Gvimrc gvim configuration file
When Vim is started ~ /Search for the above files and folders,
If we need to customize the current user's vim usage habits, we will directly copy the corresponding Vim script to the. Vim folder. Then, add the corresponding configuration commands in vimrc and gvimrc. For example, to specify a colorscheme, You need to desert. the color configuration script is available in the colors of vim. configure colorscheme desert in vimrc.
There are two important aspects for the vim settings of the entire system.
1./etc/Vim/
2./usr/share/Vim/
The vimrc and gvimrc files affect the global settings. In general, the configuration file is in/etc, while the two folders of colors plugin and other scripts are placed under/usr/share/vim.
Here is a question: how can we make all vimrc have global information?
1. In ~ /. In vimrc, we can use
If filereadable ('/etc/Vim/vimc ')
Source/etc/Vim/vimrc
To import global vimrc.
2. Create a soft link to the ETC file under/usr/share/vim.
Ln-S/etc/Vim/vimrc/usr/share/Vim/vimrc
Ln-S/etc/Vim/gvimrc/usr/share/Vim/gvimrc
In this way, you can manage the vim configuration files and scripts.