📄 00000001.htm
字号:
these are given as `\&' and `\~' when nomagic is set. Each instance <BR> of `&' is replaced by the characters which the regular expression <BR> matched. The meta-character `~' stands, in the replacement <BR> pattern, for the defining text of the previous replacement <BR> pattern. Other meta-sequences possible in the replacement pattern <BR> are always introduced by the escaping character `\'. The sequence <BR> `\n' (with `n' in [1-9]) is replaced by the text matched by the <BR> n-th regular subexpression enclosed between `\(' and `\)'. The <BR> sequences `\u' and `\l' cause the immediately following character <BR> in the replacement to be converted to upper- or lower-case <BR> respectively if this character is a letter. The sequences `\U' and <BR> `\L' turn such conversion on, either until `\E' or `\e' is <BR> encountered, or until the end of the replacement pattern. <BR> <BR> <BR> ////////////////////////////// <BR> / remembering text (yanking) / <BR> ////////////////////////////// <BR> <BR> With yank commands you can put `"<a-zA-Z>' before the command, just as <BR> with delete commands. Otherwise you only copy to the undo buffer. <BR> The use of buffers <a-z> is THE way of copying text to another file; <BR> see the `:e <file>' command. <BR> <BR> * | y<move> | Yank from begin to endpoint of <*><move>. <BR> * | yy | <*> lines. <BR> * | Y | Idem (should be equivalent to `y$' though). <BR> - | m<a-z> | Mark the cursor position with a letter. <BR> <BR> //////////////////////////////////////// <BR> / commands while in append|change mode / <BR> //////////////////////////////////////// <BR> <BR> ^@ | If typed as the first character of the <BR> | insertion, it is replaced with the previous <BR> | text inserted (max. 128 chars), after which <BR> | the insertion is terminated. <BR> ^V | Deprive the next char of its special meaning <BR> | (e.g. <esc>). <BR> ^D | One shiftwidth to the left. <BR> 0^D | Remove all indentation on the current line <BR> | (there must be no other chars on the line). <BR> ^^D | Idem, but it is restored on the next line. <BR> ^T | One shiftwidth to the right <BR> ^H | <erase> | One char back. <BR> ^W | One word back. <BR> <kill> | Back to the begin of the change on the <BR> | current line. <BR> <intr> | Like <esc> (but you get a beep as well). <BR> <BR> <BR> <BR> <BR> ///////////////////////////////////////////////// <BR> / writing, editing other files, and quitting vi / <BR> ///////////////////////////////////////////////// <BR> <BR> In `:' `ex' commands `%' denotes the current file, `#' is a synonym for <BR> the alternate file (which normally is the previous file). <BR> Marks can be used for line numbers too: '<a-z>. <BR> In the `:w'|`:f'|`:cd'|`:e'|`:n' commands shell meta-characters can be <BR> used. <BR> <BR> :q | Quit vi, unless the buffer has been changed. <BR> :q! | Quit vi without writing. <BR> ^Z | Suspend vi. <BR> :w | Write the file. <BR> :w <name> | Write to the file <name>. <BR> :w >> <name> | Append the buffer to the file <name>. <BR> :w! <name> | Overwrite the file <name>. <BR> :x,y w <name> | Write lines x through y to the file <name>. <BR> :wq | Write the file and quit vi; some versions quit <BR> | even if the write was unsuccessful! <BR> | Use `ZZ' instead. <BR> ZZ | Write if the buffer has been changed, and <BR> | quit vi. If you have invoked vi with the `-r' <BR> | option, you'd better write the file <BR> | explicitly (`w' or `w!'), or quit the <BR> | editor explicitly (`q!') if you don't want <BR> | to overwrite the file - some versions of vi <BR> | don't handle the `recover' option very well. <BR> :x [<file>] | Idem [but write to <file>]. <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -