1- *options.txt* For Vim version 7.3. Last change: 2013 Jun 12
1+ *options.txt* For Vim version 7.3. Last change: 2013 Jun 29
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -482,39 +482,42 @@ to set options automatically for one or more files:
482482There are two forms of modelines. The first form:
483483 [text]{white} {vi:| vim: | ex:}[white]{options}
484484
485- [text] any text or empty
486- {white} at least one blank character (<Space> or <Tab> )
487- {vi:| vim: | ex:} the string "vi:", "vim:" or "ex:"
488- [white] optional white space
489- {options} a list of option settings, separated with white space or ':',
490- where each part between ':' is the argument for a ":set"
491- command (can be empty)
485+ [text] any text or empty
486+ {white} at least one blank character (<Space> or <Tab> )
487+ {vi:| vim: | ex:} the string "vi:", "vim:" or "ex:"
488+ [white] optional white space
489+ {options} a list of option settings, separated with white space
490+ or ':', where each part between ':' is the argument
491+ for a ":set" command (can be empty)
492492
493- Example :
493+ Examples :
494494 vi:noai:sw=3 ts=6 ~
495+ vim: tw=77 ~
495496
496497The second form (this is compatible with some versions of Vi):
497498
498- [text]{white} {vi:| vim: | ex:}[white]se[t] {options} :[text]
499+ [text]{white} {vi:| vim: | Vim:| ex:}[white]se[t] {options} :[text]
499500
500- [text] any text or empty
501- {white} at least one blank character (<Space> or <Tab> )
502- {vi:| vim: | ex:} the string "vi:", "vim:" or "ex:"
503- [white] optional white space
504- se[t] the string "set " or "se " (note the space)
505- {options} a list of options, separated with white space, which is the
506- argument for a ":set" command
507- : a colon
508- [text] any text or empty
501+ [text] any text or empty
502+ {white} at least one blank character (<Space> or <Tab> )
503+ {vi:| vim: | Vim:|ex:} the string "vi:", "vim:", "Vim:" or "ex:"
504+ [white] optional white space
505+ se[t] the string "set " or "se " (note the space); When
506+ "Vim" is used it must be "set".
507+ {options} a list of options, separated with white space, which
508+ is the argument for a ":set" command
509+ : a colon
510+ [text] any text or empty
509511
510- Example :
512+ Examples :
511513 /* vim: set ai tw=75: */ ~
514+ /* Vim: set ai tw=75: */ ~
512515
513- The white space before {vi:| vim: | ex:} is required. This minimizes the chance
514- that a normal word like "lex:" is caught. There is one exception: "vi:" and
515- "vim:" can also be at the start of the line (for compatibility with version
516- 3.0). Using "ex:" at the start of the line will be ignored (this could be
517- short for "example:").
516+ The white space before {vi:| vim: | Vim:| ex:} is required. This minimizes the
517+ chance that a normal word like "lex:" is caught. There is one exception:
518+ "vi:" and " vim:" can also be at the start of the line (for compatibility with
519+ version 3.0). Using "ex:" at the start of the line will be ignored (this
520+ could be short for "example:").
518521
519522 *modeline-local*
520523The options are set like with ":setlocal": The new value only applies to the
@@ -530,7 +533,7 @@ in another window. But window-local options will be set.
530533
531534 *modeline-version*
532535If the modeline is only to be used for some versions of Vim, the version
533- number can be specified where "vim:" is used:
536+ number can be specified where "vim:" or "Vim:" is used:
534537 vim{vers} : version {vers} or later
535538 vim<{vers} : version before {vers}
536539 vim={vers} : version {vers}
@@ -6866,7 +6869,8 @@ A jump table for the options with a short description can be found at |Q_op|.
68666869 V N Virtual column number as -{num} . Not displayed if equal to 'c'.
68676870 p N Percentage through file in lines as in | CTRL-G | .
68686871 P S Percentage through file of displayed window. This is like the
6869- percentage described for 'ruler' . Always 3 in length.
6872+ percentage described for 'ruler' . Always 3 in length, unless
6873+ translated.
68706874 a S Argument list status as in default title. ({current} of {max} )
68716875 Empty if the argument file count is zero or one.
68726876 { NF Evaluate expression between '%{' and '}' and substitute result.
0 commit comments