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

📄 vi.chars

📁 早期freebsd实现
💻 CHARS
📖 第 1 页 / 共 2 页
字号:
.\" Copyright (c) 1980, 1993.\"	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..\".\"	@(#)vi.chars	8.1 (Berkeley) 6/8/93.\".bd S 3..pn 21.de iP.IP "\fB\\$1\fR" \\$2...SHAppendix: character functions.PPThis appendix gives the uses the editor makes of each character.  Thecharacters are presented in their order in the \s-2ASCII\s0 characterset:  Control characters come first, then most special characters, thenthe digits, upper and then lower case characters..PPFor each character we tell a meaning it has as a command and any meaning ithas during an insert.If it has only meaning as a command, then only this is discussed.Section numbers in parentheses indicate where the character is discussed;a `f' after the section number means that the character is mentionedin a footnote..iP "^@" 15Not a command character.If typed as the first character of an insertion it is replaced with thelast text inserted, and the insert terminates.  Only 128 characters aresaved from the last insert; if more characters were inserted the mechanismis not available.A \fB^@\fR cannot be part of the file due to the editor implementation(7.5f)..iP "^A" 15Unused..iP "^B" 15Backward window.A count specifies repetition.Two lines of continuity are kept if possible (2.1, 6.1, 7.2)..iP "^C" 15Unused..iP "^D" 15As a command, scrolls down a half-window of text.  A count gives the number of (logical) lines to scroll, and is rememberedfor future \fB^D\fR and \fB^U\fR commands (2.1, 7.2).During an insert, backtabs over \fIautoindent\fR white space at the beginningof a line (6.6, 7.5); this white space cannot be backspaced over..iP "^E" 15Exposes one more line below the current screen in the file, leavingthe cursor where it is if possible.(Version 3 only.).iP "^F" 15Forward window.  A count specifies repetition.Two lines of continuity are kept if possible (2.1, 6.1, 7.2)..iP "^G" 15Equivalent to \fB:f\fR\s-2CR\s0, printing the current file, whetherit has been modified, the current line number and the number of linesin the file, and the percentage of the way through the file that youare..iP "^H (\fR\s-2BS\s0\fP)" 15Same as.B "left arrow" .(See.B h ).During an insert, eliminates the last input character, backing over itbut not erasing it; it remains so you can see what you typed if youwish to type something only slightly different (3.1, 7.5)..iP "^I\ (\fR\s-2TAB\s0\fP)" 15Not a command character.When inserted it prints as somenumber of spaces.When the cursor is at a tab character it rests at the last of the spaceswhich represent the tab.The spacing of tabstops is controlled by the \fItabstop\fR option (4.1, 6.6)..iP "^J\ (\fR\s-2LF\s0\fP)" 15Same as.B "down arrow"(see.B j )..iP "^K" 15Unused..iP "^L" 15The \s-2ASCII\s0 formfeed character, this causes the screen to be clearedand redrawn.  This is useful after a transmission error, if characterstyped by a program other than the editor scramble the screen,or after output is stopped by an interrupt (5.4, 7.2f)..iP "^M\ (\fR\s-2CR\s0\fP)" 15A carriage return advances to the next line, at the first non-white positionin the line.  Given a count, it advances that many lines (2.3).During an insert, a \s-2CR\s0 causes the insert to continue ontoanother line (3.1)..iP "^N" 15Same as.B "down arrow"(see.B j )..iP "^O" 15Unused..iP "^P" 15Same as.B "up arrow"(see.B k )..iP "^Q" 15Not a command character.In input mode,.B ^Qquotes the next character, the same as.B ^V ,except that some teletype drivers will eat the.B ^Qso that the editor never sees it..iP "^R" 15Redraws the current screen, eliminating logical lines not correspondingto physical lines (lines with only a single @ character on them).On hardcopy terminals in \fIopen\fR mode, retypes the current line(5.4, 7.2, 7.8)..iP "^S" 15Unused.  Some teletype drivers use.B ^Sto suspend output until.B ^Q is pressed..iP "^T" 15Not a command character.During an insert, with \fIautoindent\fR set and at the beginning of theline, inserts \fIshiftwidth\fR white space..iP "^U" 15Scrolls the screen up, inverting \fB^D\fR which scrolls down.  Counts work asthey do for \fB^D\fR, and the previous scroll amount is common to both.On a dumb terminal, \fB^U\fR will often necessitate clearing and redrawingthe screen further back in the file (2.1, 7.2)..iP "^V" 15Not a command character.In input mode, quotes the next character so that it is possibleto insert non-printing and special characters into the file (4.2, 7.5)..iP "^W" 15Not a command character.During an insert, backs up as \fBb\fR would in command mode; the deletedcharacters remain on the display (see \fB^H\fR) (7.5)..iP "^X" 15Unused..iP "^Y" 15Exposes one more line above the current screen, leaving the cursor whereit is if possible.  (No mnemonic value for this key; however, it is nextto \fB^U\fR which scrolls up a bunch.)(Version 3 only.).iP "^Z" 15If supported by the Unix system,stops the editor, exiting to the top level shell.Same as \fB:stop\fP\s-2CR\s0.Otherwise, unused..iP "^[\ (\fR\s-2ESC\s0\fP)" 15Cancels a partially formed command, such as a \fBz\fR when no followingcharacter has yet been given; terminates inputs on the last line (readby commands such as \fB: /\fR and \fB?\fR); ends insertions of new textinto the buffer.If an \s-2ESC\s0 is given when quiescent in command state, the editorrings the bell or flashes the screen.  You can thus hit \s-2ESC\s0 ifyou don't know what is happening till the editor rings the bell.If you don't know if you are in insert mode you can type \s-2ESC\s0\fBa\fR,and then material to be input; the material will be inserted correctlywhether or not you were in insert mode when you started (1.5, 3.1, 7.5)..iP "^\e" 15Unused..iP "^]" 15Searches for the word which is after the cursor as a tag.  Equivalentto typing \fB:ta\fR, this word, and then a \s-2CR\s0.Mnemonically, this command is ``go right to'' (7.3)..iP "^\(ua" 15Equivalent to \fB:e #\fR\s-2CR\s0, returning to the previous positionin the last edited file, or editing a file which you specified if yougot a `No write since last change diagnostic' and do not want to haveto type the file name again (7.3).(You have to do a \fB:w\fR before \fB^\(ua\fRwill work in this case.  If you do not wish to write the file you shoulddo \fB:e!\ #\fR\s-2CR\s0 instead.).iP "^_" 15Unused.Reserved as the command character for theTektronix 4025 and 4027 terminal..iP "\fR\s-2SPACE\s0\fP" 15Same as.B "right arrow"(see.B l )..iP "!" 15An operator, which processes lines from the buffer with reformatting commands.Follow \fB!\fR with the object to be processed, and then the command nameterminated by \s-2CR\s0.  Doubling \fB!\fR and preceding it by a countcauses count lines to be filtered; otherwise the countis passed on to the object after the \fB!\fR.  Thus \fB2!}\fR\fIfmt\fR\s-2CR\s0reformats the next two paragraphs by running them through the program\fIfmt\fR.  If you are working on \s-2LISP\s0,the command \fB!%\fR\fIgrind\fR\s-2CR\s0,*.FS*Both.I fmtand.I grindare Berkeley programs and may not be present at all installations..FEgiven at the beginning of afunction, will run the text of the function through the \s-2LISP\s0 grinder(6.7, 7.3).To read a file or the output of a command into the buffer use \fB:r\fR (7.3).To simply execute a command use \fB:!\fR (7.3)..tr ".iP  15Precedes a named buffer specification.  There are named buffers \fB1\-9\fRused for saving deleted text and named buffers \fBa\-z\fR into which you canplace text (4.3, 6.3).tr .iP "#" 15The macro character which, when followed by a number, will substitutefor a function key on terminals without function keys (6.9).In input mode, if this is your erase character, it will delete the last characteryou typed in input mode, and must be preceded with a \fB\e\fR to insertit, since it normally backs over the last input character you gave..iP "$" 15Moves to the end of the current line.  If you \fB:se list\fR\s-2CR\s0,then the end of each line will be shown by printing a \fB$\fR after theend of the displayed text in the line.  Given a count, advances to thecount'th following end of line; thus \fB2$\fR advances to the end of thefollowing line..iP "%" 15Moves to the parenthesis or brace \fB{ }\fR which balances the parenthesisor brace at the current cursor position..iP "&" 15A synonym for \fB:&\fR\s-2CR\s0, by analogy with the.I ex.B &command..iP "\(aa" 15When followed by a \fB\(aa\fR returns to the previous context at thebeginning of a line.  The previous context is set whenever the currentline is moved in a non-relative way.When followed by a letter \fBa\fR\-\fBz\fR, returns to the line whichwas marked with this letter with a \fBm\fR command, at the first non-whitecharacter in the line. (2.2, 5.3).When used with an operator such as \fBd\fR, the operation takes placeover complete lines; if you use \fB\(ga\fR, the operation takes placefrom the exact marked place to the current cursor position within theline..iP "(" 15Retreats to the beginning of asentence, or to the beginning of a \s-2LISP\s0 s-expressionif the \fIlisp\fR option is set.A sentence ends at a \fB. !\fR or \fB?\fR which is followed by eitherthe end of a line or by two spaces.  Any number of closing \fB) ] "\fRand \fB\(aa\fR characters may appear after the \fB. !\fR or \fB?\fR,and before the spaces or end of line.  Sentences also beginat paragraph and section boundaries(see \fB{\fR and \fB[[\fR below).A count advances that many sentences (4.2, 6.8)..iP ")" 15Advances to the beginning of a sentence.A count repeats the effect.See \fB(\fR above for the definition of a sentence (4.2, 6.8)..iP "*" 15Unused..iP "+" 15Same as \s-2CR\s0 when used as a command..iP "," 15Reverse of the last \fBf F t\fR or \fBT\fR command, looking the other wayin the current line.  Especially useful after hitting too many \fB;\fRcharacters.  A count repeats the search..iP "\-" 15Retreats to the previous line at the first non-white character.This is the inverse of \fB+\fR and \s-2RETURN\s0.If the line moved to is not on the screen, the screen is scrolled, orcleared and redrawn if this is not possible.If a large amount of scrolling would be required the screen is also clearedand redrawn, with the current line at the center (2.3)..iP "\&." 15Repeats the last command which changed the buffer.  Especially usefulwhen deleting words or lines; you can delete some words/lines and thenhit \fB.\fR to delete more and more words/lines.Given a count, it passes it on to the command being repeated.  Thus aftera \fB2dw\fR, \fB3.\fR deletes three words (3.3, 6.3, 7.2, 7.4)..iP "/" 15Reads a string from the last line on the screen, and scans forward forthe next occurrence of this string.  The normal input editing sequences maybe used during the input on the bottom line; an returns to command statewithout ever searching.The search begins when you hit \s-2CR\s0 to terminate the pattern;the cursor moves to the beginning of the last line to indicate that the searchis in progress; the search may thenbe terminated with a \s-2DEL\s0 or \s-2RUB\s0, or by backspacing whenat the beginning of the bottom line, returning the cursor toits initial position.Searches normally wrap end-around to find a stringanywhere in the buffer..IPWhen used with an operator the enclosed region is normally affected.By mentioning an

⌨️ 快捷键说明

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