Settings for Vim Fulerformat

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.