diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 20:39:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 20:39:31 +0000 |
commit | a7241f5f19fd0865ce697939c347a8c88fb507d5 (patch) | |
tree | e1f1c07fe74094539286be048cc3306f6aedb0bc /runtime/tutor | |
parent | f233048a129fa7a3b89e064078435181d6421da5 (diff) |
updated for version 7.2a
Diffstat (limited to 'runtime/tutor')
-rw-r--r-- | runtime/tutor/README_ami.txt | 32 | ||||
-rw-r--r-- | runtime/tutor/runtime/delmenu.vim | 25 | ||||
-rw-r--r-- | runtime/tutor/runtime/macmap.vim | 75 | ||||
-rwxr-xr-x | runtime/tutor/runtime/macros.info | bin | 0 -> 624 bytes | |||
-rw-r--r-- | runtime/tutor/runtime/optwin.vim | 1312 | ||||
-rwxr-xr-x | runtime/tutor/runtime/tools.info | bin | 0 -> 624 bytes | |||
-rw-r--r-- | runtime/tutor/runtime/vim32x32.xpm | 43 | ||||
-rw-r--r-- | runtime/tutor/runtime/vim48x48.xpm | 59 | ||||
-rw-r--r-- | runtime/tutor/runtime/vimlogo.eps | 791 | ||||
-rw-r--r-- | runtime/tutor/tutor.sv.utf-8 | 830 | ||||
-rw-r--r-- | runtime/tutor/tutor.vi.utf-8 | 812 | ||||
-rwxr-xr-x | runtime/tutor/vimdir.info | bin | 0 -> 624 bytes | |||
-rw-r--r-- | runtime/tutor/vimtutor.bat | 67 |
13 files changed, 4046 insertions, 0 deletions
diff --git a/runtime/tutor/README_ami.txt b/runtime/tutor/README_ami.txt new file mode 100644 index 0000000000..13fa67d626 --- /dev/null +++ b/runtime/tutor/README_ami.txt @@ -0,0 +1,32 @@ +README_ami.txt for version 7.2a of Vim: Vi IMproved. + +This file explains the installation of Vim on Amiga systems. +See README.txt for general information about Vim. + + +Unpack the distributed files in the place where you want to keep them. It is +wise to have a "vim" directory to keep your vimrc file and any other files you +change. The distributed files go into a subdirectory. This way you can +easily upgrade to a new version. For example: + + dh0:editors/vim contains your vimrc and modified files + dh0:editors/vim/vim54 contains the Vim version 5.4 distributed files + dh0:editors/vim/vim55 contains the Vim version 5.5 distributed files + +You would then unpack the archives like this: + + cd dh0:editors + tar xf t:vim60bin.tar + tar xf t:vim60rt.tar + +Set the $VIM environment variable to point to the top directory of your Vim +files. For the above example: + + set VIM=dh0:editors/vim + +Vim version 5.4 will look for your vimrc file in $VIM, and for the runtime +files in $VIM/vim54. See ":help $VIM" for more information. + +Make sure the Vim executable is in your search path. Either copy the Vim +executable to a directory that is in your search path, or (preferred) modify +the search path to include the directory where the Vim executable is. diff --git a/runtime/tutor/runtime/delmenu.vim b/runtime/tutor/runtime/delmenu.vim new file mode 100644 index 0000000000..81df87d346 --- /dev/null +++ b/runtime/tutor/runtime/delmenu.vim @@ -0,0 +1,25 @@ +" This Vim script deletes all the menus, so that they can be redefined. +" Warning: This also deletes all menus defined by the user! +" +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last Change: 2001 May 27 + +aunmenu * + +silent! unlet did_install_default_menus +silent! unlet did_install_syntax_menu +if exists("did_menu_trans") + menutrans clear + unlet did_menu_trans +endif + +silent! unlet find_help_dialog + +silent! unlet menutrans_help_dialog +silent! unlet menutrans_path_dialog +silent! unlet menutrans_tags_dialog +silent! unlet menutrans_textwidth_dialog +silent! unlet menutrans_fileformat_dialog +silent! unlet menutrans_no_file + +" vim: set sw=2 : diff --git a/runtime/tutor/runtime/macmap.vim b/runtime/tutor/runtime/macmap.vim new file mode 100644 index 0000000000..dc76f15f96 --- /dev/null +++ b/runtime/tutor/runtime/macmap.vim @@ -0,0 +1,75 @@ +" System gvimrc file for Mac OS X +" Author: Benji Fisher <benji@member.AMS.org> +" Last Change: Thu Mar 09 09:00 AM 2006 EST +" +" Define Mac-standard keyboard shortcuts. + +" We don't change 'cpoptions' here, because it would not be set properly when +" a .vimrc file is found later. Thus don't use line continuation and use +" <special> in mappings. + +nnoremap <special> <D-n> :confirm enew<CR> +vmap <special> <D-n> <Esc><D-n>gv +imap <special> <D-n> <C-O><D-n> +cmap <special> <D-n> <C-C><D-n> +omap <special> <D-n> <Esc><D-n> + +nnoremap <special> <D-o> :browse confirm e<CR> +vmap <special> <D-o> <Esc><D-o>gv +imap <special> <D-o> <C-O><D-o> +cmap <special> <D-o> <C-C><D-o> +omap <special> <D-o> <Esc><D-o> + +nnoremap <silent> <special> <D-w> :if winheight(2) < 0 <Bar> confirm enew <Bar> else <Bar> confirm close <Bar> endif<CR> +vmap <special> <D-w> <Esc><D-w>gv +imap <special> <D-w> <C-O><D-w> +cmap <special> <D-w> <C-C><D-w> +omap <special> <D-w> <Esc><D-w> + +nnoremap <silent> <special> <D-s> :if expand("%") == ""<Bar>browse confirm w<Bar> else<Bar>confirm w<Bar>endif<CR> +vmap <special> <D-s> <Esc><D-s>gv +imap <special> <D-s> <C-O><D-s> +cmap <special> <D-s> <C-C><D-s> +omap <special> <D-s> <Esc><D-s> + +nnoremap <special> <D-S-s> :browse confirm saveas<CR> +vmap <special> <D-S-s> <Esc><D-s>gv +imap <special> <D-S-s> <C-O><D-s> +cmap <special> <D-S-s> <C-C><D-s> +omap <special> <D-S-s> <Esc><D-s> + +" From the Edit menu of SimpleText: +nnoremap <special> <D-z> u +vmap <special> <D-z> <Esc><D-z>gv +imap <special> <D-z> <C-O><D-z> +cmap <special> <D-z> <C-C><D-z> +omap <special> <D-z> <Esc><D-z> + +vnoremap <special> <D-x> "+x + +vnoremap <special> <D-c> "+y + +cnoremap <special> <D-c> <C-Y> + +nnoremap <special> <D-v> "+gP +cnoremap <special> <D-v> <C-R>+ +execute 'vnoremap <script> <special> <D-v>' paste#paste_cmd['v'] +execute 'inoremap <script> <special> <D-v>' paste#paste_cmd['i'] + +nnoremap <silent> <special> <D-a> :if &slm != ""<Bar>exe ":norm gggH<C-O>G"<Bar> else<Bar>exe ":norm ggVG"<Bar>endif<CR> +vmap <special> <D-a> <Esc><D-a> +imap <special> <D-a> <Esc><D-a> +cmap <special> <D-a> <C-C><D-a> +omap <special> <D-a> <Esc><D-a> + +nnoremap <special> <D-f> / +vmap <special> <D-f> <Esc><D-f> +imap <special> <D-f> <Esc><D-f> +cmap <special> <D-f> <C-C><D-f> +omap <special> <D-f> <Esc><D-f> + +nnoremap <special> <D-g> n +vmap <special> <D-g> <Esc><D-g> +imap <special> <D-g> <C-O><D-g> +cmap <special> <D-g> <C-C><D-g> +omap <special> <D-g> <Esc><D-g> diff --git a/runtime/tutor/runtime/macros.info b/runtime/tutor/runtime/macros.info Binary files differnew file mode 100755 index 0000000000..bbb0b4f16b --- /dev/null +++ b/runtime/tutor/runtime/macros.info diff --git a/runtime/tutor/runtime/optwin.vim b/runtime/tutor/runtime/optwin.vim new file mode 100644 index 0000000000..7392b53bdc --- /dev/null +++ b/runtime/tutor/runtime/optwin.vim @@ -0,0 +1,1312 @@ +" These commands create the option window. +" +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last Change: 2008 May 12 + +" If there already is an option window, jump to that one. +if bufwinnr("option-window") > 0 + let s:thiswin = winnr() + while 1 + if @% == "option-window" + finish + endif + exe "norm! \<C-W>w" + if s:thiswin == winnr() + break + endif + endwhile +endif + +" Make sure the '<' flag is not included in 'cpoptions', otherwise <CR> would +" not be recognized. See ":help 'cpoptions'". +let s:cpo_save = &cpo +set cpo&vim + +" function to be called when <CR> is hit in the option-window +fun! <SID>CR() + + " If on a continued comment line, go back to the first comment line + let lnum = line(".") + let line = getline(lnum) + while line[0] == "\t" + let lnum = lnum - 1 + let line = getline(lnum) + endwhile + + " <CR> on a "set" line executes the option line + if match(line, "^ \tset ") >= 0 + + " For a local option: go to the previous window + " If this is a help window, go to the window below it + let thiswin = winnr() + let local = <SID>Find(lnum) + if local >= 0 + exe line + call <SID>Update(lnum, line, local, thiswin) + endif + + " <CR> on a "option" line shows help for that option + elseif match(line, "^[a-z]") >= 0 + let name = substitute(line, '\([^\t]*\).*', '\1', "") + exe "help '" . name . "'" + + " <CR> on an index line jumps to the group + elseif match(line, '^ \=[0-9]') >= 0 + exe "norm! /" . line . "\<CR>zt" + endif +endfun + +" function to be called when <Space> is hit in the option-window +fun! <SID>Space() + + let lnum = line(".") + let line = getline(lnum) + + " <Space> on a "set" line refreshes the option line + if match(line, "^ \tset ") >= 0 + + " For a local option: go to the previous window + " If this is a help window, go to the window below it + let thiswin = winnr() + let local = <SID>Find(lnum) + if local >= 0 + call <SID>Update(lnum, line, local, thiswin) + endif + + endif +endfun + +" find the window in which the option applies +" returns 0 for global option, 1 for local option, -1 for error +fun! <SID>Find(lnum) + if getline(a:lnum - 1) =~ "(local to" + let local = 1 + let thiswin = winnr() + exe "norm! \<C-W>p" + if exists("b:current_syntax") && b:current_syntax == "help" + exe "norm! \<C-W>j" + if winnr() == thiswin + exe "norm! \<C-W>j" + endif + endif + else + let local = 0 + endif + if local && (winnr() == thiswin || (exists("b:current_syntax") + \ && b:current_syntax == "help")) + echo "Don't know in which window" + let local = -1 + endif + return local +endfun + +" Update a "set" line in the option window +fun! <SID>Update(lnum, line, local, thiswin) + " get the new value of the option and update the option window line + if match(a:line, "=") >= 0 + let name = substitute(a:line, '^ \tset \([^=]*\)=.*', '\1', "") + else + let name = substitute(a:line, '^ \tset \(no\)\=\([a-z]*\).*', '\2', "") + endif + if name == "pt" && &pt =~ "\x80" + let val = <SID>PTvalue() + else + exe "let val = substitute(&" . name . ', "[ \\t\\\\\"|]", "\\\\\\0", "g")' + endif + if a:local + exe "norm! " . a:thiswin . "\<C-W>w" + endif + if match(a:line, "=") >= 0 || (val != "0" && val != "1") + call setline(a:lnum, " \tset " . name . "=" . val) + else + if val + call setline(a:lnum, " \tset " . name . "\tno" . name) + else + call setline(a:lnum, " \tset no" . name . "\t" . name) + endif + endif + set nomodified +endfun + +" Reset 'title' and 'icon' to make it work faster. +let s:old_title = &title +let s:old_icon = &icon +let s:old_sc = &sc +let s:old_ru = &ru +set notitle noicon nosc noru + +" If the current window is a help window, try finding a non-help window. +" Relies on syntax highlighting to be switched on. +let s:thiswin = winnr() +while exists("b:current_syntax") && b:current_syntax == "help" + exe "norm! \<C-W>w" + if s:thiswin == winnr() + break + endif +endwhile + +" Open the window +new option-window +setlocal ts=15 tw=0 noro + +" Insert help and a "set" command for each option. +call append(0, '" Each "set" line shows the current value of an option (on the left).') +call append(1, '" Hit <CR> on a "set" line to execute it.') +call append(2, '" A boolean option will be toggled.') +call append(3, '" For other options you can edit the value.') +call append(4, '" Hit <CR> on a help line to open a help window on this option.') +call append(5, '" Hit <CR> on an index line to jump there.') +call append(6, '" Hit <Space> on a "set" line to refresh it.') + +" These functions are called often below. Keep them fast! + +" Init a local binary option +fun! <SID>BinOptionL(name) + exe "norm! \<C-W>p" + exe "let val = &" . a:name + exe "norm! \<C-W>p" + call append("$", substitute(substitute(" \tset " . val . a:name . "\t" . + \!val . a:name, "0", "no", ""), "1", "", "")) +endfun + +" Init a global binary option +fun! <SID>BinOptionG(name, val) + call append("$", substitute(substitute(" \tset " . a:val . a:name . "\t" . + \!a:val . a:name, "0", "no", ""), "1", "", "")) +endfun + +" Init a local string option +fun! <SID>OptionL(name) + exe "norm! \<C-W>p" + exe "let val = substitute(&" . a:name . ', "[ \\t\\\\\"|]", "\\\\\\0", "g")' + exe "norm! \<C-W>p" + call append("$", " \tset " . a:name . "=" . val) +endfun + +" Init a global string option +fun! <SID>OptionG(name, val) + call append("$", " \tset " . a:name . "=" . substitute(a:val, '[ \t\\"|]', + \ '\\\0', "g")) +endfun + +let s:idx = 1 +let s:lnum = line("$") +call append("$", "") + +fun! <SID>Header(text) + let line = s:idx . " " . a:text + if s:idx < 10 + let line = " " . line + endif + call append("$", "") + call append("$", line) + call append("$", "") + call append(s:lnum, line) + let s:idx = s:idx + 1 + let s:lnum = s:lnum + 1 +endfun + +" Get the value of 'pastetoggle'. It could be a special key. +fun! <SID>PTvalue() + redir @a + silent set pt + redir END + return substitute(@a, '[^=]*=\(.*\)', '\1', "") +endfun + +" Restore the previous value of 'cpoptions' here, it's used below. +let &cpo = s:cpo_save + +" List of all options, organized by function. +" The text should be sufficient to know what the option is used for. + +call <SID>Header("important") +call append("$", "compatible\tbehave very Vi compatible (not advisable)") +call <SID>BinOptionG("cp", &cp) +call append("$", "cpoptions\tlist of flags to specify Vi compatibility") +call <SID>OptionG("cpo", &cpo) +call append("$", "insertmode\tuse Insert mode as the default mode") +call <SID>BinOptionG("im", &im) +call append("$", "paste\tpaste mode, insert typed text literally") +call <SID>BinOptionG("paste", &paste) +call append("$", "pastetoggle\tkey sequence to toggle paste mode") +if &pt =~ "\x80" + call append("$", " \tset pt=" . <SID>PTvalue()) +else + call <SID>OptionG("pt", &pt) +endif +call append("$", "runtimepath\tlist of directories used for runtime files and plugins") +call <SID>OptionG("rtp", &rtp) +call append("$", "helpfile\tname of the main help file") +call <SID>OptionG("hf", &hf) + + +call <SID>Header("moving around, searching and patterns") +call append("$", "whichwrap\tlist of flags specifying which commands wrap to another line") +call append("$", "\t(local to window)") +call <SID>OptionL("ww") +call append("$", "startofline\tmany jump commands move the cursor to the first non-blank") +call append("$", "\tcharacter of a line") +call <SID>BinOptionG("sol", &sol) +call append("$", "paragraphs\tnroff macro names that separate paragraphs") +call <SID>OptionG("para", ¶) +call append("$", "sections\tnroff macro names that separate sections") +call <SID>OptionG("sect", §) +call append("$", "path\tlist of directory names used for file searching") +call append("$", "\t(global or local to buffer)") +call <SID>OptionG("pa", &pa) +call append("$", "cdpath\tlist of directory names used for :cd") +call <SID>OptionG("cd", &cd) +if has("netbeans_intg") || has("sun_workshop") + call append("$", "autochdir\tchange to directory of file in buffer") + call <SID>BinOptionG("acd", &acd) +endif +call append("$", "wrapscan\tsearch commands wrap around the end of the buffer") +call <SID>BinOptionG("ws", &ws) +call append("$", "incsearch\tshow match for partly typed search command") +call <SID>BinOptionG("is", &is) +call append("$", "magic\tchange the way backslashes are used in search patterns") +call <SID>BinOptionG("magic", &magic) +call append("$", "ignorecase\tignore case when using a search pattern") +call <SID>BinOptionG("ic", &ic) +call append("$", "smartcase\toverride 'ignorecase' when pattern has upper case characters") +call <SID>BinOptionG("scs", &scs) +call append("$", "casemap\tWhat method to use for changing case of letters") +call <SID>OptionG("cmp", &cmp) +call append("$", "maxmempattern\tmaximum amount of memory in Kbyte used for pattern matching") +call append("$", " \tset mmp=" . &mmp) +call append("$", "define\tpattern for a macro definition line") +call append("$", "\t(global or local to buffer)") +call <SID>OptionG("def", &def) +if has("find_in_path") + call append("$", "include\tpattern for an include-file line") + call append("$", "\t(local to buffer)") + call <SID>OptionL("inc") + call append("$", "includeexpr\texpression used to transform an include line to a file name") + call append("$", "\t(local to buffer)") + call <SID>OptionL("inex") +endif + + +call <SID>Header("tags") +call append("$", "tagbsearch\tuse binary searching in tags files") +call <SID>BinOptionG("tbs", &tbs) +call append("$", "taglength\tnumber of significant characters in a tag name or zero") +call append("$", " \tset tl=" . &tl) +call append("$", "tags\tlist of file names to search for tags") +call append("$", "\t(global or local to buffer)") +call <SID>OptionG("tag", &tag) +call append("$", "tagrelative\tfile names in a tags file are relative to the tags file") +call <SID>BinOptionG("tr", &tr) +call append("$", "tagstack\ta :tag command will use the tagstack") +call <SID>BinOptionG("tgst", &tgst) +call append("$", "showfulltag\twhen completing tags in Insert mode show more info") +call <SID>BinOptionG("sft", &sft) +if has("cscope") + call append("$", "cscopeprg\tcommand for executing cscope") + call <SID>OptionG("csprg", &csprg) + call append("$", "cscopetag\tuse cscope for tag commands") + call <SID>BinOptionG("cst", &cst) + call append("$", "cscopetagorder\t0 or 1; the order in which \":cstag\" performs a search") + call append("$", " \tset csto=" . &csto) + call append("$", "cscopeverbose\tgive messages when adding a cscope database") + call <SID>BinOptionG("csverb", &csverb) + call append("$", "cscopepathcomp\thow many components of the path to show") + call append("$", " \tset cspc=" . &cspc) + call append("$", "cscopequickfix\tWhen to open a quickfix window for cscope") + call <SID>OptionG("csqf", &csqf) +endif + + +call <SID>Header("displaying text") +call append("$", "scroll\tnumber of lines to scroll for CTRL-U and CTRL-D") +call append("$", "\t(local to window)") +call <SID>OptionL("scr") +call append("$", "scrolloff\tnumber of screen lines to show around the cursor") +call append("$", " \tset so=" . &so) +call append("$", "wrap\tlong lines wrap") +call <SID>BinOptionG("wrap", &wrap) +call append("$", "linebreak\twrap long lines at a character in 'breakat'") +call append("$", "\t(local to window)") +call <SID>BinOptionL("lbr") +call append("$", "breakat\twhich characters might cause a line break") +call <SID>OptionG("brk", &brk) +call append("$", "showbreak\tstring to put before wrapped screen lines") +call <SID>OptionG("sbr", &sbr) +call append("$", "sidescroll\tminimal number of columns to scroll horizontally") +call append("$", " \tset ss=" . &ss) +call append("$", "sidescrolloff\tminimal number of columns to keep left and right of the cursor") +call append("$", " \tset siso=" . &siso) +call append("$", "display\tinclude \"lastline\" to show the last line even if it doesn't fit") +call append("$", "\tinclude \"uhex\" to show unprintable characters as a hex number") +call <SID>OptionG("dy", &dy) +call append("$", "fillchars\tcharacters to use for the status line, folds and filler lines") +call <SID>OptionG("fcs", &fcs) +call append("$", "cmdheight\tnumber of lines used for the command-line") +call append("$", " \tset ch=" . &ch) +call append("$", "columns\twidth of the display") +call append("$", " \tset co=" . &co) +call append("$", "lines\tnumber of lines in the display") +call append("$", " \tset lines=" . &lines) +call append("$", "lazyredraw\tdon't redraw while executing macros") +call <SID>BinOptionG("lz", &lz) +if has("reltime") + call append("$", "redrawtime\ttimeout for 'hlsearch' and :match highlighting in msec") + call append("$", " \tset rdt=" . &rdt) +endif +call append("$", "writedelay\tdelay in msec for each char written to the display") +call append("$", "\t(for debugging)") +call append("$", " \tset wd=" . &wd) +call append("$", "list\tshow <Tab> as ^I and end-of-line as $") +call append("$", "\t(local to window)") +call <SID>BinOptionL("list") +call append("$", "listchars\tlist of strings used for list mode") +call <SID>OptionG("lcs", &lcs) +call append("$", "number\tshow the line number for each line") +call append("$", "\t(local to window)") +call <SID>BinOptionL("nu") +if has("linebreak") + call append("$", "numberwidth\tnumber of columns to use for the line number") + call append("$", "\t(local to window)") + call <SID>OptionL("nuw") +endif + + +call <SID>Header("syntax, highlighting and spelling") +call append("$", "background\t\"dark\" or \"light\"; the background color brightness") +call <SID>OptionG("bg", &bg) +if has("autocmd") + call append("$", "filetype\ttype of file; triggers the FileType event when set") + call append("$", "\t(local to buffer)") + call <SID>OptionL("ft") +endif +if has("syntax") + call append("$", "syntax\tname of syntax highlighting used") + call append("$", "\t(local to buffer)") + call <SID>OptionL("syn") + call append("$", "synmaxcol\tmaximum column to look for syntax items") + call append("$", "\t(local to buffer)") + call <SID>OptionL("smc") +endif +call append("$", "highlight\twhich highlighting to use for various occasions") +call <SID>OptionG("hl", &hl) +call append("$", "hlsearch\thighlight all matches for the last used search pattern") +call <SID>BinOptionG("hls", &hls) +if has("syntax") + call append("$", "cursorcolumn\thighlight the screen column of the cursor") + call append("$", "\t(local to window)") + call <SID>BinOptionL("cuc") + call append("$", "cursorline\thighlight the screen line of the cursor") + call append("$", "\t(local to window)") + call <SID>BinOptionL("cul") + call append("$", "spell\thighlight spelling mistakes") + call append("$", "\t(local to window)") + call <SID>BinOptionL("spell") + call append("$", "spelllang\tlist of accepted languages") + call append("$", "\t(local to buffer)") + call <SID>OptionL("spl") + call append("$", "spellfile\tfile that \"zg\" adds good words to") + call append("$", "\t(local to buffer)") + call <SID>OptionL("spf") + call append("$", "spellcapcheck\tpattern to locate the end of a sentence") + call append("$", "\t(local to buffer)") + call <SID>OptionL("spc") + call append("$", "spellsuggest\tmethods used to suggest corrections") + call <SID>OptionG("sps", &sps) + call append("$", "mkspellmem\tamount of memory used by :mkspell before compressing") + call <SID>OptionG("msm", &msm) +endif + + +call <SID>Header("multiple windows") +call append("$", "laststatus\t0, 1 or 2; when to use a status line for the last window") +call append("$", " \tset ls=" . &ls) +if has("statusline") + call append("$", "statusline\talternate format to be used for a status line") + call <SID>OptionG("stl", &stl) +endif +call append("$", "equalalways\tmake all windows the same size when adding/removing windows") +call <SID>BinOptionG("ea", &ea) +if has("vertsplit") + call append("$", "eadirection\tin which direction 'equalalways' works: \"ver\", \"hor\" or \"both\"") + call <SID>OptionG("ead", &ead) +endif +call append("$", "winheight\tminimal number of lines used for the current window") +call append("$", " \tset wh=" . &wh) +call append("$", "winminheight\tminimal number of lines used for any window") +call append("$", " \tset wmh=" . &wmh) +call append("$", "winfixheight\tkeep the height of the window") +call append("$", "\t(local to window)") +call <SID>BinOptionL("wfh") +if has("vertsplit") +call append("$", "winfixwidth\tkeep the width of the window") +call append("$", "\t(local to window)") +call <SID>BinOptionL("wfw") + call append("$", "winwidth\tminimal number of columns used for the current window") + call append("$", " \tset wiw=" . &wiw) + call append("$", "winminwidth\tminimal number of columns used for any window") + call append("$", " \tset wmw=" . &wmw) +endif +call append("$", "helpheight\tinitial height of the help window") +call append("$", " \tset hh=" . &hh) +if has("quickfix") + call append("$", "previewheight\tdefault height for the preview window") + call append("$", " \tset pvh=" . &pvh) + call append("$", "previewwindow\tidentifies the preview window") + call append("$", "\t(local to window)") + call <SID>BinOptionL("pvw") +endif +call append("$", "hidden\tdon't unload a buffer when no longer shown in a window") +call <SID>BinOptionG("hid", &hid) +call append("$", "switchbuf\t\"useopen\" and/or \"split\"; which window to use when jumping") +call append("$", "\tto a buffer") +call <SID>OptionG("swb", &swb) +call append("$", "splitbelow\ta new window is put below the current one") +call <SID>BinOptionG("sb", &sb) +if has("vertsplit") + call append("$", "splitright\ta new window is put right of the current one") + call <SID>BinOptionG("spr", &spr) +endif +if has("scrollbind") + call append("$", "scrollbind\tthis window scrolls together with other bound windows") + call append("$", "\t(local to window)") + call <SID>BinOptionL("scb") + call append("$", "scrollopt\t\"ver\", \"hor\" and/or \"jump\"; list of options for 'scrollbind'") + call <SID>OptionG("sbo", &sbo) +endif + + +call <SID>Header("multiple tab pages") +call append("$", "showtabline\t0, 1 or 2; when to use a tab pages line") +call append("$", " \tset stal=" . &stal) +call append("$", "tabpagemax\tmaximum number of tab pages to open for -p and \"tab all\"") +call append("$", " \tset tpm=" . &tpm) +call append("$", "tabline\tcustom tab pages line") +call <SID>OptionG("tal", &tal) +if has("gui") + call append("$", "guitablabel\tcustom tab page label for the GUI") + call <SID>OptionG("gtl", >l) + call append("$", "guitabtooltip\tcustom tab page tooltip for the GUI") + call <SID>OptionG("gtt", >t) +endif + + +call <SID>Header("terminal") +call append("$", "term\tname of the used terminal") +call <SID>OptionG("term", &term) +call append("$", "ttytype\talias for 'term'") +call <SID>OptionG("tty", &tty) +call append("$", "ttybuiltin\tcheck built-in termcaps first") +call <SID>BinOptionG("tbi", &tbi) +call append("$", "ttyfast\tterminal connection is fast") +call <SID>BinOptionG("tf", &tf) +call append("$", "weirdinvert\tterminal that requires extra redrawing") +call <SID>BinOptionG("wiv", &wiv) +call append("$", "esckeys\trecognize keys that start with <Esc> in Insert mode") +call <SID>BinOptionG("ek", &ek) +call append("$", "scrolljump\tminimal number of lines to scroll at a time") +call append("$", " \tset sj=" . &sj) +call append("$", "ttyscroll\tmaximum number of lines to use scrolling instead of redrawing") +call append("$", " \tset tsl=" . &tsl) +if has("gui") || has("msdos") || has("win32") + call append("$", "guicursor\tspecifies what the cursor looks like in different modes") + call <SID>OptionG("gcr", &gcr) +endif +if has("title") + let &title = s:old_title + call append("$", "title\tshow info in the window title") + call <SID>BinOptionG("title", &title) + set notitle + call append("$", "titlelen\tpercentage of 'columns' used for the window title") + call append("$", " \tset titlelen=" . &titlelen) + call append("$", "titlestring\twhen not empty, string to be used for the window title") + call <SID>OptionG("titlestring", &titlestring) + call append("$", "titleold\tstring to restore the title to when exiting Vim") + call <SID>OptionG("titleold", &titleold) + let &icon = s:old_icon + call append("$", "icon\tset the text of the icon for this window") + call <SID>BinOptionG("icon", &icon) + set noicon + call append("$", "iconstring\twhen not empty, text for the icon of this window") + call <SID>OptionG("iconstring", &iconstring) +endif +if has("win32") + call append("$", "restorescreen\trestore the screen contents when exiting Vim") + call <SID>BinOptionG("rs", &rs) +endif + + +call <SID>Header("using the mouse") +call append("$", "mouse\tlist of flags for using the mouse") +call <SID>OptionG("mouse", &mouse) +if has("gui") + call append("$", "mousefocus\tthe window with the mouse pointer becomes the current one") + call <SID>BinOptionG("mousef", &mousef) + call append("$", "mousehide\thide the mouse pointer while typing") + call <SID>BinOptionG("mh", &mh) +endif +call append("$", "mousemodel\t\"extend\", \"popup\" or \"popup_setpos\"; what the right") +call append("$", "\tmouse button is used for") +call <SID>OptionG("mousem", &mousem) +call append("$", "mousetime\tmaximum time in msec to recognize a double-click") +call append("$", " \tset mouset=" . &mouset) +call append("$", "ttymouse\t\"xterm\", \"xterm2\", \"dec\" or \"netterm\"; type of mouse") +call <SID>OptionG("ttym", &ttym) +if has("mouseshape") + call append("$", "mouseshape\twhat the mouse pointer looks like in different modes") + call <SID>OptionG("mouses", &mouses) +endif + + +if has("gui") + call <SID>Header("GUI") + call append("$", "guifont\tlist of font names to be used in the GUI") + call <SID>OptionG("gfn", &gfn) + if has("xfontset") + call append("$", "guifontset\tpair of fonts to be used, for multibyte editing") + call <SID>OptionG("gfs", &gfs) + endif + call append("$", "guifontwide\tlist of font names to be used for double-wide characters") + call <SID>OptionG("gfw", &gfw) + if has("mac") + call append("$", "antialias\tuse smooth, antialiased fonts") + call <SID>BinOptionG("anti", &anti) + endif + call append("$", "guioptions\tlist of flags that specify how the GUI works") + call <SID>OptionG("go", &go) + if has("gui_gtk") + call append("$", "toolbar\t\"icons\", \"text\" and/or \"tooltips\"; how to show the toolbar") + call <SID>OptionG("tb", &tb) + if has("gui_gtk2") + call append("$", "toolbariconsize\tSize of toolbar icons") + call <SID>OptionG("tbis", &tbis) + endif + call append("$", "guiheadroom\troom (in pixels) left above/below the window") + call append("$", " \tset ghr=" . &ghr) + endif + call append("$", "guipty\tuse a pseudo-tty for I/O to external commands") + call <SID>BinOptionG("guipty", &guipty) + if has("browse") + call append("$", "browsedir\t\"last\", \"buffer\" or \"current\": which directory used for the file browser") + call <SID>OptionG("bsdir", &bsdir) + endif + if has("multi_lang") + call append("$", "langmenu\tlanguage to be used for the menus") + call <SID>OptionG("langmenu", &lm) + endif + call append("$", "menuitems\tmaximum number of items in one menu") + call append("$", " \tset mis=" . &mis) + if has("winaltkeys") + call append("$", "winaltkeys\t\"no\", \"yes\" or \"menu\"; how to use the ALT key") + call <SID>OptionG("wak", &wak) + endif + call append("$", "linespace\tnumber of pixel lines to use between characters") + call append("$", " \tset lsp=" . &lsp) + if has("balloon_eval") + call append("$", "balloondelay\tdelay in milliseconds before a balloon may pop up") + call append("$", " \tset bdlay=" . &bdlay) + call append("$", "ballooneval\twhether the balloon evaluation is to be used") + call <SID>BinOptionG("beval", &beval) + if has("eval") + call append("$", "balloonexpr\texpression to show in balloon eval") + call append("$", " \tset bexpr=" . &bexpr) + endif + endif + if exists("+macatsui") + call append("$", "macatsui\tuse ATSUI text drawing; disable to avoid display problems") + call <SID>OptionG("macatsui", &macatsui) + endif +endif + +if has("printer") + call <SID>Header("printing") + call append("$", "printoptions\tlist of items that control the format of :hardcopy output") + call <SID>OptionG("popt", &popt) + call append("$", "printdevice\tname of the printer to be used for :hardcopy") + call <SID>OptionG("pdev", &pdev) + if has("postscript") + call append("$", "printexpr\texpression used to print the PostScript file for :hardcopy") + call <SID>OptionG("pexpr", &pexpr) + endif + call append("$", "printfont\tname of the font to be used for :hardcopy") + call <SID>OptionG("pfn", &pfn) + call append("$", "printheader\tformat of the header used for :hardcopy") + call <SID>OptionG("pheader", &pheader) + if has("postscript") + call append("$", "printencoding\tencoding used to print the PostScript file for :hardcopy") + call <SID>OptionG("penc", &penc) + endif + if has("multi_byte") + call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy") + call <SID>OptionG("pmbcs", &pmbcs) + call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy") + call <SID>OptionG("pmbfn", &pmbfn) + endif +endif + +call <SID>Header("messages and info") +call append("$", "terse\tadd 's' flag in 'shortmess' (don't show search message)") +call <SID>BinOptionG("terse", &terse) +call append("$", "shortmess\tlist of flags to make messages shorter") +call <SID>OptionG("shm", &shm) +call append("$", "showcmd\tshow (partial) command keys in the status line") +let &sc = s:old_sc +call <SID>BinOptionG("sc", &sc) +set nosc +call append("$", "showmode\tdisplay the current mode in the status line") +call <SID>BinOptionG("smd", &smd) +call append("$", "ruler\tshow cursor position below each window") +let &ru = s:old_ru +call <SID>BinOptionG("ru", &ru) +set noru +if has("statusline") + call append("$", "rulerformat\talternate format to be used for the ruler") + call <SID>OptionG("ruf", &ruf) +endif +call append("$", "report\tthreshold for reporting number of changed lines") +call append("$", " \tset report=" . &report) +call append("$", "verbose\tthe higher the more messages are given") +call append("$", " \tset vbs=" . &vbs) +call append("$", "verbosefile\tfile to write messages in") +call <SID>OptionG("vfile", &vfile) +call append("$", "more\tpause listings when the screen is full") +call <SID>BinOptionG("more", &more) +if has("dialog_con") || has("dialog_gui") + call append("$", "confirm\tstart a dialog when a command fails") + call <SID>BinOptionG("cf", &cf) +endif +call append("$", "errorbells\tring the bell for error messages") |