1.sudo apt install vim
2.vim -v View version
3.cd / root touch .vimrc (if there is no play, then) configuration is as follows direct assignment to go on ok
" Open syntax highlighting syntax on " Use color scheme colorscheme desert " Open file type detection function filetype on " Different file types using different indentation filetype indent on " Allows the use of plug- filetype plugin on filetype plugin indent on " Close vi mode the SET nocp " Shared Clipboard and Windows the SET Clipboard + = unnamed is " Cancel compatible VI, VI keyboard mode is not easy to use the SET nocompatible " Display line numbers, or Number The the SET the SET NU " History command to save the line number of the SET History = 100 " When a file is read automatically changing the external SET autoread " Cancel automatic backup and file swp produce the SET nobackup the SET nowb the SET noswapfile " Allowing the mouse to click to locate the SET Mouse = A " Allowed region to select SET Selection = exclusive SET selectmode = Mouse, Key " Highlighting cursor line the SET cursorline " Cancel the cursor blink the SET novisualbell " Always a status line SET laststatus = 2 " The status bar displays the command currently executing the SET showcmd " Ruler function, display the current cursor row and column numbers the SET ruler A " Performs command line height. 3 SET cmdheight = . 3 " Keep the formatting when pasting the SET Paste " Highlight matching brackets the SET showmatch " Ignore case when searching the SET ignorecase " Sentence highlighting searched the SET hlsearch " When searching, highlighting words character by character input (similar to firefox search) the SET incsearch " Succession to the former line indented, especially for multi-line comments the SET autoindent " Provide for the automatic C program indenting the SET smartindent " Indent the use of C-style the SET cindent " Tabs to. 4 SET TabStop = . 4 " Unified indented 4 the SET softtabstop = 4 the SET shiftwidth = 4 " Allow use the backspace key, Backspace = 2 or SET SET Backspace = EOL, Start, indent SET whichwrap + = <,> , H, L " Cancel wrap the SET nowrap " Start time does not display the prompt assistance to Somali children of the SET shortmess = ATI " Displayed in the window is split between a blank, easy to read SET fillchars = Vert: \, STL: \, stlnc: \ " Move the cursor to the holder 3 from the line buffer of the top and bottom, or SO = 3 SET SET scrolloff = 3 " Set the default decoding SET FENC = UTF- . 8 SET fencs = UTF- . 8 , USC-BOM, EUC- JP, GB18030, GBK, GB2312, cp936 " Set the font the SET guifont = courier_new: H11: CANSI the SET guifontwide = Times New Roman: h11: cGB2312 " Set coding SET ENC = UTF- . 8 SET fileencodings = UCS-BOM, UTF- . 8 , chinese SET langmenu = zh_CN.UTF- . 8 Language Message zh_CN.UTF - . 8 Source $ VIMRUNTIME / delmenu.vim source $VIMRUNTIME/menu.vim " Autocomplete filetype plugin indent ON the SET completeopt = longest, the MENU " Auto-fill all orders when using menu-match lists the SET wildmenu autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete autocmd FileType python set omnifunc=pythoncomplete#Complete autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags autocmd FileType java set omnifunc=javacomplete#Complet