⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 set.opt.roff

📁 早期freebsd实现
💻 ROFF
📖 第 1 页 / 共 2 页
字号:
.\" Copyright (c) 1994.\"     The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)set.opt.roff	8.8 (Berkeley) 4/9/94.\"There are a large number of options that may be set (or unset) tochange the editor's behavior.This section describes the options, their abbreviations and theirdefault values..PpIn each entry below, the first part of the tag line is the full nameof the option, followed by any equivalent abbreviations.#ifdef REFERENCE(Regardless of the abbreviations, it is only necessary to use theminimum number of characters necessary to distinguish an abbreviationfrom all other commands for it to be accepted, in.Nm nex/nvi .Historically, only the full name and the official abbreviationswere accepted by.Nm ex/vi .Using full names in your startup files and environmental variables willprobably make them more portable.)#endifThe part in square brackets is the default value of the option.Most of the options are boolean, i.e. they are either on or off,and do not have an associated value..PpOptions apply to both.Nm \&exand.Nm \&vimodes, unless otherwise specified.#ifdef REFERENCE.PpFor information on modifying the options or to display the options andtheir current values, see the.Dq setcommand in the Ex Commands section.#endif.Bl -tag -width "XXXX" -compact.It Li "altwerase [off]".Nm \&Vionly.#ifdef MANUALSelect an alternate word erase algorithm.#endif#ifdef REFERENCEChange how.Nm \&vidoes word erase during text input.When this option is set, text is broken up into three classes:alphabetic, numeric and underscore characters, other non-blankcharacters, and blank characters.Changing from one class to another marks the end of a word.In addition, the class of the first character erased is ignored(which is exactly what you want when erasing pathname components).#endif.It Li "autoindent, ai [off]"#ifdef MANUALAutomatically indent new lines.#endif#ifdef REFERENCEIf this option is set, whenever you create a new line (using the.Nm \&vi.Sy \&A ,.Sy \&a ,.Sy \&C ,.Sy \&c ,.Sy \&I ,.Sy \&i ,.Sy \&O ,.Sy \&o ,.Sy \&R ,.Sy \&r ,.Sy \&S ,and.Sy \&scommands, or the.Nm \&ex.Sy append ,.Sy change ,and.Sy insertcommands) the new line is automatically indented to align the cursor withthe first non-blank character of the line from which you created it.Lines are indented using tab characters to the extent possible (based onthe value of the.Sy tabstopoption) and then using space characters as necessary.For commands inserting text into the middle of a line, any blank charactersto the right of the cursor are discarded, and the first non-blank characterto the right of the cursor is aligned as described above..PpThe indent characters are themselves somewhat special.If you do not enter more characters on the new line before moving moving toanother line, or entering <escape>, the indent character will be deleted andthe line will be empty.For example, if you enter <carriage-return> twice in succession, the linecreated by the first <carriage-return> will not have any characters in it,regardless of the indentation of the previous or subsequent line..PpIndent characters also require that you enter additional erase charactersto delete them.For example, if you have an indented line, containing only blanks, the first<word-erase> character you enter will erase up to end of the indent characters,and the second will erase back to the beginning of the line.(Historically, only the.Sy \&^Dkey would erase the indent characters.Both the.Sy \&^Dkey and the usual erase keys work in.Nm nvi .)In addition, if the cursor is positioned at the end of the indentcharacters, the keys.Dq 0^Dwill erase all of the indent characters for the current line,resetting the indentation level to 0.Similarly, the keys.Dq ^^D(i.e. a carat followed by a <control-D>) will erase all of the indentcharacters for the current line, leaving the indentation level forfuture created lines unaffected..PpFinally, if.Sy autoindentis set, the.Sy \&Sand.Sy \&cccommands change from the first non-blank of the line to the end of theline, instead of from the beginning of the line to the end of the line.#endif.It Li "autoprint, ap [off]".Nm \&Exonly.#ifdef MANUALDisplay the current line automatically..#endif#ifdef REFERENCE.Nm \&Exonly.Cause the current line to be automatically displayed after the.Nm \&excommands.Sy \&< ,.Sy \&> ,.Sy copy ,.Sy delete ,.Sy join ,.Sy move ,.Sy put ,.Sy \&t ,.Sy Undo ,and.Sy undo .This automatic display is suppressed during.Sy globaland.Sy vglobalcommands, and for any command where optional flags are used to explicitlydisplay the line.#endif.It Li "autowrite, aw [off]"#ifdef MANUALWrite modified files automatically when changing files.#endif#ifdef REFERENCEIf this option is set, the.Nm \&vi.Sy \&!.Sy \&^^.Sy \&^]and.Sy \&^Zcommands, and the.Nm \&ex.Sy edit ,.Sy next ,.Sy rewind ,.Sy stop ,.Sy suspend ,.Sy tag ,.Sy tagpop ,and.Sy tagtopcommands automatically write the current file back to the current file nameif it has been modified since it was last written.If the write fails, the command fails and goes no further..PpAppending the optional force flag.Dq \&!to the.Nm \&excommands.Sy next ,.Sy rewind ,.Sy stop ,.Sy suspend ,.Sy tag ,.Sy tagpop ,and.Sy tagtopstops the automatic write from being attempted..Pp(Historically, the.Sy nextcommand ignored the optional force flag.)Note, the.Nm \&excommands.Sy edit ,.Sy quit ,.Sy shell ,and.Sy xitare.Em notaffected by the.Sy autowriteoption.#endif.It Li "beautify, bf [off]"#ifdef MANUALDiscard control characters.#endif#ifdef REFERENCEIf this option is set, all control characters that are not currently beingspecially interpreted, other than <tab>, <newline>, and <form-feed>, arediscarded from commands read in by.Nm \&exfrom command files, and from input text entered to.Nm \&vi(either into the file or to the colon command line).Text files read by.Nm ex/viare.Em notaffected by the.Sy beautifyoption.#endif.It Li "cdpath [environment variable CDPATH, or ``.'']"#ifdef MANUALThe directory paths used as path prefixes for the.Sy cdcommand.#endif#ifdef REFERENCEThis option is used to specify a colon separated list of directorieswhich are used as path prefixes for any relative path names used asarguments for the.Sy cdcommand.The value of this option defaults to the value of the environmentalvariable.Ev CDPATHif it is set, otherwise to the current directory.For compatibility with the POSIX 1003.2 shell, the.Sy cdcommand does.Em notcheck the current directory as a path prefix for relative path namesunless it is explicitly specified.It may be so specified by entering an empty string or a.Dq \&.into the.Ev CDPATH variable or the option value.#endif.It Li "columns, co [80]"#ifdef MANUALSet the number of columns in the screen.#endif#ifdef REFERENCEThe number of columns in the screen.Setting this option causes.Nm ex/vito set (or reset) the environmental variable.Ev COLUMNS .See the SCREEN SIZING section for more information.#endif.It Li "comment [off]".Nm \&Vionly.#ifdef MANUALSkip leading comments in files.#endif#ifdef REFERENCEIf the first non-empty line of the file begins with the string.Dq \&/\&* ,this option causes.Nm \&vito skip to the end of that C comment (probably a terribly boringlegal notice) before displaying the file.#endif.It Li "directory, dir [environment variable TMPDIR, or /tmp]"#ifdef MANUALThe directory where temporary files are created.#endif#ifdef REFERENCEThe directory where temporary files are created.The environmental variable.Ev TMPDIRis used as the default value if it exists, otherwise.Pa /tmpis used.#endif.It Li "edcompatible, ed [off]"Remember the values of the.Dq \&cand.Dq \&gsuffices to the.Sy substitutecommands, instead of initializing them as unset for each newcommand.#ifdef REFERENCESpecifying pattern and replacement strings to the.Sy substitutecommand unsets the.Dq \&cand.Dq \&gsuffices as well.#endif.It Li "errorbells, eb [off]".Nm \&Exonly.#ifdef MANUALAnnounce error messages with a bell.#endif#ifdef REFERENCE.Nm \&Exerror messages are normally presented in inverse video.If that is not possible for the terminal, setting this option causeserror messages to be announced by ringing the terminal bell.#endif.It Li "exrc, ex [off]"#ifdef MANUALNever read startup files in the local directory.#endif#ifdef REFERENCEIf this option is turned off in the system or $HOME startup files,the local startup files are never read (unless they are the sameas the system or $HOME startup files).Turning it on has no effect, i.e. the normal checks for local startupfiles are performed, regardless.See the STARTUP INFORMATION section for more information.#endif.It Li "extended [off]"#ifdef MANUALRegular expressions are extended (i.e..Xr egrep 1style) expressions.#endif#ifdef REFERENCEThis option causes all regular expressions to be treated as POSIX1003.2 extended regular expressions (which are similar to historic.Xr egrep 1style expressions).#endif.It Li "flash [on]"#ifdef MANUALFlash the screen instead of beeping the keyboard on error.#endif#ifdef REFERENCEThis option causes the screen to flash instead of beeping the keyboard,on error, if the terminal has the capability.#endif.It Li "hardtabs, ht [8]"#ifdef MANUALSet the spacing between hardware tab settings.#endif#ifdef REFERENCEThis option defines the spacing between hardware tab settings, i.e.the tab expansion done by the operating system and/or the terminalitself.As.Nm nex/nvinever writes tabs to the terminal, unlike historic versions of.Nm ex/vi ,this option does not currently have any affect.#endif.It Li "ignorecase, ic [off]"#ifdef MANUALIgnore case differences in regular expressions.#endif#ifdef REFERENCEThis option causes regular expressions, both in.Nm \&excommands and in searches,to be evaluated in a case-insensitive manner.#endif.It Li "keytime [6]"The 10th's of a second.Nm ex/viwaits for a subsequent key to complete a key mapping..It Li "leftright [off]".Nm \&Vionly.#ifdef MANUALDo left-right scrolling.#endif#ifdef REFERENCEThis option causes the screen to be scrolled left-right to viewlines longer than the screen, instead of the traditional.Nm \&viscreen interface which folds long lines at the right-hand marginof the terminal.#endif.It Li "lines, li [24]".Nm \&Vionly.#ifdef MANUALSet the number of lines in the screen.#endif#ifdef REFERENCEThe number of lines in the screen.Setting this option causes.Nm ex/vito set (or reset) the environmental variable.Ev LINES .See the Screen Sizing section for more information.#endif.It Li "lisp [off]".Nm \&Vionly.#ifdef MANUALModify various search commands and options to work with Lisp.#endif#ifdef REFERENCEThis option changes the behavior of the.Nm \&vi.Sy \&( ,.Sy \&) ,.Sy \&{ ,.Sy \&} ,.Sy \&[[and.Sy \&]]commands to match the Lisp language.Also, the.Sy autoindentoption's behavior is changed to be appropriate for Lisp.#endif.br.Em "This option is not yet implemented.".It Li "list [off]"#ifdef MANUALDisplay lines in an unambiguous fashion.#endif#ifdef REFERENCEThis option causes lines to be displayed in an unambiguous fashion.Specifically, tabs are displayed as control characters, i.e..Dq \&^I ,and the ends of lines are marked with a.Dq \&$character.#endif.It Li "magic [on]"#ifdef MANUALTreat certain characters specially in regular expressions.#endif#ifdef REFERENCEThis option is on by default.Turning the.Sy magicoption off causes all regular expression characters except for.Dq \&^and.Dq \&$ ,to be treated as ordinary characters.To re-enable characters individually, when the.Sy magicoption is off,precede them with an.Dq \&\e .See the REGULAR EXPRESSIONS AND REPLACEMENT STRINGS section formore information.#endif.It Li "matchtime [7]".Nm \&Vionly.The 10th's of a second.Nm ex/vipauses on the matching character when the.Sy showmatchoption is set..It Li "mesg [on]"#ifdef MANUALPermit messages from other users.#endif#ifdef REFERENCEThis option allows other users to contact you using the.Xr talk 1and.Xr write 1utilities, while you are editing..Nm Ex/vidoes not turn message on, i.e. if messages were turned off when the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -