The common configuration file of the VIM editor:/etc/vimrcvim/etc/vimrc sets the TAB key indent value. add settabstop = 4 setsofttabstop = 4 setshiftwidth = 4 at the end to set automatic indent, add: s at the end
Common configuration file of the VIM editor:/etc/vimrc
Vim/etc/vimrc
Set the TAB key indent value and add it at the end:
Set tabstop = 4
Set softtabstop = 4
Set shiftwidth = 4
Set automatic indent and add the following at the end:
Set autoindent
Set the automatic indentation of the C/C ++ language style, and add the following at the end:
Set cindent
Display the text line number on the left and add the following lines at the end:
Set nu
Set syntax highlighting and add at the end:
Syntax on
If the syntax is still not highlighted, add the following statement to the profile file in the/etc directory:
Export TERM = xterm-color