diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:58:06 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:58:06 +0000 |
commit | 8c8de839325eda0bed68917d18179d2003b344d1 (patch) | |
tree | c65b80f0a627f2e77385a07a62ee4206465cbc22 /runtime/tutor | |
parent | 864207de089119377a1e1e5d411307d8eb57399e (diff) |
updated for version 7.2av7.2a
Diffstat (limited to 'runtime/tutor')
62 files changed, 5012 insertions, 28281 deletions
diff --git a/runtime/tutor/Contents b/runtime/tutor/Contents new file mode 100644 index 0000000000..97dc1b5545 --- /dev/null +++ b/runtime/tutor/Contents @@ -0,0 +1,23 @@ +Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful + for editing programs and other plain ASCII text. Full Vi + compatibility and includes all Ex commands. Extra features + above Vi: Multilevel undo, multiple windows, syntax + highlighting, command line history, folding, improved command + line editing, command typeahead display, command to display + yank buffers, possibility to edit binary files, file name + stack, support for Manx QuickFix and other compiler's error + messages, shows current file name in window title, on-line + help, rectangular cut/paste, etc., etc., etc... + + Version 7.2a. Also runs under UNIX, MSDOS and other systems. + vim72art.tgz contains the documentation and syntax files. + vim72abin.tgz contains the binaries. + vim72asrc.tgz contains the sources. + Author: Bram Moolenaar et al. + + +Xxd Hex dumper and reader. Can be used to view files as hex, edit + them and write them back. Can also be used to patch files. + + Version 1.8 (1997 May 22) + Author: Juergen Weigert diff --git a/runtime/tutor/README.gr.cp737.txt b/runtime/tutor/README.gr.cp737.txt deleted file mode 100644 index 426f929c6f..0000000000 --- a/runtime/tutor/README.gr.cp737.txt +++ /dev/null @@ -1,24 +0,0 @@ - Tutor 夘 "" 㚞 ⦬ 㩫 -ᡫ Vim. - - 櫜 ⦠ 㩫 驦 櫜 - 騘. ⢜ 夘 櫠 嫜 ᤜ -嘪 ⤦ 餫 ᡫ Vim. - - Tutor 夘 ⤘ ⮜ 㣘 . -嫜 ⩜ "vim tutor" 㩜 -圪 㣘. 㣘 礜 㩜 - , . - - 穫 Unix 嫜 婞 㩜 暨 "vimtutor". - 㩜 高 ⤘ 殜 嚨 tutor. - - 櫜 ਞ⤘ 㣘 - 嫞 椦. 驫 ⢘ 墜 - 㧦 驜 ᤜ. - -Bob Ware, Colorado School of Mines, Golden, Co 80401, USA -(303) 273-3987 -bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet - -[ 㟞 Vim Bram Moolenaar] diff --git a/runtime/tutor/README.gr.txt b/runtime/tutor/README.gr.txt deleted file mode 100644 index b2f5e07466..0000000000 --- a/runtime/tutor/README.gr.txt +++ /dev/null @@ -1,24 +0,0 @@ - Tutor "" - Vim. - - - . - Vim. - - Tutor . - "vim tutor" - . - , . - - Unix "vimtutor". - tutor. - - - . - . - -Bob Ware, Colorado School of Mines, Golden, Co 80401, USA -(303) 273-3987 -bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet - -[ Vim Bram Moolenaar] diff --git a/runtime/tutor/README_amisrc.txt b/runtime/tutor/README_amisrc.txt new file mode 100644 index 0000000000..8732efb66e --- /dev/null +++ b/runtime/tutor/README_amisrc.txt @@ -0,0 +1,11 @@ +README_amisrc.txt for version 7.2a of Vim: Vi IMproved. + +See "README.txt" for general information about Vim. +See "README_ami.txt" for installation instructions for the Amiga. +These files are in the runtime archive (vim60rt.tgz). + + +The Amiga source archive contains the files needed to compile Vim on the +Amiga. + +See "src/INSTALLami.txt" for instructions on how to compile Vim on the Amiga. diff --git a/runtime/tutor/README_amisrc.txt.info b/runtime/tutor/README_amisrc.txt.info Binary files differnew file mode 100755 index 0000000000..476af9ac02 --- /dev/null +++ b/runtime/tutor/README_amisrc.txt.info diff --git a/runtime/tutor/README_os2.txt b/runtime/tutor/README_os2.txt new file mode 100644 index 0000000000..a9e0a4299f --- /dev/null +++ b/runtime/tutor/README_os2.txt @@ -0,0 +1,58 @@ +README_os2.txt for version 7.2a of Vim: Vi IMproved. + +This file explains the installation of Vim on OS/2 systems. +See "README.txt" for general information about Vim. + + +NOTE: You will need two archives: + vim71rt.zip contains the runtime files (same as for the PC version) + vim71os2.zip contains the OS/2 executables + +1. Go to the directory where you want to put the Vim files. Examples: + cd C:\ + cd D:\editors + +2. Unpack the zip archives. This will create a new directory "vim/vim71", + in which all the distributed Vim files are placed. Since the directory + name includes the version number, it is unlikely that you overwrite + existing files. + Examples: + pkunzip -d vim71os2.zip + unzip vim71os2.zip + + After you unpacked the files, you can still move the whole directory tree + to another location. + +3. Add the directory where vim.exe is to your path. The simplest is to add a + line to your autoexec.bat. Examples: + set path=%path%;C:\vim\vim71 + set path=%path%;D:\editors\vim\vim71 + +That's it! + + +Extra remarks: + +- To avoid confusion between distributed files of different versions and your + own modified vim scripts, it is recommended to use this directory layout: + ("C:\vim" is used here as the root, replace with the path you use) + Your own files: + C:\vim\_vimrc Your personal vimrc. + C:\vim\_viminfo Dynamic info for 'viminfo'. + C:\vim\... Other files you made. + Distributed files: + C:\vim\vim71\vim.exe The Vim version 7.1 executable. + C:\vim\vim71\doc\*.txt The version 7.1 documentation files. + C:\vim\vim71\bugreport.vim A Vim version 7.1 script. + C:\vim\vim71\... Other version 7.1 distributed files. + In this case the $VIM environment variable would be set like this: + set VIM=C:\vim + +- You can put your Vim executable anywhere else. If the executable is not + with the other distributed Vim files, you should set $VIM. The simplest is + to add a line to your autoexec.bat. Examples: + set VIM=c:\vim + set VIM=d:\editors\vim + +For further information, type this inside Vim: + :help os2 diff --git a/runtime/tutor/README_src.txt b/runtime/tutor/README_src.txt new file mode 100644 index 0000000000..7079f3e06c --- /dev/null +++ b/runtime/tutor/README_src.txt @@ -0,0 +1,10 @@ +README_src.txt for version 7.2a of Vim: Vi IMproved. + +The source archive contains the files needed to compile Vim on Unix systems. +It is packed for Unix systems (NL line separator). It is also used for other +systems in combination with the extra archive (vim-7.0-extra.tar.gz, in the +"extra" directory of ftp.vim.org). + +For more information, see the README.txt file that comes with the runtime +archive (vim-7.0-rt.tar.gz). To be able to run Vim you MUST get the runtime +archive too! diff --git a/runtime/tutor/README_vms.txt b/runtime/tutor/README_vms.txt new file mode 100644 index 0000000000..d51339e9fb --- /dev/null +++ b/runtime/tutor/README_vms.txt @@ -0,0 +1,48 @@ +README_vms.txt for version 7.2a of Vim: Vi IMproved. + +This file explains the installation of Vim on VMS systems. +See "README.txt" in the runtime archive for information about Vim. + + +Most information can be found in the on-line documentation. Use ":help vms" +inside Vim. Or get the runtime files and read runtime/doc/os_vms.txt to find +out how to install and configure Vim with runtime files etc. + +To compile Vim yourself you need three archives: + vim-X.X-rt.tar.gz runtime files + vim-X.X-src.tar.gz source files + vim-X.X-extra.tar.gz extra source files + +Compilation is recommended, in order to make sure that the correct +libraries are used for your specific system. Read about compiling in +src/INSTALLvms.txt. + +To use the binary version, you need one of these archives: + + vim-XX-exe-ia64-gui.zip IA64 GUI/Motif executables + vim-XX-exe-ia64-gtk.zip IA64 GUI/GTK executables + vim-XX-exe-ia64-term.zip IA64 console executables + vim-XX-exe-axp-gui.zip Alpha GUI/Motif executables + vim-XX-exe-axp-gtk.zip Alpha GUI/GTK executables + vim-XX-exe-axp-term.zip Alpha console executables + vim-XX-exe-vax-gui.zip VAX GUI executables + vim-XX-exe-vax-term.zip VAX console executables + +and of course + vim-XX-runtime.zip runtime files + +The binary archives contain: vim.exe, ctags.exe, xxd.exe files, +but there are also prepared "deploy ready" archives: + +vim-XX-ia64.zip GUI and console executables with runtime and + help files for IA64 systems +vim-XX-axp.zip GUI and console executables with runtime and + help files for Alpha systems +vim-XX-vax.zip GUI and console executables with runtime and + help files for VAX systems + +GTK builds need LIBGTK library installed. + +These executables and up to date patches for OpenVMS system are downloadable +from http://www.polarhome.com/vim/ or ftp://ftp.polarhome.com/pub/vim/ + diff --git a/runtime/tutor/README_w32s.txt b/runtime/tutor/README_w32s.txt new file mode 100644 index 0000000000..1b9774d366 --- /dev/null +++ b/runtime/tutor/README_w32s.txt @@ -0,0 +1,15 @@ +README_w32s.txt for version 7.2a of Vim: Vi IMproved. + +This archive contains the gvim.exe that was specifically compiled for use in +the Win32s subsystem in MS-Windows 3.1 and 3.11. + +Also see the README_bindos.txt, README_dos.txt and README.txt files. + +Be careful not to overwrite the Win32s gvim.exe with the another gvim.exe when +unpacking another binary archive! Check the output of ":version": + Win32s - "MS-Windows 16/32 bit GUI version" + Win32 - "MS-Windows 32 bit GUI version" +Win32 with OLE - "MS-Windows 32 bit GUI version with OLE support" + +For further information, type this inside Vim: + :help win32s diff --git a/runtime/tutor/Vim.info b/runtime/tutor/Vim.info Binary files differnew file mode 100755 index 0000000000..5c465ffab3 --- /dev/null +++ b/runtime/tutor/Vim.info diff --git a/runtime/tutor/Xxd.info b/runtime/tutor/Xxd.info Binary files differnew file mode 100755 index 0000000000..7ae7643b25 --- /dev/null +++ b/runtime/tutor/Xxd.info diff --git a/runtime/tutor/configure b/runtime/tutor/configure new file mode 100755 index 0000000000..1d0c5b2ece --- /dev/null +++ b/runtime/tutor/configure @@ -0,0 +1,6 @@ +#! /bin/sh + +# This is just a stub for the Unix configure script, to provide support for +# doing "./configure" in the top Vim directory. + +cd src && exec ./configure "$@" diff --git a/runtime/tutor/csdpmi4b.zip b/runtime/tutor/csdpmi4b.zip Binary files differnew file mode 100755 index 0000000000..211396fae1 --- /dev/null +++ b/runtime/tutor/csdpmi4b.zip diff --git a/runtime/tutor/runtime/bugreport.vim b/runtime/tutor/runtime/bugreport.vim new file mode 100644 index 0000000000..f0c045e6c3 --- /dev/null +++ b/runtime/tutor/runtime/bugreport.vim @@ -0,0 +1,88 @@ +:" Use this script to create the file "bugreport.txt", which contains +:" information about the environment of a possible bug in Vim. +:" +:" Maintainer: Bram Moolenaar <Bram@vim.org> +:" Last change: 2005 Jun 12 +:" +:" To use inside Vim: +:" :so $VIMRUNTIME/bugreport.vim +:" Or, from the command line: +:" vim -s $VIMRUNTIME/bugreport.vim +:" +:" The "if 1" lines are to avoid error messages when expression evaluation is +:" not compiled in. +:" +:if 1 +: let more_save = &more +:endif +:set nomore +:if has("unix") +: !echo "uname -a" >bugreport.txt +: !uname -a >>bugreport.txt +:endif +:redir >>bugreport.txt +:version +:if 1 +: func <SID>CheckDir(n) +: if isdirectory(a:n) +: echo 'directory "' . a:n . '" exists' +: else +: echo 'directory "' . a:n . '" does NOT exist' +: endif +: endfun +: func <SID>CheckFile(n) +: if filereadable(a:n) +: echo '"' . a:n . '" is readable' +: else +: echo '"' . a:n . '" is NOT readable' +: endif +: endfun +: echo "--- Directories and Files ---" +: echo '$VIM = "' . $VIM . '"' +: call <SID>CheckDir($VIM) +: echo '$VIMRUNTIME = "' . $VIMRUNTIME . '"' +: call <SID>CheckDir($VIMRUNTIME) +: call <SID>CheckFile(&helpfile) +: call <SID>CheckFile(fnamemodify(&helpfile, ":h") . "/tags") +: call <SID>CheckFile($VIMRUNTIME . "/menu.vim") +: call <SID>CheckFile($VIMRUNTIME . "/filetype.vim") +: call <SID>CheckFile($VIMRUNTIME . "/syntax/synload.vim") +: delfun <SID>CheckDir +: delfun <SID>CheckFile +: echo "--- Scripts sourced ---" +: scriptnames +:endif +:set all +:set termcap +:if has("autocmd") +: au +:endif +:if 1 +: echo "--- Normal/Visual mode mappings ---" +:endif +:map +:if 1 +: echo "--- Insert/Command-line mode mappings ---" +:endif +:map! +:if 1 +: echo "--- Abbreviations ---" +:endif +:ab +:if 1 +: echo "--- Highlighting ---" +:endif +:highlight +:if 1 +: echo "--- Variables ---" +:endif +:if 1 +: let +:endif +:redir END +:set more& +:if 1 +: let &more = more_save +: unlet more_save +:endif +:e bugreport.txt diff --git a/runtime/tutor/runtime/hi22-action-make.png b/runtime/tutor/runtime/hi22-action-make.png Binary files differnew file mode 100644 index 0000000000..f9abb77968 --- /dev/null +++ b/runtime/tutor/runtime/hi22-action-make.png diff --git a/runtime/tutor/runtime/indoff.vim b/runtime/tutor/runtime/indoff.vim new file mode 100644 index 0000000000..0d930352bb --- /dev/null +++ b/runtime/tutor/runtime/indoff.vim @@ -0,0 +1,11 @@ +" Vim support file to switch off loading indent files for file types +" +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last Change: 2001 Jun 11 + +if exists("did_indent_on") + unlet did_indent_on +endif + +" Remove all autocommands in the filetypeindent group +silent! au! filetypeindent * diff --git a/runtime/tutor/runtime/mswin.vim b/runtime/tutor/runtime/mswin.vim new file mode 100644 index 0000000000..1ceef847e9 --- /dev/null +++ b/runtime/tutor/runtime/mswin.vim @@ -0,0 +1,106 @@ +" Set options and add mapping such that Vim behaves a lot like MS-Windows +" +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last change: 2006 Apr 02 + +" bail out if this isn't wanted (mrsvim.vim uses this). +if exists("g:skip_loading_mswin") && g:skip_loading_mswin + finish +endif + +" set the 'cpoptions' to its Vim default +if 1 " only do this when compiled with expression evaluation + let s:save_cpo = &cpoptions +endif +set cpo&vim + +" set 'selection', 'selectmode', 'mousemodel' and 'keymodel' for MS-Windows +behave mswin + +" backspace and cursor keys wrap to previous/next line +set backspace=indent,eol,start whichwrap+=<,>,[,] + +" backspace in Visual mode deletes selection +vnoremap <BS> d + +" CTRL-X and SHIFT-Del are Cut +vnoremap <C-X> "+x +vnoremap <S-Del> "+x + +" CTRL-C and CTRL-Insert are Copy +vnoremap <C-C> "+y +vnoremap <C-Insert> "+y + +" CTRL-V and SHIFT-Insert are Paste +map <C-V> "+gP +map <S-Insert> "+gP + +cmap <C-V> <C-R>+ +cmap <S-Insert> <C-R>+ + +" Pasting blockwise and linewise selections is not possible in Insert and +" Visual mode without the +virtualedit feature. They are pasted as if they +" were characterwise instead. +" Uses the paste.vim autoload script. + +exe 'inoremap <script> <C-V>' paste#paste_cmd['i'] +exe 'vnoremap <script> <C-V>' paste#paste_cmd['v'] + +imap <S-Insert> <C-V> +vmap <S-Insert> <C-V> + +" Use CTRL-Q to do what CTRL-V used to do +noremap <C-Q> <C-V> + +" Use CTRL-S for saving, also in Insert mode +noremap <C-S> :update<CR> +vnoremap <C-S> <C-C>:update<CR> +inoremap <C-S> <C-O>:update<CR> + +" For CTRL-V to work autoselect must be off. +" On Unix we have two selections, autoselect can be used. +if !has("unix") + set guioptions-=a +endif + +" CTRL-Z is Undo; not in cmdline though +noremap <C-Z> u +inoremap <C-Z> <C-O>u + +" CTRL-Y is Redo (although not repeat); not in cmdline though +noremap <C-Y> <C-R> +inoremap <C-Y> <C-O><C-R> + +" Alt-Space is System menu +if has("gui") + noremap <M-Space> :simalt ~<CR> + inoremap <M-Space> <C-O>:simalt ~<CR> + cnoremap <M-Space> <C-C>:simalt ~<CR> +endif + +" CTRL-A is Select all +noremap <C-A> gggH<C-O>G +inoremap <C-A> <C-O>gg<C-O>gH<C-O>G +cnoremap <C-A> <C-C>gggH<C-O>G +onoremap <C-A> <C-C>gggH<C-O>G +snoremap <C-A> <C-C>gggH<C-O>G +xnoremap <C-A> <C-C>ggVG + +" CTRL-Tab is Next window +noremap <C-Tab> <C-W>w +inoremap <C-Tab> <C-O><C-W>w +cnoremap <C-Tab> <C-C><C-W>w +onoremap <C-Tab> <C-C><C-W>w + +" CTRL-F4 is Close window +noremap <C-F4> <C-W>c +inoremap <C-F4> <C-O><C-W>c +cnoremap <C-F4> <C-C><C-W>c +onoremap <C-F4> <C-C><C-W>c + +" restore 'cpoptions' +set cpo& +if 1 + let &cpoptions = s:save_cpo + unlet s:save_cpo +endif diff --git a/runtime/tutor/runtime/termcap b/runtime/tutor/runtime/termcap new file mode 100644 index 0000000000..38790c49d1 --- /dev/null +++ b/runtime/tutor/runtime/termcap @@ -0,0 +1,135 @@ +# +# Demonstration of a termcap file (for the Amiga and Archimedes) +# +# Maintainer: Bram Moolenaar <Bram@vim.org> +# Last change: 1999 Feb 02 +# +sx|ansi|any ansi terminal with pessimistic assumptions:\ + :co#80:li#24:cl=50\E[;H\E[2J:bs:am:cm=\E[%i%d;%dH:\ + :nd=\E[C:up=\E[A:ce=\E[K:ho=\E[H:pt: + +Mu|sun|Sun Microsystems Workstation console:\ + :am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\ + :ce=\E[K:cd=\E[J:\ + :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:rs=\E[s:\ + :md=\E[1m:mr=\E[7m:me=\E[m:\ + :al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\ + :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\ + :up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\ + :k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\ + :k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z: + +M-|sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character:\ + :ic@:im@:ei@:tc=sun: +Mu|sun-s|Sun Microsystems Workstation window with status line:\ + :hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun: +Mu|sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs:\ + :hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun-e: +M0|sun-48|Sun 48-line window:\ + :li#48:co#80:tc=sun: +M1|sun-34|Sun 34-line window:\ + :li#34:co#80:tc=sun: +M2|sun-24|Sun 24-line window:\ + :li#24:co#80:tc=sun: +M3|sun-17|Sun 17-line window:\ + :li#17:co#80:tc=sun: + +v9|925a|tvi925a|TeleVideo Model 925:\ + :al=\EE:am:bs:bt=\EI:bw:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :co#80:dc=\EW:\ + :dl=\ER:do=^V:ei=:ic=\EQ:if=/usr/share/lib/tabset/std:im=:kb=^H:kd=^V:\ + :kh=^^:kl=^H:kn#12:kr=^L:ku=^K:li#24:nd=^L:pt:se=\EG0:sg#1:so=\EG4:\ + :ue=\EG0:ug#1:ul:up=^K:us=\EG8:is=\El\ + :vb=\Eb\200\200\200\200\200\200\200\200\200\200\200\200\200\200\Ed:\ + :ve=\E.4:vs=\E.2: + +d0|vt100|vt100-am|vt100am|dec vt100:\ + :do=^J:co#80:li#24:cl=50\E[;H\E[2J:sf=5\ED:\ + :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\ + :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\ + :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\ + :rf=/usr/share/lib/tabset/vt100:\ + :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\ + :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\ + :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:xn:\ + :sc=\E7:rc=\E8:cs=\E[%i%d;%dr: + +# Amiga termcap by Bram Moolenaar +AA|amiga|Amiga ANSI:\ + :co#80:li#25:am:do=\E[B:ce=\E[K:cd=\E[J:\ + :cl=\014:ku=\233A:kd=\233B:kl=\233D:kr=\233C:kb=^H:\ + :#4=\233 A:%i=\233 @:%1=\233?~:\ + :k1=\2330~:k2=\2331~:k |