Vim customized status bar

 

 My configuration program:

set laststatus = 0 "status line last total display window 2, a window 1 is more than the last line of a display state of the window, the display status line 0 is not a last window 
" set rulerformat =% 72 (% 2 *% < % = \% M% R% w \ \ code:% 04b \ \ standard: \% l \ OK \% c% V \ column \ \% {strftime (\ " % H:% M \", getftime (expand (\ "% \")) )} \ \% n \ \% Y \ \ ratio:% p %%%) "1920 * 1080 portrait configuration 
" set rulerformat =% 75 (% 2 *% <% = \ % M% R% w \ \ encoding:% 04b \ \ number:% n \ \ cursor: \% l \ OK \ \\\% c% V \ column \ \ revised \ \% {strftime (\ " % H :% M \ ", getftime ( expand (\"% \ ")))} \ \ type:% the Y \ \ ratio:% p %%%)" 1920 * 1080 landscape configuration 
"set statusline = \ type:% Y \ encoding: \% 05.3B \ cursor:% 02l,% 02c% 02V \ ratio:% p %% \ length:% L \ Review:% {strftime (\ "% H:% M \", getftime (expand (\ "% \")))} \ number:% 01n \ tag:% 01M% 01R \ ratio:% P \ file:% F. 
"hi User1 cterm = none ctermfg = 13 ctermbg = 0 "and the line is set statusline =% 1 corresponding to the other and so on, to achieve a transparent background vim

set rulerformat =% 85 (%) " shows the file name and file path 
set rulerformat + =% 12 (% 1 * \% <%. 10F \% *%)" shows the file name and file path 
"set rulerformat + =% 10 ( % =% 2 * \ type:% Y% M% R% H% W \% *%) " display the file types and file status 
set rulerformat + =% 10 (% 2 * \ type:% Y% M% R% H% W \ % *%) "shows the file type and the file status 
" set rulerformat + =% 10 ( % 3 * \ encoding:% {& ff} \% {& fenc},% B,% *%) " to display the file encoding type 
set rulerformat + =% 10 (% 3 * \ encoding:% {& fenc} \% B \% *%) " to display the file encoding type 
set rulerformat + =% 12 (% 4 * \% l line /% L \% c columns \% *%) "cursor row and column display 
set rulerformat + =% 3 (% 5 * \ ratio:% 2p %% \% *% )" ratio of the total text before the cursor text 
hi User1 cterm = none ctermfg = 10 ctermbg = 0 "And this line is set statusline =% 1 corresponding to the other and so on, to achieve a transparent background vim 
Hi = none ctermfg User2 cterm ctermbg = 0. 11 = 
Hi = User3 cterm ctermfg = none 0 = 12 is ctermbg  
Hi User4 cterm = none ctermfg = 13 ctermbg = 0
Hi User5 cterm = none ctermfg = 14 ctermbg = 0

  

SET laststatus = 0                                             "Total 2

Guess you like

Origin www.cnblogs.com/guochaoxxl/p/12112782.html