📄 quickref.cnx
字号:
写入文件 [file] (缺省: ".exrc"; 使用 ! 覆盖文件)|:mkvimrc| :mkv[imrc][!] [file] 如 ":mkexrc", 但缺省为 ".vimrc"|:mksession| :mks[ession][!] [file] 如 ":mkvimrc", 但同时存储当前文件, 窗口 等等信息, 使得用户将来可以继续当前对话.------------------------------------------------------------------------------*Q_ab* 缩写|:abbreviate| :ab[breviate] {lhs} {rhs} 为 {rhs} 加入缩写 {lhs}|:abbreviate| :ab[breviate] {lhs} 显示 {lhs} 以开始的缩写|:abbreviate| :ab[breviate] 显示所有缩写|:unabbreviate| :una[bbreviate] {lhs} 删除所有 {lhs} 代表的缩写|:noreabbrev| :norea[bbrev] [lhs] [rhs] 同 ":ab", but don't remap [rhs]|:iabbrev| :iab/:iunab/:inoreab 同 ":ab", 但仅适用于插入模式|:cabbrev| :cab/:cunab/:cnoreab 同 ":ab", 但仅适用于命令行模式|:abclear| :abc[lear] 清除所有缩写|:cabclear| :cabc[lear] 清除所有命令行模式缩写|:iabclear| :iabc[lear] 清除所有插入模式缩写------------------------------------------------------------------------------*Q_op* 选项|:set| :se[t] 显示所有被改动的选项|:set| :se[t] all 显示所有非 termcap 选项|:set| :se[t] termcap 显示所有 termcap 选项|:set| :se[t] {option} 置布尔选项 (开启), 显示字符穿或数字选项.|:set| :se[t] no{option} 复位布尔选项 (关闭).|:set| :se[t] inv{option} invert boolean option.|:set| :se[t] {option}={value} Set string/number option to {value}.|:set| :se[t] {option}+={value} append {value} to string option, add {value} to number option|:set| :se[t] {option}-={value} remove {value} to string option, subtract {value} from number option|:set| :se[t] {option}? 显示 {option} 的值|:set| :se[t] {option}& Reset {option} to its default value.|:setlocal| :setl[ocal] like ":set" but set the local value for options that have one|:setglobal| :setg[lobal] like ":set" but set the global value of a local option|:fix| :fix[del] Set value of 't_kD' according to value of 't_kb'.|:options| :opt[ions] Open a new window to view and set options, grouped by functionality, a one line explanation and links to the help.各选项的简短说明: *option-list*|'aleph'| |'al'| ASCII code of the letter Aleph (Hebrew)|'allowrevins'| |'ari'| allow CTRL-_ in Insert and Command-line mode|'altkeymap'| |'akm'| for default second language (Farsi/Hebrew)|'ambiwidth'| |'ambw'| what to do with Unicode chars of ambiguous width|'antialias'| |'anti'| Mac OS X: use smooth, antialiased fonts|'autochdir'| |'acd'| change directory to the file in the current window|'arabic'| |'arab'| for Arabic as a default second language|'arabicshape'| |'arshape'| do shaping for Arabic characters|'autoindent'| |'ai'| take indent for new line from previous line|'autoread'| |'ar'| autom. read file when changed outside of Vim|'autowrite'| |'aw'| automatically write file if changed|'autowriteall'| |'awa'| as 'autowrite', but works with more commands|'background'| |'bg'| "dark" or "light", used for highlight colors|'backspace'| |'bs'| how backspace works at start of line|'backup'| |'bk'| keep backup file after overwriting a file|'backupcopy'| |'bkc'| make backup as a copy, don't rename the file|'backupdir'| |'bdir'| list of directories for the backup file|'backupext'| |'bex'| extension used for the backup file|'backupskip'| |'bsk'| no backup for files that match these patterns|'balloondelay'| |'bdlay'| delay in mS before a balloon may pop up|'ballooneval'| |'beval'| switch on balloon evaluation|'binary'| |'bin'| read/write/edit file in binary mode|'bioskey'| |'biosk'| MS-DOS: use bios calls for input characters|'bomb'| prepend a Byte Order Mark to the file|'breakat'| |'brk'| characters that may cause a line break|'browsedir'| |'bsdir'| which directory to start browsing in|'bufhidden'| |'bh'| what to do when buffer is no longer in window|'buflisted'| |'bl'| whether the buffer shows up in the buffer list|'buftype'| |'bt'| special type of buffer|'casemap'| |'cmp'| specifies how case of letters is changed|'cdpath'| |'cd'| list of directories searched with ":cd"|'cedit'| key used to open the command-line window|'charconvert'| |'ccv'| expression for character encoding conversion|'cindent'| |'cin'| do C program indenting|'cinkeys'| |'cink'| keys that trigger indent when 'cindent' is set|'cinoptions'| |'cino'| how to do indenting when 'cindent' is set|'cinwords'| |'cinw'| words where 'si' and 'cin' add an indent|'clipboard'| |'cb'| use the clipboard as the unnamed register|'cmdheight'| |'ch'| number of lines to use for the command-line|'cmdwinheight'| |'cwh'| height of the command-line window|'columns'| |'co'| number of columns in the display|'comments'| |'com'| patterns that can start a comment line|'commentstring'| |'cms'| template for comments; used for fold marker|'compatible'| |'cp'| behave Vi-compatible as much as possible|'complete'| |'cpt'| specify how Insert mode completion works|'confirm'| |'cf'| ask what to do about unsaved/read-only files|'conskey'| |'consk'| get keys directly from console (MS-DOS only)|'copyindent'| |'ci'| make 'autoindent' use existing indent structure|'cpoptions'| |'cpo'| flags for Vi-compatible behavior|'cscopepathcomp'| |'cspc'| how many components of the path to show|'cscopeprg'| |'csprg'| command to execute cscope|'cscopequickfix'| |'csqf'| use quickfix window for cscope results|'cscopetag'| |'cst'| use cscope for tag commands|'cscopetagorder'| |'csto'| determines ":cstag" search order|'cscopeverbose'| |'csverb'| give messages when adding a cscope database|'debug'| set to "msg" to see all error messages|'define'| |'def'| pattern to be used to find a macro definition|'delcombine'| |'deco'| delete combining characters on their own|'dictionary'| |'dict'| list of file names used for keyword completion|'diff'| use diff mode for the current window|'diffexpr'| |'dex'| expression used to obtain a diff file|'diffopt'| |'dip'| options for using diff mode|'digraph'| |'dg'| enable the entering of digraphs in Insert mode|'directory'| |'dir'| list of directory names for the swap file|'display'| |'dy'| list of flags for how to display text|'eadirection'| |'ead'| in which direction 'equalalways' works|'edcompatible'| |'ed'| toggle flags of ":substitute" command|'encoding'| |'enc'| encoding used internally|'endofline'| |'eol'| write <EOL> for last line in file|'equalalways'| |'ea'| windows are automatically made the same size|'equalprg'| |'ep'| external program to use for "=" command|'errorbells'| |'eb'| ring the bell for error messages|'errorfile'| |'ef'| name of the errorfile for the QuickFix mode|'errorformat'| |'efm'| description of the lines in the error file|'esckeys'| |'ek'| recognize function keys in Insert mode|'eventignore'| |'ei'| autocommand events that are ignored|'expandtab'| |'et'| use spaces when <Tab> is inserted|'exrc'| |'ex'| read .vimrc and .exrc in the current directory|'fileencoding'| |'fenc'| file encoding for multi-byte text|'fileencodings'| |'fencs'| automatically detected character encodings|'fileformat'| |'ff'| file format used for file I/O|'fileformats'| |'ffs'| automatically detected values for 'fileformat'|'filetype'| |'ft'| type of file, used for autocommands|'fillchars'| |'fcs'| characters to use for displaying special items|'fkmap'| |'fk'| Farsi keyboard mapping|'foldclose'| |'fcl'| close a fold when the cursor leaves it|'foldcolumn'| |'fdc'| width of the column used to indicate folds|'foldenable'| |'fen'| set to display all folds open|'foldexpr'| |'fde'| expression used when 'foldmethod' is "expr"|'foldignore'| |'fdi'| ignore lines when 'foldmethod' is "indent"|'foldlevel'| |'fdl'| close folds with a level higher than this|'foldlevelstart'| |'fdls'| 'foldlevel' when starting to edit a file|'foldmarker'| |'fmr'| markers used when 'foldmethod' is "marker"|'foldmethod'| |'fdm'| folding type|'foldminlines'| |'fml'| minimum number of lines for a fold to be closed|'foldnestmax'| |'fdn'| maximum fold depth|'foldopen'| |'fdo'| for which commands a fold will be opened|'foldtext'| |'fdt'| expression used to display for a closed fold|'formatoptions'| |'fo'| how automatic formatting is to be done|'formatprg'| |'fp'| name of external program used with "gq" command|'gdefault'| |'gd'| the ":substitute" flag 'g' is default on|'grepformat'| |'gfm'| format of 'grepprg' output|'grepprg'| |'gp'| program to use for ":grep"|'guicursor'| |'gcr'| GUI: settings for cursor shape and blinking|'guifont'| |'gfn'| GUI: Name(s) of font(s) to be used|'guifontset'| |'gfs'| GUI: Names of multi-byte fonts to be used|'guifontwide'| |'gfw'| list of font names for double-wide characters|'guiheadroom'| |'ghr'| GUI: pixels room for window decorations|'guioptions'| |'go'| GUI: Which components and options are used|'guipty'| GUI: try to use a pseudo-tty for ":!" commands|'helpfile'| |'hf'| full path name of the main help file|'helpheight'| |'hh'| minimum height of a new help window|'helplang'| |'hlg'| preferred help languages|'hidden'| |'hid'| don't unload buffer when it is |abandon|ed|'highlight'| |'hl'| sets highlighting mode for various occasions|'hlsearch'| |'hls'| highlight matches with last search pattern|'history'| |'hi'| number of command-lines that are remembered|'hkmap'| |'hk'| Hebrew keyboard mapping|'hkmapp'| |'hkp'| phonetic Hebrew keyboard mapping|'icon'| let Vim set the text of the window icon|'iconstring'| string to use for the Vim icon text|'ignorecase'| |'ic'| ignore case in search patterns|'imactivatekey'| |'imak'| key that activates the X input method|'imcmdline'| |'imc'| use IM when starting to edit a command line|'imdisable'| |'imd'| do not use the IM in any mode|'iminsert'| |'imi'| use :lmap or IM in Insert mode|'imsearch'| |'ims'| use :lmap or IM when typing a search pattern|'include'| |'inc'| pattern to be used to find an include file|'includeexpr'| |'inex'| expression used to process an include line|'incsearch'| |'is'| highlight match while typing search pattern|'indentexpr'| |'inde'| expression used to obtain the indent of a line|'indentkeys'| |'indk'| keys that trigger indenting with 'indentexpr'|'infercase'| |'inf'| adjust case of match for keyword completion|'insertmode'| |'im'| start the edit of a file in Insert mode|'isfname'| |'isf'| characters included in file names and pathnames|'isident'| |'isi'| characters included in identifiers|'iskeyword'| |'isk'| characters included in keywords|'isprint'| |'isp'| printable characters|'joinspaces'| |'js'| two spaces after a period with a join command|'key'| encryption key|'keymap'| |'kmp'| name of a keyboard mapping|'keymodel'| |'km'| enable starting/stopping selection with keys|'keywordprg'| |'kp'| program to use for the "K" command|'langmap'| |'lmap'| alphabetic characters for other language mode|'langmenu'| |'lm'| language to be used for the menus|'laststatus'| |'ls'| tells when last window has status lines|'lazyredraw'| |'lz'| don't redraw while executing macros|'linebreak'| |'lbr'| wrap long lines at a blank|'lines'| number of lines in the display|'linespace'| |'lsp'| number of pixel lines to use between characters|'lisp'| automatic indenting for Lisp|'lispwords'| |'lw'| words that change how lisp indenting works|'list'| show <Tab> and <EOL>|'listchars'| |'lcs'| characters for displaying in list mode|'loadplugins'| |'lpl'| load plugin scripts when starting up|'magic'| changes special characters in search patterns|'makeef'| |'mef'| name of the errorfile for ":make"|'makeprg'| |'mp'| program to use for the ":make" command|'matchpairs'| |'mps'| pairs of characters that "%" can match|'matchtime'| |'mat'| tenths of a second to show matching paren|'maxfuncdepth'| |'mfd'| maximum recursive depth for user functions|'maxmapdepth'| |'mmd'| maximum recursive depth for mapping|'maxmem'| |'mm'| maximum memory (in Kbyte) used for one buffer|'maxmemtot'| |'mmt'| maximum memory (in Kbyte) used for all buffers|'menuitems'| |'mis'| maximum number of items in a menu|'modeline'| |'ml'| recognize modelines at start or end of file|'modelines'| |'mls'| number of lines checked for modelines|'modifiable'| |'ma'| changes to the text are not possible|'modified'| |'mod'| buffer has been modified|'more'| pause listings when the whole screen is filled|'mouse'| enable the use of mouse clicks|'mousefocus'| |'mousef'| keyboard focus follows the mouse|'mousehide'| |'mh'| hide mouse pointer while typing|'mousemodel'| |'mousem'| changes meaning of mouse buttons|'mouseshape'| |'mouses'| shape of the mouse pointer in different modes|'mousetime'| |'mouset'| max time between mouse double-click|'nrformats'| |'nf'| number formats recognized for CTRL-A command|'number'| |'nu'| print the line number in front of each line|'osfiletype'| |'oft'| operating system-specific filetype information|'paragraphs'| |'para'| nroff macros that separate paragraphs|'paste'| allow pasting text|'pastetoggle'| |'pt'| key code that causes 'paste' to toggle|'patchexpr'| |'pex'| expression used to patch a file|'patchmode'| |'pm'| keep the oldest version of a file|'path'| |'pa'| list of directories searched with "gf" et.al.|'preserveindent'| |'pi'| preserve the indent structure when reindenting|'previewheight'| |'pvh'| height of the preview window|'previewwindow'| |'pvw'| identifies the preview window|'printdevice'| |'pdev'| name of the printer to be used for :hardcopy|'printencoding'| |'penc'| encoding to be used for printing|'printexpr'| |'pexpr'| expression used to print PostScript for :hardcopy|'printfont'| |'pfn'| name of the font to be used for :hardcopy|'printheader'| |'pheader'| format of the header used for :hardcopy|'printoptions'| |'popt'| controls the format of :hardcopy output|'readonly'| |'ro'| disallow writing the buffer|'remap'| allow mappings to work recursively|'report'| threshold for reporting nr. of lines changed|'restorescreen'| |'rs'| Win32: restore screen when exiting|'revins'| |'ri'| inserting characters will work backwards|'rightleft'| |'rl'| window is right-to-left oriented|'rightleftcmd'| |'rlc'| commands for which editing works right-to-left|'ruler'| |'ru'| show cursor line and column in the status line
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -