Setting set wrap in. VIMRC is not effective today. It was later found that Gvim's configuration files were different from Vim's. No culture, it's terrible ...
First, there will be three files and folders under the current user directory
Vim this is the place to save vim-related plugin colors, of course it's a personal location.
. VIMRC Vim's configuration file
. GVIMRC Gvim Configuration file
When you start Vim, you will search for the above files and folders under ~/,
So if we need to customize the current user's vim usage, we'll just copy the vim script to the. Vim folder. Then add the corresponding configuration commands to the VIMRC and GVIMRC, such as assigning a colorscheme to the Desert.vim colors with the corresponding color configuration script, and then configuring VIMRC ColorScheme inside the. Desert Just fine.
There are two important parts to the VIM setting for the entire system.
1./etc/vim/
2./usr/share/vim/
The VIMRC and GVIMRC two files here will affect the global settings. Generally in/etc is the configuration file, and colors plugin two folders and other scripts are placed under/usr/share/vim.
Here's the question of how to make all the VIMRC have a global message.
1. We can use the ~/.VIMRC inside
If Filereadable ('/ETC/VIM/VIMC ')
Source/etc/vim/vimrc
To import the global VIMRC.
2. to establish the corresponding etc soft link under the/usr/share/vim
Ln-s/ETC/VIM/VIMRC/USR/SHARE/VIM/VIMRC
Ln-s/ETC/VIM/GVIMRC/USR/SHARE/VIM/GVIMRC
This will allow you to manage Vim's configuration files and scripts.