📄 00000001.htm
字号:
:x! [<file>] | `:w![<file>]' and `:q'. <BR> :pre | Preserve the file - the buffer is saved as if <BR> | the system had just crashed; for emergencies, <BR> | when a `:w' command has failed and you don't <BR> | know how to save your work (see `vi -r'). <BR> :f <name> | Set the current filename to <name>. <BR> :cd [<dir>] | Set the working directory to <dir> <BR> | (default home directory). <BR> :cd! [<dir>] | Idem, but don't save changes. <BR> :e [+<cmd>] <file> | Edit another file without quitting vi - the <BR> | buffers are not changed (except the undo <BR> | buffer), so text can be copied from one file to <BR> | another this way. [Execute the `ex' command <BR> | <cmd> (default `$') when the new file has been <BR> | read into the buffer.] <cmd> must contain no <BR> | <sp> or <ht>. See `vi startup'. <BR> :e! [+<cmd>] <file> | Idem, without writing the current buffer. <BR> ^^ | Edit the alternate (normally the previous) file. <BR> :rew | Rewind the argument list, edit the first file. <BR> :rew! | Idem, without writing the current buffer. <BR> :n [+<cmd>] [<files>] | Edit next file or specify a new argument list. <BR> :n! [+<cmd>] [<files>] | Idem, without writing the current buffer. <BR> :args | Give the argument list, with the current file <BR> | between `[' and `]'. <BR> <BR> <BR> <BR> <BR> <BR> <BR> //////////////////// <BR> / display commands / <BR> //////////////////// <BR> <BR> ^G | Give file name, status, current line number <BR> | and relative position. <BR> ^L | Refresh the screen (sometimes `^P' or `^R'). <BR> ^R | Sometimes vi replaces a deleted line by a `@', <BR> | to be deleted by `^R' (see option `redraw'). <BR> [*]^E | Expose <*> more lines at bottom, cursor <BR> | stays put (if possible). <BR> [*]^Y | Expose <*> more lines at top, cursor <BR> | stays put (if possible). <BR> [*]^D | Scroll <*> lines downward <BR> | (default the number of the previous scroll; <BR> | initialization: half a page). <BR> [*]^U | Scroll <*> lines upward <BR> | (default the number of the previous scroll; <BR> | initialization: half a page). <BR> [*]^F | <*> pages forward. <BR> [*]^B | <*> pages backward (in older versions `^B' only <BR> | works without count). <BR> <BR> If in the next commands the field <wi> is present, the windowsize <BR> will change to <wi>. The window will always be displayed at the <BR> bottom of the screen. <BR> <BR> [*]z[wi]<cr> | Put line <*> at the top of the window <BR> | (default the current line). <BR> [*]z[wi]+ | Put line <*> at the top of the window <BR> | (default the first line of the next page). <BR> [*]z[wi]- | Put line <*> at the bottom of the window <BR> | (default the current line). <BR> [*]z[wi]^ | Put line <*> at the bottom of the window <BR> | (default the last line of the previous page). <BR> [*]z[wi]. | Put line <*> in the centre of the window <BR> | (default the current line). <BR> <BR> <BR> <BR> <BR> <BR> <BR> //////////////////////////// <BR> / mapping and abbreviation / <BR> //////////////////////////// <BR> <BR> When mapping take a look at the options `to' and `remap' (below). <BR> <BR> :map <string> <seq> | <string> is interpreted as <seq>, e.g. <BR> &n
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -