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

📄 optwin.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
📖 第 1 页 / 共 3 页
字号:
endifif has("syntax")  call append("$", "syntax\tname of syntax highlighting used")  call append("$", "\t(local to buffer)")  call OW_Option("syn")endifcall append("$", "highlight\twhich highlighting to use for various occasions")call OW_OptionL("hl", &hl)call append("$", "hlsearch\thighlight all matches for the current search pattern")call OW_BinOptionL("hls", &hls)call OW_Header("multiple windows")call append("$", "laststatus\t0, 1 or 2; when to use a status line for the last window")call append("$", "set ls=" . &ls)if has("statusline")  call append("$", "statusline\talternate format to be used for a status line")  call OW_OptionL("stl", &stl)endifcall append("$", "equalalways\tmake all windows the same size when adding/removing windows")call OW_BinOptionL("ea", &ea)call append("$", "winheight\tminimal number of lines used for the current window")call append("$", "set wh=" . &wh)call append("$", "winminheight\tminimal number of lines used for any window")call append("$", "set wmh=" . &wmh)call append("$", "helpheight\tinitial height of the help window")call append("$", "set hh=" . &hh)call append("$", "previewheight\tdefault height for the preview window")call append("$", "set pvh=" . &pvh)call append("$", "hidden\tdon't unload a buffer when no longer shown in a window")call OW_BinOptionL("hid", &hid)call append("$", "switchbuf\t\"useopen\" and/or \"split\"; which window to use when jumping")call append("$", "\tto a buffer")call OW_OptionL("swb", &swb)call append("$", "splitbelow\ta new window is put below the current one")call OW_BinOptionL("sb", &sb)if has("scrollbind")  call append("$", "scrollbind\tthis window scrolls together with other bound windows")  call append("$", "\t(local to window)")  call OW_BinOption("scb")  call append("$", "scrollopt\t\"ver\", \"hor\" and/or \"jump\"; list of options for 'scrollbind'")  call OW_OptionL("sbo", &sbo)endifcall OW_Header("terminal")call append("$", "term\tname of the used terminal")call OW_OptionL("term", &term)call append("$", "ttytype\talias for 'term'")call OW_OptionL("tty", &tty)call append("$", "ttybuiltin\tcheck built-in termcaps first")call OW_BinOptionL("tbi", &tbi)call append("$", "ttyfast\tterminal connection is fast")call OW_BinOptionL("tf", &tf)call append("$", "weirdinvert\tterminal that requires extra redrawing")call OW_BinOptionL("wiv", &wiv)call append("$", "esckeys\trecognize keys that start with <Esc> in Insert mode")call OW_BinOptionL("ek", &ek)call append("$", "scrolljump\tminimal number of lines to scroll at a time")call append("$", "set sj=" . &sj)call append("$", "ttyscroll\tmaximum number of lines to use scrolling instead of redrawing")call append("$", "set tsl=" . &tsl)if has("gui") || has("msdos") || has("win32")  call append("$", "guicursor\tspecifies what the cursor looks like in different modes")  call OW_OptionL("gcr", &gcr)endifif has("title")  let &title = old_title  call append("$", "title\tshow info in the window title")  call OW_BinOptionL("title", &title)  set notitle  call append("$", "titlelen\tpercentage of 'columns' used for the window title")  call append("$", "set titlelen=" . &titlelen)  call append("$", "titlestring\twhen not empty, string to be used for the window title")  call OW_OptionL("titlestring", &titlestring)  call append("$", "titleold\tstring to restore the title to when exiting Vim")  call OW_OptionL("titleold", &titleold)  let &icon = old_icon  call append("$", "icon\tset the text of the icon for this window")  call OW_BinOptionL("icon", &icon)  set noicon  call append("$", "iconstring\twhen not empty, text for the icon of this window")  call OW_OptionL("iconstring", &iconstring)endifif has("win32")  call append("$", "restorescreen\trestore the screen contents when exiting Vim")  call OW_BinOptionL("rs", &rs)endifcall OW_Header("using the mouse")call append("$", "mouse\tlist of flags for using the mouse")call OW_OptionL("mouse", &mouse)if has("gui")  call append("$", "mousefocus\tthe window with the mouse pointer becomes the current one")  call OW_BinOptionL("mousef", &mousef)  call append("$", "mousehide\thide the mouse pointer while typing")  call OW_BinOptionL("mh", &mh)endifcall append("$", "mousemodel\t\"extend\", \"popup\" or \"popup_setpos\"; what the right")call append("$", "\tmouse button is used for")call OW_OptionL("mousem", &mousem)call append("$", "mousetime\tmaximum time in msec to recognize a double-click")call append("$", "set mouset=" . &mouset)call append("$", "ttymouse\t\"xterm\", \"xterm2\", \"dec\" or \"netterm\"; type of mouse")call OW_OptionL("ttym", &ttym)if has("gui")  call OW_Header("GUI")  call append("$", "guifont\tlist of font names to be used in the GUI")  call OW_OptionL("gfn", &gfn)  call append("$", "guioptions\tlist of flags that specify how the GUI works")  call OW_OptionL("go", &go)  if has("gui_gtk")    call append("$", "toolbar\t\"icons\", \"text\" and/or \"tooltips\"; how to show the toolbar")    call OW_OptionL("tb", &tb)    call append("$", "guiheadroom\troom (in pixels) left above/below the window")    call append("$", "set ghr=" . &ghr)  endif  call append("$", "guipty\tuse a pseudo-tty for I/O to external commands")  call OW_BinOptionL("guipty", &guipty)  if has("xfontset")    call append("$", "guifontset\tpair of fonts to be used, for multibyte editing")    call OW_OptionL("gfs", &gfs)  endif  if has("browse")    call append("$", "browsedir\t\"last\", \"buffer\" or \"current\": which directory used for the file browser")    call OW_OptionL("bsdir", &bsdir)  endif  if has("winaltkeys")    call append("$", "winaltkeys\t\"no\", \"yes\" or \"menu\"; how to use the ALT key")    call OW_OptionL("wak", &wak)  endifendifcall OW_Header("messages and info")call append("$", "terse\tadd 's' flag in 'shortmess' (don't show search message)")call OW_BinOptionL("terse", &terse)call append("$", "shortmess\tlist of flags to make messages shorter")call OW_OptionL("shm", &shm)call append("$", "showcmd\tshow (partial) command keys in the status line")let &sc = old_sccall OW_BinOptionL("sc", &sc)set nosccall append("$", "showmode\tdisplay the current mode in the status line")call OW_BinOptionL("smd", &smd)call append("$", "ruler\tshow cursor position below each window")let &ru = old_rucall OW_BinOptionL("ru", &ru)set noruif has("statusline")  call append("$", "rulerformat\talternate format to be used for the ruler")  call OW_OptionL("ruf", &ruf)endifcall append("$", "report\tthreshold for reporting number of changed lines")call append("$", "set report=" . &report)call append("$", "verbose\tthe higher the more messages are given")call append("$", "set vbs=" . &vbs)call append("$", "more\tpause listings when the screen is full")call OW_BinOptionL("more", &more)if has("dialog_con") || has("dialog_gui")  call append("$", "confirm\tstart a dialog when a command fails")  call OW_BinOptionL("cf", &cf)endifcall append("$", "errorbells\tring the bell for error messages")call OW_BinOptionL("eb", &eb)call append("$", "visualbell\tuse a visual bell instead of beeping")call OW_BinOptionL("vb", &vb)call OW_Header("selecting text")call append("$", "selection\t\"old\", \"inclusive\" or \"exclusive\"; how selecting text behaves")call OW_OptionL("sel", &sel)call append("$", "selectmode\t\"mouse\", \"key\" and/or \"cmd\"; when to start Select mode")call append("$", "\tinstead of Visual mode")call OW_OptionL("slm", &slm)if has("clipboard")  call append("$", "clipboard\t\"unnamed\" to use the * register like unnamed register")  call append("$", "\t\"autoselect\" to always put selected text on the clipboard")  call OW_OptionL("cb", &cb)endifcall append("$", "keymodel\t\"startsel\" and/or \"stopsel\"; what special keys can do")call OW_OptionL("km", &km)call OW_Header("editing text")call append("$", "undolevels\tmaximum number of changes that can be undone")call append("$", "set ul=" . &ul)call append("$", "modified\tchanges have been made and not written to a file")call append("$", "\t(local to buffer)")call OW_BinOption("mod")call append("$", "readonly\tbuffer is not to be written")call append("$", "\t(local to buffer)")call OW_BinOption("ro")call append("$", "textwidth\tline length above which to break a line")call append("$", "\t(local to buffer)")call OW_Option("tw")call append("$", "wrapmargin\tmargin from the right in which to break a line")call append("$", "\t(local to buffer)")call OW_Option("wm")call append("$", "backspace\t0, 1 or 2; what <BS> can do in Insert mode")call append("$", "set bs=" . &bs)call append("$", "comments\tdefinition of what comment lines look like")call append("$", "\t(local to buffer)")call OW_Option("com")call append("$", "formatoptions\tlist of flags that tell how automatic formatting works")call append("$", "\t(local to buffer)")call OW_Option("fo")if has("insert_expand")  call append("$", "complete\tspecifies how Insert mode completion works")  call append("$", "\t(local to buffer)")  call OW_Option("cpt")  call append("$", "dictionary\tlist of dictionary files for keyword completion")  call OW_OptionL("dict", &dict)endifcall append("$", "infercase\tadjust case of a keyword completion match")call append("$", "\t(local to buffer)")call OW_BinOption("inf")if has("digraphs")  call append("$", "digraph\tenable entering digraps with c1 <BS> c2")  call OW_BinOptionL("dg", &dg)endifcall append("$", "tildeop\tthe \"~\" command behaves like an operator")call OW_BinOptionL("top", &top)call append("$", "showmatch\tWhen inserting a bracket, briefly jump to its match")call OW_BinOptionL("sm", &sm)call append("$", "matchtime\ttenth of a second to show a match for 'showmatch'")call append("$", "set mat=" . &mat)call append("$", "matchpairs\tlist of pairs that match for the \"%\" command")call append("$", "\t(local to buffer)")call OW_Option("mps")call append("$", "joinspaces\tuse two spaces after '.' when joining a line")call OW_BinOptionL("js", &js)call append("$", "nrformats\t\"octal\" and/or \"hex\"; number formats recognized for")call append("$", "\tCTRL-A and CTRL-X commands")call append("$", "\t(local to buffer)")call OW_Option("nf")call OW_Header("tabs and indenting")call append("$", "tabstop\tnumber of spaces a <Tab> in the text stands for")call append("$", "\t(local to buffer)")call OW_Option("ts")call append("$", "shiftwidth\tnumber of spaces used for each step of (auto)indent")call append("$", "\t(local to buffer)")call OW_Option("sw")call append("$", "smarttab\ta <Tab> in an indent inserts 'shiftwidth' spaces")call OW_BinOptionL("sta", &sta)call append("$", "softtabstop\tif non-zero, number of spaces to insert for a <Tab>")call append("$", "\t(local to buffer)")call OW_Option("sts")call append("$", "shiftround\tround to 'shiftwidth' for \"<<\" and \">>\"")call OW_BinOptionL("sr", &sr)call append("$", "expandtab\texpand <Tab> to spaces in Insert mode")call append("$", "\t(local to buffer)")call OW_BinOption("et")call append("$", "autoindent\tautomatically set the indent of a new line")call append("$", "\t(local to buffer)")call OW_BinOption("ai")if has("smartindent")  call append("$", "smartindent\tdo clever autoindenting")  call append("$", "\t(local to buffer)")  call OW_BinOption("si")endifif has("cindent")  call append("$", "cindent\tenable specific indenting for C code")  call append("$", "\t(local to buffer)")  call OW_BinOption("cin")  call append("$", "cinoptions\toptions for C-indenting")  call append("$", "\t(local to buffer)")  call OW_Option("cino")  call append("$", "cinkeys\tkeys that trigger C-indenting in Insert mode")  call append("$", "\t(local to buffer)")  call OW_Option("cink")  call append("$", "cinwords\tlist of words that cause more C-indent")  call append("$", "\t(local to buffer)")  call OW_Option("cinw")endifcall append("$", "lisp\tenable lisp mode")call append("$", "\t(local to buffer)")call OW_BinOption("lisp")call OW_Header("mapping")call append("$", "maxmapdepth\tmaximum depth of mapping")call append("$", "set mmd=" . &mmd)call append("$", "remap\trecognize mappings in mapped keys")call OW_BinOptionL("remap", &remap)call append("$", "timeout\ttime-out halfway a mapping")call OW_BinOptionL("to", &to)call append("$", "ttimeout\ttime-out halfway a key code")call OW_BinOptionL("ttimeout", &ttimeout)call append("$", "timeoutlen\ttime in msec for 'timeout'")call append("$", "set tm=" . &tm)call append("$", "ttimeoutlen\ttime in msec for 'ttimeout'")call append("$", "set ttm=" . &ttm)call OW_Header("reading and writing files")call append("$", "modeline\tenable using settings from modelines when reading a file")call append("$", "\t(local to buffer)")call OW_BinOption("ml")call append("$", "modelines\tnumber of lines to check for modelines")call append("$", "set mls=" . &mls)

⌨️ 快捷键说明

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