Syntax enablesyntax oncolorscheme desertset Nu! Set nowrapset nobackupset backspace = 2 set tabstop = 4 set encoding = utf-8set linebreakset rulerset guioptions + = bfiletype plugin indent onset guifont = monospace \ 12 "Run Vim in the terminal window, the terminal's font setting is higher than Vim's font setting. If gvim is used, it is a new GUI window, And the displayed font will match your expectations, gvim also reads the vimrc file. If your font is set to vimrc and there is no gvimrc file, gvim also correctly displays the set shiftwidth = 4 set autoindentset hlsearchset incsearchnmap <F2>: noh <CR> imap <F2> <ESC> <F2> A ": Set f2 to clear screen highlighting, the preceding two rows define source $ vimruntime/delmenu in insert and command modes respectively. vimsource $ vimruntime/menu. vim "automatically adds the author information let G: vimrc_author = 'hangyang' Let G: vimrc_email = '[email protected] 'let G: vimrc_homepage = 'HTTP: // response <F4>: authorinfodetect <CR>
Reference: (find the link to complete)
Add a configuration process and write it in MD.
Personal Vim configuration (. vimrc file sharing)