VIM profile
All functions related to switching Vim editor can by .vimrc set file.
.vimrc configuration file segmentation system configuration and user configuration two kinds.
Vimrc system configuration files in the installation directory Vim, the default path /usr/share/vim/.vimrc
. You can use the command echo $VIM
to determine the installation directory of Vim.
User vimrc file, stored in the user's home directory ~/.vimrc
. You can use the command echo $HOME
to determine the user's home directory. Note : User profiles in preference to system configuration files, priority will be read in the current user's home directory Vim starts .vimrc file. So customized configuration associated with individual users are generally placed ~/.vimrc
in.
VIM Basic Configuration
Does not support Chinese garbled
Show Line Numbers
Highlight current line
Highlight current column
Enable Mouse
Display matching parentheses
Set the indent
Setting the paste mode
Display space and tab key
And the cursor position display the status bar
Open the file type detection
The configuration file changes to take effect