Because I use vim a lot, and I like this text editor very much, in order to cope with the situation of working on different machines, I need to record the configuration I am used to
set number "display line number set tabstop=4 "The width of the Tab key set syntax=on "Syntax highlighting set nocompatible "Not compatible with vi "Auto indent set autoindent set cindent "Uniform indent of 4 set softtabstop=4 set shiftwidth=4 set noexpandtab "Don't replace tabs with spaces set hlsearch "Highlight search characters set incsearch "Search characters verbatim set backspace=indent,eol,start "Solve the problem that the backspace key sometimes fails set showmatch "Highlight matching brackets set smartindent "provides automatic indentation for C programs set completeopt=longest,menu "Turn on file type detection, add this sentence to use smart completion.
These are some of the most basic configurations, and more plug-ins or mappings may be used in future work, and this file will be supplemented in the future.
There are many good references on git: Vimrc