📄 set.opt.roff
字号:
editor was invoked, they will stay turned off.This option only permits you to disallow messages for the edit session.See the.Xr mesg 1utility for more information.#endif.It Li "modelines, modeline [off]"#ifdef MANUALRead the first and last few lines of each file for.Nm excommands.#endif#ifdef REFERENCEIf the.Sy modelinesoption is set,.Nm ex/vihas historically scanned the first and last five lines of each file asit is read for editing, looking for any.Nm \&excommands that have been placed in those lines.After the startup information has been processed, and before the userstarts editing the file, any commands embedded in the file are executed.Commands are recognized by the letters.Dq \&eor.Dq \&vfollowed by.Dq \&xor.Dq \&i ,at the beginning of a line or following a tab or space character,and followed by a.Dq \&: ,an.Nm \&excommand, and another.Dq \&: .This option is a security problem of immense proportions,and should not be used under any circumstances.#endif.br.Em "This option will never be implemented.".It Li "number, nu [off]"Precede each line displayed with its current line number..It Li "octal [off]"Display unknown characters as octal numbers, instead of the defaulthexadecimal..It Li "open [on]".Nm \&Exonly.If this option is not set, the.Sy openand.Sy visualcommands are disallowed..It Li "optimize, opt [on]".Nm \&Vionly.#ifdef MANUALOptimize text throughput to dumb terminals.#endif#ifdef REFERENCEThroughput of text is expedited by setting the terminal to no do automaticcarriage returns when printing more than one (logical) line of output,greatly speeding output on terminals without addressable cursors when textwith leading white space is printed.#endif.br.Em "This option is not yet implemented.".It Li "paragraphs, para [IPLPPPQPP LIpplpipbp]".Nm \&Vionly.Define additional paragraph boundaries for the.Sy \&{and.Sy \&}commands.#ifdef REFERENCEThe value of this option must be a character string consistingof zero or more character pairs..PpIn the text to be edited, the character string <newline>.<char-pair>,(where <char-pair> is one of the character pairs in the option's value)defines a paragraph boundary.For example, if the option were set to.Dq "LaA ##" ,then all of the following additional paragraph boundaries would berecognized:.Bd -literal -offset indent -compact<newline>.La<newline>.A<space><newline>.##.Ed#endif.It Li "prompt [on]".Nm \&Exonly.#ifdef MANUALDisplay a command prompt.#endif#ifdef REFERENCEThis option causes.Nm \&exto prompt for command input with a.Dq \&:character; when it's not set, no prompt is displayed.#endif.It Li "readonly, ro [off]"#ifdef MANUALMark the file as read-only.#endif#ifdef REFERENCEThis option causes a force flag to be required to attempt to writethe file back to the original file name.Setting this option is equivalent to using the.Fl Rcommand line option, or editing a file which lacks write permission.#endif.It Li "recdir [/var/tmp/vi.recover]"The directory where recovery files are stored..It Li "redraw, re [off]".Nm \&Vionly.#ifdef MANUALSimulate an intelligent terminal on a dumb one.#endif#ifdef REFERENCEThe editor simulates (using great amounts of output), an intelligentterminal on a dumb terminal (e.g. during insertions in visual modethe characters to the right of the cursor are refreshed as each inputcharacter is typed).#endif.br.Em "This option is not yet implemented.".It Li "remap [on]"#ifdef MANUALRemap keys until resolved.#endif#ifdef REFERENCEIf this option is set,it's possible to define macros in terms of other macros.Otherwise, each key is only remapped up to one time.For example, if.Dq \&Ais mapped to.Dq \&B ,and.Dq \&Bis mapped to.Dq \&C ,The keystroke.Dq \&Awill be mapped to.Dq \&Cif.Sy remapis set, and to.Dq \&Bif it is not set.#endif.It Li "remapmax [on]"#ifdef MANUALLimit the number of times a key may be remapped.#endif#ifdef REFERENCEIf this option is set, a key may only be remapped 50 times.If it is not set, a key may be remapped an infinite number of times,and the editor can be placed into infinite loops.#endif.It Li "report [5]"#ifdef MANUALSet the number of lines about which the editor reports changes.#endif#ifdef REFERENCESet the threshold of the number of lines that need to be changedbefore a message will be displayed to the user.The value is the largest value about which the editor is silent,i.e. by default, 6 lines must change before the user is notified.#endif.It Li "ruler [off]".Nm \&Vionly.Display a row/column ruler on the colon command line..It Li "scroll, scr [window / 2]"#ifdef MANUALSet the number of lines scrolled.#endif#ifdef REFERENCESet the number of lines scrolled by the.Nm \&vicommands.Sy \&^Dand.Sy \&^U ..PpHistorically, the.Nm ex.Sy zcommand, when specified without a count, used two times the size of thescroll value; the POSIX 1003.2 standard specified the window size, whichis a better choice.#endif.It Li "sections, sect [NHSHH HUnhsh]".Nm \&Vionly.Define additional section boundaries for the.Sy \&[[and.Sy \&]]commands.#ifdef REFERENCEThe.Sy sectionsoption should be set to a character string consisting of zero ormore character pairs.In the text to be edited, the character string <newline>.<char-pair>,(where <char-pair> is one of the character pairs in the option's value),defines a section boundary in the same manner that.Sy paragraphoption boundaries are defined.#endif.It Li "shell, sh [environment variable SHELL, or /bin/sh]"Select the shell used by the editor.#ifdef REFERENCEThe specified path is the pathname of the shell invoked by the.Nm \&vi.Sy \&!shell escape command and by the.Nm \&ex.Sy shellcommand.This program is also used to resolve any shell meta-characters in.Nm \&excommands.#endif.It Li "shiftwidth, sw [8]"Set the autoindent and shift command indentation width.#ifdef REFERENCEThis width is used by the.Sy autoindentoption and by the.Sy \&< ,.Sy \&> ,and.Sy shiftcommands.#endif.It Li "showdirty [off]".Nm \&Vionly.Display an asterisk on the colon command line if the file has been modified..It Li "showmatch, sm [off]".Nm \&Vionly.#ifdef MANUALNote matching.Dq \&{and.Dq \&(for.Dq \&}and.Dq \&)characters.#endif#ifdef REFERENCEThis option causes.Nm \&vi ,when a.Dq \&}or.Dq \&)is entered, to briefly move the cursor the matching.Dq \&{or.Dq \&( .See the.Sy matchtimeoption for more information.#endif.It Li "showmode [off]".Nm \&Vionly.#ifdef MANUALDisplay the current editor mode (command or input).#endif#ifdef REFERENCEThis option causes.Nm \&vito display the strings.Dq Commandor.Dq Inputon the colon command line, based on the current mode of the editor.#endif.It Li "sidescroll [16]".Nm \&Vionly.#ifdef MANUALSet the amount a left-right scroll will shift.#endif#ifdef REFERENCESets the number of columns that are shifted to the left or right,when.Nm \&viis doing left-right scrolling and the left or right margin iscrossed.See the.Sy leftrightoption for more information.#endif.It Li "slowopen, slow [off]"#ifdef MANUALDelay display updating during text input.#endif#ifdef REFERENCEThis option affects the display algorithm used by.Nm \&vi ,holding off display updating during input of new text to improvethroughput when the terminal in use is slow and unintelligent.#endif.br.Em "This option is not yet implemented.".It Li "sourceany [off]"#ifdef MANUALRead startup files not owned by the current user.#endif#ifdef REFERENCEIf this option is turned on,.Nm \&vihistorically read startup files that were owned by someone other thanthe editor user.See the STARTUP INFORMATION section for more information.This option is a security problem of immense proportions,and should not be used under any circumstances.#endif.br.Em "This option will never be implemented.".It Li "tabstop, ts [8]"This option sets tab widths for the editor display..It Li "taglength, tl [0]"#ifdef MANUALSet the number of significant characters in tag names.#endif#ifdef REFERENCEThis option sets the maximum number of characters that are consideredsignificant in a tag name.Setting the value to 0 makes all of the characters in the tag namesignificant.#endif.It Li "tags, tag [tags /var/db/libc.tags /sys/kern/tags]"#ifdef MANUALSet the list of tags files.#endif#ifdef REFERENCESets the list of tags files, in search order,which are used when the editor searches for a tag.#endif.It Li "term, ttytype, tty [environment variable TERM]"Set the terminal type.#ifdef REFERENCESetting this option causes.Nm ex/vito set (or reset) the environmental variable.Ev TERM .#endif.It Li "terse [off]"This option has historically made editor messages less verbose.It has no effect in this implementation.#ifdef REFERENCESee the.Sy verboseoption for more information.#endif.It Li "timeout, to [on]"#ifdef MANUALTime out on keys which may be mapped.#endif#ifdef REFERENCEIf this option is set,.Nm ex/viwaits for a specific period for a subsequent key to complete a keymapping (see the.Sy keytimeoption).If the option is not set, the editor waits until enough keys areentered to resolve the ambiguity, regardless of how long it takes.#endif.It Li "ttywerase [off]".Nm \&Vionly.#ifdef MANUALSelect an alternate erase algorithm.#endif#ifdef REFERENCEThis option changes how.Nm \&vidoes word erase during text input.If this option is set, text is broken up into two classes,blank characters and non-blank characters.Changing from one class to another marks the end of a word.#endif.It Li "verbose [off]".NM \&Vionly.#ifdef MANUALDisplay an error message for every error.#endif#ifdef REFERENCE.Nm \&Vihistorically bells the terminal for many obvious mistakes, e.g. tryingto move past the left-hand margin, or past the end of the file.If this option is set, an error message is displayed for all errors.#endif.It Li "w300 [no default]".Nm \&Vionly.Set the window size if the baud rate is less than 1200 baud.#ifdef REFERENCESee the.Sy windowoption for more information.#endif.It Li "w1200 [no default]".Nm \&Vionly.Set the window size if the baud rate is equal to 1200 baud.#ifdef REFERENCESee the.Sy windowoption for more information.#endif.It Li "w9600 [no default]".Nm \&Vionly.Set the window size if the baud rate is greater than 1200 baud.#ifdef REFERENCESee the.Sy windowoption for more information.#endif.It Li "warn [on]".Nm \&Exonly.This option causes a warning message to the terminal if the file hasbeen modified, since it was last written, before a.Sy \&!command..It Li "window, w, wi [environment variable LINES]"#ifdef MANUALSet the window size for the screen.#endif#ifdef REFERENCEThis option determines the default number of lines in a screenful,as written by the.Sy \&zcommand.It also determines the number of lines scrolled by the.Nm \&vicommands.Sy \&^Fand.Sy \&^B .The value of window can be unrelated to the real screen size,although it starts out as the number of lines on the screen (seethe SCREEN SIZING section).Setting the value of the.Sy windowoption is the same as using the.Fl wcommand line option..PpIf the value of.Sy window(as set by the.Sy window ,.Sy w300 ,.Sy w1200or.Sy w9600options) is smaller than the actual size of the screen, large screenmovements will result in displaying only that smaller number of lineson the screen.(Further movements in that same area will result in the screen beingfilled.)This can provide a performance improvement when viewing differentplaces in one or more files over a slow link.#endif.It Li "wrapmargin, wm [0]".Nm \&Vionly.#ifdef MANUALBreak lines automatically when they reach the right-hand margin.#endif#ifdef REFERENCEIf the value of wrapmargin is non-zero,.Nm \&viwill break lines, that are more than that number of characters long,into two lines at the blank character closest to the value.If wrapmargin is 0,or if there is no blank character upon which to break the line,the line will not be broken.#endif.It Li "wrapscan, ws [on]"#ifdef MANUALSet searches to wrap around the end or beginning of the file.#endif#ifdef REFERENCEThis option causes searches to wrap around the end or the beginningof the file, and back to the starting point.Otherwise, the end or beginning of the file terminates the search.#endif.It Li "writeany, wa [off]"#ifdef MANUALTurn off file-overwriting checks.#endif#ifdef REFERENCEIf this option is set, file-overwriting checks that would usually bemade before the.Sy writeand.Sy xitcommands, or before an automatic write (see the.Sy autowriteoption), are not made.This allows a write to any file, provided the file permissions allow it.#endif.El
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -