Environment: Kali Linux
Vim's configuration file is stored in the/etc/vim directory with the configuration file named VIMRC
Set nocompatible "Remove the relevant VI conformance mode to avoid bugs and limitations of previous versions"
Set nu! "Show line number"
Set GUIFONT=LUXI/MONO/9 "Setting font, font name and font size"
filetype on "Detecting file types"
Set history=1000 "Record the number of rows in history"
Set Background=dark "Background using black"
Syntax on "syntax high brightness display"
Set Autoindent "Vim uses automatic alignment, that is, applies the current line alignment format to the next line (auto indent)"
Set Cindent "(Cindent is automatically indented for C language syntax)"
Set Smartindent "according to the above alignment format, intelligent selection alignment, for similar C language writing useful"
Set tabstop=4 "Setting tab key to 4 spaces"
Set shiftwidth = 4 "Sets the use of 4 spaces when interlaced between rows"
Set ai! "Set auto Indent"
Set Showmatch "Sets the matching mode, similar to the appropriate closing parenthesis when an opening parenthesis is entered"
Set guioptions-=t "Removal of vim in GUI version toolbar"
Set VB t_vb= "When Vim is being edited, if the command is wrong, an alert is issued, and the setting removes the alert"
Set ruler "in the bottom right corner of the editing process, display the status line at the cursor position"
Set Nohls "By default, look for a match is a high brightness display, this setting turns off highlighting"
Vim upgrade to the latest version: sudo apt-get install vim
Configuration file parameters for vim