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

📄 vi.opt.roff

📁 早期freebsd实现
💻 ROFF
字号:
.\" Copyright (c) 1994.\"	The Regents of the University of California.  All rights reserved..\".\" %sccs.include.redist.roff%.\".\"	%W% (Berkeley) %G%.\"This section describes the commands available in the command modeof the.Nm \&vieditor.#ifdef REFERENCE.PpA.Dq wordin.Nm \&viis a sequence of letters, digits and underscores, delimited by othercharacters or the beginning or ending of a line.Many vi commands operate on this kind of.Dq word ,while some operate on.Dq wordswhich are delimited by white space characters and the beginning andend of line, only..Pp.Nm \&Vikeeps track of the currently.Dq most attractivecursor position.Each command below, that can change the current cursor position,specifies if the cursor is set to a specific location in the line,or if it is moved to the.Dq most attractivecursor position.The latter means that the cursor is moved to the cursor position thatis vertically as close as possible to the last cursor position.If the current line is shorter than than the cursor position.Nm \&viwould select, the cursor is positioned on the last character in the line.In all cases, if the line is empty, the cursor is positioned on the firstcolumn of the line.#endif.PpIn each entry below, the tag line is a usage statement for the commandcharacter.A leading word count, in square brackets, indicates that the commandtakes an optional.Dq Li count ,causing it to repeat the command's effect.Li counttimes..Bl -tag -width "XXXX" -compact.It Li "[count] ^A"Search forward for the.Li countoccurrence of the.Sy wordupon which the cursor is positioned.The.Dq Li \&^Acommand may be used as a motion argument.#ifdef REFERENCEThe cursor is positioned at the beginning of the.Sy wordif it is found.Affected by the.Sy extendedand.Sy wrapscanoptions.#endif.It Li "^B [count]"Scroll up.Li countscreens.#ifdef REFERENCEThe cursor is positioned at the first non-blank character of the new line.#endif.It Li "^C"Interrupt an operation (e.g. text input, read, write, search).#ifdef REFERENCEIf.Li \&^Cis used to interrupt inserting text into the file, it is as ifthe <escape> character was used; all text input up to theinterruption is resolved into the file.If it is used to interrupt entering an.Nm \&excommand, the command is aborted, the cursor returns to its previousposition, and.Nm \&viremains in command mode..It Li "^D [count]"Scroll down the number of lines specified by the.Sy scrolloption.The cursor is positioned at the first non-blank character of the new line.#ifdef REFERENCEIf.Li countis specified,.Li \&^Dscrolls down that many lines, and the value of the.Sy scrolloption is set to.Li count .Affected by the.Sy scrolloption.#endif.It Li "^E [count]"Scroll the screen down.Li countlines.#ifdef REFERENCEThe.Li \&^Ecommand differs from the other scrolling commands (with the exception of.Li \&^Y )in that it moves the screen, without moving the cursor, i.e. the cursorfollows the line.If the line the cursor is on scrolls off the bottom of the screen,the cursor is positioned at the most attractive column.#endif.It Li "^F [count]"Scroll down.Li countscreens.#ifdef REFERENCEThe cursor is positioned at the first non-blank character of the new line.#endif.It Li "^G"Display the file name and status.#ifdef REFERENCEAffected by the.Sy showdirtyoption.#endif.It Li "^H [count, motion]".de HHMove the cursor left.Li countcharacters.#ifdef REFERENCEThe beginning of the line is a sink for the movement, however,it is an error to move left from the first character of the line.#endif...It Li "^J [count, motion]".de JJMove the cursor down.Li countphysical lines.#ifdef REFERENCEThe cursor is positioned at the most attractive column.#endif...It Li "^L"Redraw the screen..It Li "^M".de MMMove the cursor down.Li countphysical lines.#ifdef REFERENCEThe cursor is positioned at the first non-blank character of the new line.#endif...It Li "^N".JJ.It Li "^P [count, motion]".de PPMove the cursor up.Li countlines.#ifdef REFERENCEThe cursor is positioned at the most attractive column..endif...It Li "^R"Redraw the screen..It Li "^U [count]"Scroll up the number of lines specified by the.Sy scrolloption.The cursor is positioned at the first non-blank character of the new line.#ifdef REFERENCEIf.Li countis specified,.Li \&^Uscrolls up that many lines, and the value of the.Sy scrolloption is set to.Li count .Affected by the.Sy scrolloption.#endif.It Li "^Y"Scroll the screen up.Li countlines.#ifdef REFERENCEThe.Li \&^Ycommand differs from the other scrolling commands (with the exception of.Li \&^E )in that it moves the screen, without moving the cursor, i.e. the cursorfollows the line.If the line the cursor is on scrolls off the top of the screen,the cursor is positioned at the most attractive column.#endif.It Li "^Z"Suspend the.Nm \&visession..It Li "^["This is the <escape> character as well as.Dq Li \&^[ .#ifdef MANUALExecute.Nm \&excommands and cancel partial commands.#endif#ifdef REFERENCEIf an.Nm \&excommand is being entered, the <escape> character causes the commandto be executed.If a partial command has been entered, e.g..Dq Li "[0-9]*" ,or.Dq Li "[0-9]*[!<>cdy]" ,the command is cancelled.Otherwise, it is considered and error.#endif.It Li "^]".It Li "^^".It Li "' ' [count, motion] ".de LLMove the cursor right.Li countcharacters.#ifdef REFERENCEThe end of the line is a sink for the movement, however,it is an error to move right from the last character of the line.It is not, however, an error to use the the <space> or.Dq Li lcommands as motion commands at the end of the line.#endif...It Li "! [count]".It Li "#".It Li "$".It Li "%".It Li "&".It Li "'".It Li "(".It Li ")".It Li "+".MM.It Li ",".It Li "-".It Li ".".It Li "/".It Li "0".It Li ":".It Li ";".It Li "<".It Li ">".It Li "?".It Li "@".It Li "A".It Li "B".It Li "C".It Li "D".It Li "E".It Li "F".It Li "G".It Li "H".It Li "I".It Li "J".It Li "L".It Li "M".It Li "N".It Li "O".It Li "P".It Li "Q".It Li "R".It Li "S".It Li "T".It Li "U".It Li "W".It Li "X".It Li "Y".It Li "ZZ".It Li "[[".It Li "]]".It Li "^".It Li "_".It Li "`<mark>".It Li "a".It Li "b".It Li "c".It Li "d".It Li "e".It Li "f".It Li "h".HH.It Li "i".It Li "j".JJ.It Li "k".PP.It Li "l".LL.It Li "m".It Li "n".It Li "o".It Li "p".It Li "r".It Li "s".It Li "t".It Li "u".It Li "w".It Li "x".It Li "y".It Li "z".It Li "{".It Li "|".It Li "}".It Li "~".ElThis section describes the commands available in the text input modeof the.Nm \&vieditor..Bl -tag -width "XXXX" -compact.It Li "^T"Move the cursor forwards the number of columns specified by the option.Sy shiftwidth .#ifdef REFERENCEFirst, <tab> characters are inserted, and then <spaces> if necessary.Historically,.Nm \&vidid not permit the.Li \&^Tcommand to be used unless the cursor was at the first column of a newline or it was preceded only by.Sy autoindentcharacters..Nm \&Nvipermits it to be used at any time during insert mode.#endif.It Li "^["This is the <escape> character as well as.Dq Li \&^[ ..It Li "^V".It Li "^W".It Li "^X".El

⌨️ 快捷键说明

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