Share of the .vimrc configuration file:
A " Display line numbers 2 SET Number . 3 . 4 " setting tab width . 5 SET TabStop = . 4 . 6 . 7 " is provided to automatically align the number of spaces . 8 SET shiftwidth = . 4 . 9 10 " press the backspace key to delete a four spaces . 11 SET softtabstop = . 4 12 is 13 is " set the encoding 14 sET encoding = UTF- . 8 15 16 " off mode vi consistency to avoid some of the previous versions and limitations Bug . 17 sET nocompatible 18 is . 19 "Let vim remember the last editing position 20 autocmd BufReadPost * 21 \ IF Line ( " '\" " )> 0 && Line ( " ' \ " " ) <= Line ( " $ " ) | 22 \ EXE " Normal G '\ " " | 23 \ endif 24- 25 " display tab key 26 the SET List 27 the SET listchars = tab:> -, TRAIL: - 28 29 " let vim show spaces end of the line 30Red = guibg WhitespaceEOL ctermbg highlight = Red 31 is match WhitespaceEOL / \ S \ + $ / 32 33 is " highlighted cursor line 34 is SET cursorline