VIM: entry-level Basic Configuration

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 $VIMto determine the installation directory of Vim.
User vimrc file, stored in the user's home directory ~/.vimrc. You can use the command echo $HOMEto 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 ~/.vimrcin.

VIM Basic Configuration

By default, Vim editor is neither display line numbers, there is no syntax highlighting, smart indenting. For ease of use, basic Vim configuration options usually include:

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





 

Guess you like

Origin www.cnblogs.com/wbyixx/p/11004968.html