The VIM compiler provides commands that can set their environment properties.
use under the terminalVimwhen editing, by default, the editing interface is not displayedLine number, syntax high brightness display, smart indentand other functions. In order to better inVim, you need to manually set up a profile:VIMRC.
First step into Vim's configuration file: Cd/etc/vim's configuration file in the ETC directory
The second step is to open the Vim configuration file Vimrc:vim VIMRC
The third step is to modify the configuration file: The method is simple, just add the appropriate command below.
If &term== "Xterm"
Set T_co=8
Set T_SB=^[[4%DM
Set T_SF=^[[3%DM
Let's take a look at some of the most common commands
Line number setting command
Set Nu (Nonu)
The command displays the line number (or the line number is not displayed)
Show Settings command
Set Hlsearch (Nohlsearch)
This command sets the search string anti-white display (or not anti-white display)
Grammar indent command
Set Autoindent
This command shows the automatic indentation of program syntax
Syntax highlighting command
Synax on (off)
This command implements the program syntax highlighting (or not highlighting)
This is a few more commonly used.
Note: Be aware that all commands need to be entered in the last line mode
Vim compiler set environment and line breaks, auto indent, etc.