To set options in Vim, it is easy to understand the annotations:
1 Set Laststatus=1 "2 always displays the last window's status line , 1 more than one window displays the last window's status line, 0 does not display the last window's status line
The Fulerformat is set to:
1 set Rulerformat =%75 (%2*%<%=\ character: \ \%b\ \|\ \ Modify: \ \%{strftime (\ "%h:%m\", getftime (expand (\ "%\")))}\ \|\ cursor : \ \%l\ rows \%c%v\ columns \ \| \ \%y\ \%m\ \%r\%p%%\ \|\ No.: \ \%n\%)
All of the options must start with%, the same as the% effect in the printf () function, and% is a placeholder, as shown in the following:
1The following is a description of the possible status line item. Where, "project"the second character of the string represents a type:2 N for numeric type3 S stands for string type4 F represents the flag bit described below5-not used6 7 Project meaning8 the file path of the F S buffer, preserving the input form or relative to the current directory. 9 the full path of the file for the F S buffer. Ten The file name (tail) of the file in the T-S buffer. OneM F Modify the flag bit, the text is "[+]"; If ' modifiable ' is off then it is "[-]". AM F Modify the flag bit, the text is ", +" or ",-". -R F read-only flag bit, text is "[RO]". -R F read-only flag bit, text is "RO". theH F Help buffer flag bit, text is "[Assist]". -H F Help buffer flag bit, text is ", HLP". -W F Preview window flag bit, text is "[Preview]". -W F Preview window flag bit, text is ", PRV". +The file type of the Y-F buffer, such as "[Vim]". See ' filetype '. -The file type of the Y-F buffer, such as ", VIM". See ' filetype '. +{add + at compile time onlyautocmd attribute only valid} AQ S "[Quickfix list]", "[Location list]"or empty. atK S "B:keymap_name" value or use: ' Keymap ' when lmap mapping: -"<keymap>". - N-N buffer number. - b N The value of the character where the cursor is located. -B N Ibid., in hexadecimal notation.
Others, specifically, can: H ' statusline ' Look at the Help file.
Settings for Vim Fulerformat