diff -cNr vim-3.0.orig/.exrc vim-3.0/.exrc
*** vim-3.0.orig/.exrc	Wed Dec 31 19:00:00 1969
--- vim-3.0/.exrc	Sun Aug 14 19:11:36 1994
***************
*** 0 ****
--- 1 ----
+ set ai bs=2 shell=csh nojs ru
diff -cNr vim-3.0.orig/README.debian vim-3.0/README.debian
*** vim-3.0.orig/README.debian	Wed Dec 31 19:00:00 1969
--- vim-3.0/README.debian	Sat Feb 25 14:10:31 1995
***************
*** 0 ****
--- 1,4 ----
+ For this package, you need to cd into the src/ directory to do anything.
+ 
+ 	-D.J. Gregor
+ 	dgregor@bronze.coil.com
diff -cNr vim-3.0.orig/doc/vim.1 vim-3.0/doc/vim.1
*** vim-3.0.orig/doc/vim.1	Fri Aug 12 14:10:30 1994
--- vim-3.0/doc/vim.1	Wed Dec 31 19:00:00 1969
***************
*** 1,162 ****
- .TH VIM 1 "1994 August 12"
- .SH NAME
- vim \- Vi IMproved, a programmers text editor
- .SH SYNOPSIS
- .B vim
- [options] [file ..]
- .br
- .B vim
- [options] \-t tag
- .br
- .B vim
- [options] \-e [errorfile]
- .SH DESCRIPTION
- .B Vim
- is a text editor that is upwards compatible to vi. It can be used to edit any 
- ASCII text. It is especially useful for editing programs.
- .PP
- There are a lot of enhancements above vi: multi level undo,
- multi windows and buffers, command line 
- editing, filename completion, on-line help, visual selection, etc..
- Read difference.doc 
- for a summary of the differences between vi and Vim.
- .PP
- Most often
- .B Vim
- is started to edit a single file with the command
- .PP
- 	vim file
- .PP
- More generally VIM is started with:
- .PP
- 	vim [options] [filelist]
- .PP
- If the filelist is missing, the editor will start with an empty buffer.
- Otherwise exactly one out of the following three may be used to choose one or
- more files to be edited.
- .TP 12
- file ..
- A list of file names. The first one (alphabetically) will be
- the current file and read into the buffer. The cursor will be
- positioned on the first line of the buffer. You can get to the other files
- with the ":next" command.
- .TP
- -t {tag}
- The file to edit and the initial cursor position depends on a "tag", a sort 
- of goto label. {tag} is looked up in the tags file, the associated file 
- becomes the current file and the associated command is executed. Mostly this 
- is used for C programs. {tag} then should be a function name. The effect is 
- that the file containing that function becomes the current file and the 
- cursor is positioned on the start of the function (see reference.doc, 
- section "tag searches").
- .TP
- -e [errorfile]
- Start in quickFix mode. The file [errorfile]
- is read and the first error is displayed. If [errorfile] is omitted the file
- name is obtained from the 'errorfile' option (defaults to "AztecC.Err" for
- the Amiga, "errors" on other systems). Further errors can be jumped to 
- with the ":cn" command. See reference.doc section 5.5.
- .SH OPTIONS
- The options, if present, must precede the filelist. The options may be given 
- in any order.
- .TP 12
- -r
- Recovery mode. The swap file is used to recover a crashed editing session. The
- swap file is a file with the same file name as the text file with ".swp"
- appended. See reference.doc, chapter "Recovery after a crash".
- .TP
- -v
- View mode. The 'readonly' option will be set. You can still 
- edit the buffer, but will be prevented from accidently 
- overwriting a file. If you do want to overwrite a file, add 
- an exclamation mark to the Ex command, as in ":w!".
- The -v option also implies the -n option (see below).
- The 'readonly' option can be reset with ":set noro" (see reference.doc, 
- options chapter).
- .TP
- -b
- Binary. A few options will be set that makes it possible to edit a binary or
- executable file.
- .TP
- +[num]
- For the first file the cursor will be positioned on line
- "num". If "num" is missing, the cursor will be positioned on
- the last line.
- .TP
- +/pat
- For the first file the cursor will be positioned on the
- first occurrence of "pat" (see reference.doc, 
- section "pattern searches" for the available search 
- patterns).
- .TP
- +{command}
- .TP
- -c {command}
- {command} will be executed after the 
- first file has been read. {command} is interpreted as an Ex 
- command. If the {command} contains spaces it must 
- be enclosed in double quotes (this depends on the shell that 
- is used).
- Example: Vim "+set si" main.c
- .TP
- -x
- (Amiga only) Vim is not restarted to open a new window. This option should 
- be used when Vim is executed by a program that will wait for the edit 
- session to finish (e.g. mail). The ":sh" and ":!" commands will not work.
- .TP
- -o[N]
- Open N windows. When N is omitted, open one window for each file.
- .TP
- -n
- No swap file will be used. Recovery after a crash 
- will be impossible. Handy if you want to edit a file on a 
- very slow medium (e.g. floppy). Can also be done with ":set 
- uc=0". Can be undone with ":set uc=200".
- .TP
- -s {scriptin}
- The script file {scriptin} is read. The characters in the 
- file are interpreted as if you had typed them. The same can 
- be done with the command ":source! {scriptin}". If the end 
- of the file is reached before the editor exits, further 
- characters are read from the keyboard.
- .TP
- -w {scriptout}
- All the characters that you type are recorded in the file
- {scriptout}, until you exit VIM. This is useful if you want 
- to create a script file to be used with "vim -s" or 
- ":source!".
- .TP
- -T terminal
- Tells Vim the name of the terminal you are using. Should be a terminal known 
- to Vim (builtin) or defined in the termcap file.
- .TP
- -d device
- Open "device" for use as a terminal. Only on the Amiga. Example:
- "\-d con:20/30/600/150".
- .SH SEE ALSO
- Vim documentation:
- .TP 12
- reference.doc:
- A complete reference of Vim (long)
- .TP
- windows.doc:
- Explanation of the multi windows and buffers commands and options
- .TP
- index:
- Overview of all command characters (useful when adding new mappings)
- .TP
- difference.doc:
- Overview of the differences between vi and Vim
- .TP
- unix.doc:
- Unix-specific comments
- .TP
- vim.hlp:
- File used by the on-line help (short)
- .SH AUTHOR
- Most of VIM was made by Bram Moolenaar.
- .br
- VIM is based on Stevie, worked on by: Tim Thompson,
- Tony Andrews and G.R. (Fred) Walter
- .SH BUGS
- Probably.
--- 0 ----
diff -cNr vim-3.0.orig/docfiles vim-3.0/docfiles
*** vim-3.0.orig/docfiles	Wed Dec 31 19:00:00 1969
--- vim-3.0/docfiles	Sat Feb 25 14:25:23 1995
***************
*** 0 ****
--- 1,6 ----
+ /usr/doc/vim/reference.doc
+ /usr/doc/vim/windows.doc
+ /usr/doc/vim/index
+ /usr/doc/vim/difference.doc
+ /usr/doc/vim/unix.doc
+ /usr/doc/vim/vim.hlp
diff -cNr vim-3.0.orig/src/Makefile vim-3.0/src/Makefile
*** vim-3.0.orig/src/Makefile	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/Makefile	Sat Sep 23 14:34:55 1995
***************
*** 0 ****
--- 1,540 ----
+ #
+ # Makefile for Vim on Unix
+ #
+ 
+ # Note: You MUST uncomment three hardware dependend lines!
+ 
+ # There are three types of defines:
+ #
+ # 1. configuration dependend
+ #	Used for "make install". Adjust the path names and protections
+ #	to your desire. Also defines the root for the X11 files (not required).
+ #
+ # 2. various choices
+ #	Can be changed to match your compiler or your preferences (not
+ #	required).
+ #
+ # 3. hardware dependend
+ #	If you machine is in the list, remove one '#' in front of the defines
+ #	following it. Otherwise: Find a machine that is similar and change the
+ #	defines to make it work. Normally you can just try and see what error
+ #	messages you get. (REQUIRED).
+ 
+ # The following systems have entries below. They have been tested and should
+ # work without modification. But later code changes may cause small problems.
+ # There are entries for other systems, but these have not been tested recently.
+ 
+ #system:		tested configurations:		tested by:
+ 
+ #Sun 4.1.x		cc	gcc	X11	no X11	(jw) (mool)
+ #FreeBSD		cc	gcc	X11	no X11	(mool)
+ #linux 1.0		cc		X11
+ #Linux 1.0.9			gcc		no X11	(jw)
+ #ULTRIX 4.2A on MIPS	cc	gcc		no X11	(mool)
+ #HPUX			cc	gcc	X11	no X11	(jw) (mool)
+ #irix 4.0.5H		cc		X11
+ #IRIX 4.0  SGI		cc		X11		(jw)
+ #SINIX-L 5.41		cc			no X11
+ #MOT188			cc			no X11
+ #Sequent/ptx 1.3	cc			no X11	(jw)
+ #osf1			cc			no X11	(jw)
+ #Unisys 6035		cc			no X11
+ #SCO 3.2		cc	gcc		no X11	jos@oce.nl
+ #Solaris		cc		X11
+ #Solaris/Sun OS 5.3	cc			no X11	(jw)
+ #AIX (rs6000)		cc			no X11	(jw)
+ #RISCos on MIPS		cc		X11	no X11	(jw)
+ 
+ # configurations marked by (jw) have been tested by Juergen Weigert:
+ #    jnweiger@uni-erlangen.de
+ 
+ #
+ # PART 1: configuration dependend
+ #
+ 
+ ### root directory for X11 files (unless overruled in hardware-dependend part)
+ ### Unfortunately there is no standard for these, everybody puts them
+ ### somewhere else
+ #X11LIBDIR = /usr/openwin/lib
+ #X11INCDIR = /usr/openwin/include
+ ### for some hpux systems:
+ #X11LIBDIR = /usr/lib/X11R5
+ #X11INCDIR = /usr/include/X11R5
+ 
+ ### Prefix for location of files
+ prefix = /usr
+ 
+ ### Location of binary
+ BINLOC = $(prefix)/bin
+ 
+ ### Name of target
+ TARGET = vim
+ 
+ ### Location of man page
+ MANLOC = $(prefix)/man/man1
+ 
+ ### Location of help file
+ HELPLOC = $(prefix)/doc/vim
+ 
+ ### Location from ``.'' of the doc directory
+ DOCDIR = ../doc
+ 
+ ### Program to run on installed binary
+ STRIP = strip
+ 
+ ### Permissions for directories
+ DIRMOD = 755
+ 
+ ### Permissions for vim binary
+ BINMOD = 755
+ 
+ ### Permissions for man page
+ MANMOD = 644
+ 
+ ### Permissions for help file
+ HELPMOD = 644
+ 
+ MANFILE = vim.1
+ 
+ HELPFILE = ../doc/vim.hlp
+ 
+ #
+ # PART 2: various choices
+ #
+ 
+ ### -DDIGRAPHS		digraph support
+ ### -DNO_FREE_NULL	do not call free() with a null pointer
+ ### -DCOMPATIBLE	start in vi-compatible mode
+ ### -DNOBACKUP		default is no backup file
+ ### -DDEBUG		output a lot of debugging garbage
+ ### -DSTRNCASECMP	use strncasecmp() instead of internal function
+ ### -DUSE_LOCALE	use setlocale() to change ctype() and others
+ ### -DTERMCAP		full termcap/terminfo file support
+ ### -DTERMINFO		use terminfo instead of termcap entries for builtin terms
+ ### -DNO_BUILTIN_TCAPS	do not include builtin termcap entries
+ ###				(use only with -DTERMCAP)
+ ### -DSOME_BUILTIN_TCAPS include most useful builtin termcap entries
+ ###				(use only without -DNO_BUILTIN_TCAPS)
+ ### -DALL_BUILTIN_TCAPS	include all builtin termcap entries
+ ###				(use only without -DNO_BUILTIN_TCAPS)
+ ### -DMAXNAMLEN 31	maximum length of a file name (if not defined in sys/dir.h)
+ ### -Dconst=		for compilers that don't have type const
+ ### -DVIMRC_FILE=name		name of the .vimrc file in current dir
+ ### -DEXRC_FILE=name		name of the .exrc file in current dir
+ ### -DSYSVIMRC_FILE=name	name of the global .vimrc file
+ ### -DSYSEXRC_FILE=name		name of the global .exrc file
+ ### -DDEFVIMRC_FILE=name	name of the system-wide .vimrc file
+ ### -DVIM_HLP=name		name of the help file
+ ### -DUSE_SYSTEM	use system() instead of fork/exec for starting a shell
+ ### -DVIM_ISSPACE	use when isspace() can't handle meta chars
+ ### -DNOLIMITS		limits.h does not exist
+ ### -DNOSTDLIB		stdlib.h does not exist
+ ### -DUSE_X11		include code for xterm title saving
+ ### -DWEBB_COMPLETE	include Webb's code for command line completion
+ ### -DWEBB_KEYWORD_COMPL include Webb's code for keyword completion
+ ### -DNOTITLE		'title' option off by default
+ 
+ 
+ #DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
+ #		-DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
+ #		-DVIM_HLP=\"$(HELPLOC)/vim.hlp\"
+ 
+ DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
+ 		-DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL -DNOTITLE\
+ 		-DVIM_HLP=\"$(HELPLOC)/vim.hlp\"
+ 
+ #
+ # PART 3: hardware dependend
+ #
+ 
+ ### CC entry:      name and arguments for the compiler (also for linking)
+ ### MACHINE entry: defines used for compiling (not for linking)
+ ### LIBS:          defines used for linking
+ 
+ # Defines for Debian GNU/Linux
+ MACHINE = -DBSD_UNIX
+ CC=gcc -O2 -Wall -Dlinux
+ LIBS = -ltermcap
+ 
+ # generic for Sun, NeXT, POSIX and SYSV R4 (?) (TESTED for Sun 4.1.x)
+ # standard cc with optimizer
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=cc -O -I$(X11INCDIR)
+ #LIBS = -ltermlib -L$(X11LIBDIR) -lX11
+ 
+ # generic for Sun, FreeBSD, NetBSD, NeXT, POSIX and SYSV R4 (?) without x11 code
+ #	(TESTED for Sun 4.1.x and FreeBSD)
+ # standard cc with optimizer
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE
+ #CC=cc -O2
+ #LIBS = -ltermlib
+ 
+ # FreeBSD and NetBSD with Xfree (TESTED for FreeBSD)
+ # standard cc with optimizer
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=cc -O -L/usr/X386/lib -I/usr/X386/include
+ #LIBS = -ltermlib -lX11
+ 
+ # FreeBSD and NetBSD with Xfree (TESTED for FreeBSD)
+ # gcc with optimizer
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=gcc -O -Wall -traditional -Dconst= -I/usr/X386/include
+ #LIBS = -ltermlib -L/usr/X386/lib -lX11
+ 
+ # like generic, but with termcap, for Linux, NeXT and others (NOT TESTED YET)
+ # standard cc with optimizer
+ #
+ #MACHINE = -DBSD_UNIX
+ #CC=cc -O
+ #LIBS = -ltermcap
+ 
+ # linux 1.0 with X11 (TESTED)
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=cc -O -I/usr/X11/include
+ #LIBS = -ltermcap -L/usr/X11/lib -lX11
+ 
+ # like generic, but with debugging (NOT TESTED YET)
+ #
+ #MACHINE = -DBSD_UNIX -g
+ #CC=cc
+ #LIBS = -ltermlib
+ 
+ # like generic, but with gcc and X11 (TESTED on Sun 4.1.x)
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=gcc -O -Wall -traditional -Dconst= -L$(X11LIBDIR) -I$(X11INCDIR)
+ #LIBS = -ltermlib -lX11
+ 
+ # like generic, but with gcc, without X11 (TESTED on ULTRIX 4.2A on MIPS)
+ #
+ #MACHINE = -DBSD_UNIX
+ #CC=gcc -O2 -Wall -Dconst= -Dlinux -DUSE_X11 -I/usr/X11R6/include -L/usr/X11R6/lib
+ #LIBS = -ltermcap -lX11
+ 
+ # like generic, but with gcc 2.5.8 (TESTED on Sun 4.1.3_U1)
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE
+ #CC=gcc -O1000
+ #LIBS = -ltermlib
+ 
+ # standard cc with optimizer for ULTRIX 4.2A on MIPS (ultrix defined) (TESTED)
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE
+ #CC=cc -O -Olimit 1500
+ #LIBS = -ltermlib
+ 
+ # GCC (2.2.2d) on Linux (1.0.9) (TESTED)
+ #
+ #MACHINE = -DBSD_UNIX
+ #CC=gcc -O6 -Wall
+ #LIBS = -ltermcap
+ 
+ # Apollo DOMAIN (with SYSTYPE = bsd4.3) (NOT TESTED YET)
+ #
+ #MACHINE = -DBSD_UNIX -DDOMAIN
+ #CC=cc -O -A systype,bsd4.3
+ #LIBS = -ltermlib
+ 
+ # HPUX with X11 (TESTED) (hpux is defined)
+ #
+ #MACHINE = -DBSD_UNIX -DTERMINFO -DUSE_X11
+ #CC=cc -O -I$(X11INCDIR)
+ #LIBS = -ltermcap -L$(X11LIBDIR) -lX11
+ 
+ # HPUX (TESTED) (hpux is defined)
+ #
+ #MACHINE = -DBSD_UNIX -DTERMINFO
+ #CC=cc -O
+ #LIBS = -ltermcap
+ 
+ # HPUX with gcc (TESTED) (hpux is defined)
+ #
+ #MACHINE = -DBSD_UNIX -DTERMINFO
+ #CC=gcc -O
+ #LIBS = -ltermcap
+ 
+ # hpux 9.01 (with termlib instead of termcap) (TESTED)
+ # irix 4.0.5H (TESTED)
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=cc -O -I$(X11INCDIR)
+ #LIBS = -ltermlib -L$(X11LIBDIR) -lX11
+ 
+ # IRIX 4.0 (Silicon Graphics Indigo, __sgi will be defined) (TESTED)
+ #
+ #MACHINE = -DBSD_UNIX -DUSE_X11                         
+ #CC=cc -O -Olimit 1500
+ #LIBS = -ltermlib -lX11 -lmalloc -lc_s
+ 
+ # Convex (NOT TESTED YET)
+ #
+ #MACHINE = -DBSD_UNIX -DCONVEX
+ #CC=cc -O
+ #LIBS = -ltermcap
+ 
+ # generic SYSV_UNIX for Dynix/PTX and SYSV R3 (and R4?) (TESTED on SINIX-L 5.41)
+ # (TESTED on MOT188) (TESTED on Sequent/ptx 1.3) (TESTED on osf1)
+ # First try the line with locale. If this gives error messages try the other one.
+ #
+ #MACHINE = -DSYSV_UNIX -DUSE_LOCALE
+ #MACHINE = -DSYSV_UNIX
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # generic SYSV_UNIX with LOCALE (TESTED on Unisys 6035)
+ #
+ #MACHINE = -DSYSV_UNIX -DUSE_LOCALE -DUNISYS
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # SCO Xenix (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX -DSCO
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # GCC on SCO 3.2 (TESTED by jos@oce.nl)
+ # cc works too.
+ #
+ #MACHINE = -DSYSV_UNIX -UM_XENIX -DSCO
+ #CC=gcc -O -Wall
+ #LIBS = -ltinfo
+ 
+ # GCC on another SCO Unix (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX -UM_XENIX -DSCO -g
+ #CC=gcc -O6 -fpcc-struct-return -fwritable-strings
+ #LIBS = -ltermlib -lmalloc
+ 
+ # Dynix with gcc (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX
+ #CC=gcc -O -Wall -traditional
+ #LIBS = -ltermlib
+ 
+ # SOLARIS with X11 anc cc (TESTED)
+ #
+ #MACHINE = -DSYSV_UNIX -DSOLARIS -DTERMINFO -DUSE_X11
+ #CC=cc -O -Xa -v -R$(X11LIBDIR) -L$(X11LIBDIR) -I$(X11INCDIR)
+ #LIBS = -ltermlib -lX11
+ 
+ # SOLARIS with X11 and gcc (TESTED with SOLARIS 2.3 and gcc 2.5.8)
+ #
+ #MACHINE = -DSYSV_UNIX -DSOLARIS -DTERMINFO -DUSE_X11
+ #CC=gcc -O -R$(X11LIBDIR) -L$(X11LIBDIR) -I$(X11INCDIR)
+ #LIBS = -ltermlib -lX11
+ 
+ # SOLARIS (also works for Esix 4.0.3, SYSV R4?) (TESTED on Sun OS 5.3)
+ #
+ #MACHINE = -DSYSV_UNIX -DSOLARIS -DTERMINFO
+ #CC=cc -O -Xa -v
+ #LIBS = -ltermlib
+ 
+ # UNICOS (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX -DUNICOS
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # AIX (rs6000) (TESTED)
+ #
+ #MACHINE = -DSYSV_UNIX -DAIX
+ #CC=cc -O
+ #LIBS=-lcur
+ 
+ # UTS2 for Amdahl UTS 2.1.x (disable termcap below) (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX -DUTS2
+ #CC=cc -O
+ #LIBS = -ltermlib -lsocket
+ 
+ # UTS4 for Amdahl UTS 4.x (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX -DUTS4 -Xa
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # USL for Unix Systems Laboratories (SYSV 4.2) (NOT TESTED YET)
+ #
+ #MACHINE = -DSYSV_UNIX -DUSL
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # RISCos on MIPS without X11 (TESTED)
+ #
+ #MACHINE = -DSYSV_UNIX -DMIPS
+ #CC=cc -O
+ #LIBS = -ltermlib
+ 
+ # RISCos on MIPS with X11 (TESTED)
+ #
+ #MACHINE=-DSYSV_UNIX -DUSE_LOCALE -DUSE_X11
+ #CC=cc -O -I$(X11INCDIR)
+ #LIBS=-ltermlib -L$(X11LIBDIR) -lX11 -lsun
+ 
+ ################################################
+ ##   no changes required below this line      ##
+ ################################################
+ 
+ CFLAGS = -c $(MACHINE) $(DEFS)
+ 
+ INCL = vim.h globals.h param.h keymap.h macros.h ascii.h term.h unix.h structs.h proto.h
+ 
+ OBJ =	alloc.o unix.o buffer.o charset.o cmdcmds.o cmdline.o \
+ 	csearch.o digraph.o edit.o fileio.o getchar.o help.o \
+ 	linefunc.o main.o mark.o memfile.o memline.o message.o misccmds.o \
+ 	normal.o ops.o param.o quickfix.o regexp.o \
+ 	regsub.o screen.o search.o \
+ 	tag.o term.o undo.o window.o $(TERMLIB)
+ 
+ $(TARGET): $(OBJ) version.c
+ 	$(CC) $(CFLAGS) version.c
+ #	$(CC) -o $(TARGET) $(OBJ) version.o $(LIBS)
+ 	$(CC) -o $(TARGET) $(OBJ) version.o -ltermcap /usr/X11R6/lib/libX11.a
+ 	$(STRIP) $(TARGET)
+ 
+ debug: $(OBJ) version.c
+ 	$(CC) $(CFLAGS) version.c
+ 	$(CC) -o $(TARGET) -g $(OBJ) version.o $(LIBS)
+ 
+ ctags:
+ 	ctags *.c *.h
+ 
+ install: $(TARGET)
+ 	install -d -g root -m $(DIRMOD) -o root $(BINLOC)
+ 	install -g root -m $(BINMOD) -o root $(TARGET) $(BINLOC)
+ 	install -d -g root -m $(DIRMOD) -o root $(MANLOC)
+ 	install -g root -m $(MANMOD) -o root $(MANFILE) $(MANLOC)
+ 	install -d -g root -m $(DIRMOD) -o root $(HELPLOC)
+ 	install -g root -m $(HELPMOD) -o root $(HELPFILE) $(HELPLOC)
+ 	install -g root -m $(HELPMOD) -o root $(DOCDIR)/* $(HELPLOC)
+ 
+ distclean: clean
+ 
+ clean:
+ 	-rm -f $(OBJ) mkcmdtab.o version.o core $(TARGET) mkcmdtab cmdtab.h
+ 	-rm -f *.bak
+ 
+ #use this in case the files have been transported via an MSDOS system
+ 
+ FILES = *.c *.h makefile makefile.* cmdtab.tab proto/*.pro tags
+ 
+ dos2unix:
+ 	-mv arp_prot.h arp_proto.h
+ 	-mv ptx_stdl.h ptx_stdlib.h
+ 	-mv sun_stdl.h sun_stdlib.h
+ 	-mv makefile.dic makefile.dice
+ 	-mv makefile.uni makefile.unix
+ 	-mv makefile.man makefile.manx
+ 	-mv makefile.6sa makefile.6sas
+ 	-mv makefile.5sa makefile.5sas
+ 	for i in $(FILES); do tr -d '\r\032' < $$i > ~tmp~; mv ~tmp~ $$i; echo $$i; done
+ 
+ ###########################################################################
+ 
+ alloc.o:	alloc.c  $(INCL)
+ 	$(CC) $(CFLAGS) alloc.c
+ 
+ unix.o:	unix.c  $(INCL)
+ 	$(CC) $(CFLAGS) unix.c
+ 
+ buffer.o:	buffer.c  $(INCL)
+ 	$(CC) $(CFLAGS) buffer.c
+ 
+ charset.o:	charset.c  $(INCL)
+ 	$(CC) $(CFLAGS) charset.c
+ 
+ cmdcmds.o:	cmdcmds.c  $(INCL)
+ 	$(CC) $(CFLAGS) cmdcmds.c
+ 
+ cmdline.o:	cmdline.c  $(INCL) cmdtab.h ops.h
+ 	$(CC) $(CFLAGS) cmdline.c
+ 
+ csearch.o:	csearch.c  $(INCL)
+ 	$(CC) $(CFLAGS) csearch.c
+ 
+ digraph.o:	digraph.c  $(INCL)
+ 	$(CC) $(CFLAGS) digraph.c
+ 
+ edit.o:	edit.c  $(INCL) ops.h
+ 	$(CC) $(CFLAGS) edit.c
+ 
+ fileio.o:	fileio.c  $(INCL)
+ 	$(CC) $(CFLAGS) fileio.c
+ 
+ getchar.o:	getchar.c  $(INCL)
+ 	$(CC) $(CFLAGS) getchar.c
+ 
+ help.o:	help.c  $(INCL)
+ 	$(CC) $(CFLAGS) help.c
+ 
+ linefunc.o:	linefunc.c  $(INCL)
+ 	$(CC) $(CFLAGS) linefunc.c
+ 
+ main.o:	main.c  $(INCL)
+ 	$(CC) $(CFLAGS) main.c
+ 
+ mark.o:	mark.c  $(INCL)
+ 	$(CC) $(CFLAGS) mark.c
+ 
+ memfile.o:	memfile.c  $(INCL)
+ 	$(CC) $(CFLAGS) memfile.c
+ 
+ memline.o:	memline.c  $(INCL)
+ 	$(CC) $(CFLAGS) memline.c
+ 
+ message.o:	message.c  $(INCL)
+ 	$(CC) $(CFLAGS) message.c
+ 
+ misccmds.o:	misccmds.c  $(INCL)
+ 	$(CC) $(CFLAGS) misccmds.c
+ 
+ normal.o:	normal.c  $(INCL) ops.h
+ 	$(CC) $(CFLAGS) normal.c
+ 
+ ops.o:	ops.c  $(INCL) ops.h
+ 	$(CC) $(CFLAGS) ops.c
+ 
+ param.o:	param.c  $(INCL)
+ 	$(CC) $(CFLAGS) param.c
+ 
+ quickfix.o:	quickfix.c  $(INCL)
+ 	$(CC) $(CFLAGS) quickfix.c
+ 
+ regexp.o:	regexp.c  $(INCL)
+ 	$(CC) $(CFLAGS) regexp.c
+ 
+ regsub.o:	regsub.c  $(INCL)
+ 	$(CC) $(CFLAGS) regsub.c
+ 
+ screen.o:	screen.c  $(INCL)
+ 	$(CC) $(CFLAGS) screen.c
+ 
+ search.o:	search.c  $(INCL) ops.h
+ 	$(CC) $(CFLAGS) search.c
+ 
+ tag.o:	tag.c  $(INCL)
+ 	$(CC) $(CFLAGS) tag.c
+ 
+ term.o:	term.c  $(INCL)
+ 	$(CC) $(CFLAGS) term.c
+ 
+ undo.o:	undo.c  $(INCL)
+ 	$(CC) $(CFLAGS) undo.c
+ 
+ window.o:	window.c  $(INCL)
+ 	$(CC) $(CFLAGS) window.c
+ 
+ cmdtab.h: cmdtab.tab mkcmdtab
+ 	./mkcmdtab cmdtab.tab cmdtab.h
+ 
+ mkcmdtab: mkcmdtab.o
+ 	$(CC) -o mkcmdtab mkcmdtab.o
+ 
+ mkcmdtab.o: mkcmdtab.c
+ 	$(CC) $(CFLAGS) mkcmdtab.c
diff -cNr vim-3.0.orig/src/cmdtab.h vim-3.0/src/cmdtab.h
*** vim-3.0.orig/src/cmdtab.h	Wed Aug 10 00:58:39 1994
--- vim-3.0/src/cmdtab.h	Wed Dec 31 19:00:00 1969
***************
*** 1,337 ****
- /* vi:ts=4
-  *
-  * VIM - Vi IMproved
-  *
-  * Code Contributions By:	Bram Moolenaar			mool@oce.nl
-  *							Tim Thompson			twitch!tjt
-  *							Tony Andrews			onecom!wldrdg!tony 
-  *							G. R. (Fred) Walter		watmath!watcgl!grwalter 
-  */
- 
- /*
-  * THIS FILE IS AUTOMATICALLY PRODUCED - DO NOT EDIT
-  */
- 
- #define RANGE	0x01			/* allow a linespecs */
- #define BANG	0x02			/* allow a ! after the command name */
- #define EXTRA	0x04			/* allow extra args after command name */
- #define XFILE	0x08			/* expand wildcards in extra part */
- #define NOSPC	0x10			/* no spaces allowed in the extra part */
- #define	DFLALL	0x20			/* default file range is 1,$ */
- #define NODFL	0x40			/* do not default to the current file name */
- #define NEEDARG	0x80			/* argument required */
- #define TRLBAR	0x100			/* check for trailing vertical bar */
- #define REGSTR	0x200			/* allow "x for register designation */
- #define COUNT	0x400			/* allow count in argument, after command */
- #define NOTRLCOM 0x800			/* no trailing comment allowed */
- #define ZEROR	0x1000			/* zero line number allowed */
- #define USECTRLV 0x2000			/* do not remove CTRL-V from argument */
- #define NOTADR	0x4000			/* number before command is not an address */
- #define FILES	(XFILE + EXTRA)	/* multiple extra files allowed */
- #define WORD1	(EXTRA + NOSPC)	/* one extra word allowed */
- #define FILE1	(FILES + NOSPC)	/* 1 file allowed, defaults to current file */
- #define NAMEDF	(FILE1 + NODFL)	/* 1 file allowed, defaults to "" */
- #define NAMEDFS	(FILES + NODFL)	/* multiple files allowed, default is "" */
- 
- /*
-  * This array maps ex command names to command codes. The order in which
-  * command names are listed below is significant -- ambiguous abbreviations
-  * are always resolved to be the first possible match (e.g. "r" is taken
-  * to mean "read", not "rewind", because "read" comes before "rewind").
-  * Not supported commands are included to avoid ambiguities.
-  */
- static struct
- {
- 	char_u	*cmd_name;	/* name of the command */
- 	short	 cmd_argt;	/* command line arguments permitted/needed/used */
- } cmdnames[] =
- {
- 	{(char_u *)"append",		BANG+RANGE+TRLBAR},			/* not supported */
- #define CMD_append 0
- 	{(char_u *)"all",			TRLBAR},
- #define CMD_all 1
- 	{(char_u *)"abbreviate",	EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_abbreviate 2
- 	{(char_u *)"args",			RANGE+NOTADR+BANG+NAMEDFS},
- #define CMD_args 3
- 	{(char_u *)"argument",		BANG+RANGE+NOTADR+COUNT+EXTRA},
- #define CMD_argument 4
- 	{(char_u *)"buffer",		RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_buffer 5
- 	{(char_u *)"ball",			TRLBAR},
- #define CMD_ball 6
- 	{(char_u *)"buffers",		TRLBAR},
- #define CMD_buffers 7
- 	{(char_u *)"bdelete",		BANG+RANGE+NOTADR+COUNT+EXTRA+TRLBAR},
- #define CMD_bdelete 8
- 	{(char_u *)"bunload",		BANG+RANGE+NOTADR+COUNT+EXTRA+TRLBAR},
- #define CMD_bunload 9
- 	{(char_u *)"bmodified",		RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_bmodified 10
- 	{(char_u *)"bnext",			RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_bnext 11
- 	{(char_u *)"bNext",			RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_bNext 12
- 	{(char_u *)"bprevious",		RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_bprevious 13
- 	{(char_u *)"brewind",		RANGE+TRLBAR},
- #define CMD_brewind 14
- 	{(char_u *)"blast",			RANGE+TRLBAR},
- #define CMD_blast 15
- 	{(char_u *)"change",		BANG+RANGE+COUNT+TRLBAR},	/* not supported */
- #define CMD_change 16
- 	{(char_u *)"cabbrev",		EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_cabbrev 17
- 	{(char_u *)"cc",			TRLBAR+WORD1+BANG},
- #define CMD_cc 18
- 	{(char_u *)"cd",			NAMEDF+TRLBAR},
- #define CMD_cd 19
- 	{(char_u *)"center",		TRLBAR+RANGE+EXTRA},
- #define CMD_center 20
- 	{(char_u *)"cf",			TRLBAR+FILE1+BANG},
- #define CMD_cf 21
- 	{(char_u *)"chdir",			NAMEDF+TRLBAR},
- #define CMD_chdir 22
- 	{(char_u *)"cl",			TRLBAR},
- #define CMD_cl 23
- 	{(char_u *)"close",			BANG+TRLBAR},
- #define CMD_close 24
- 	{(char_u *)"cmap",			BANG+EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_cmap 25
- 	{(char_u *)"cn",			TRLBAR+WORD1+BANG},
- #define CMD_cn 26
- 	{(char_u *)"cnoremap",		BANG+EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_cnoremap 27
- 	{(char_u *)"cnoreabbrev",	EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_cnoreabbrev 28
- 	{(char_u *)"copy",			RANGE+EXTRA+TRLBAR},
- #define CMD_copy 29
- 	{(char_u *)"cp",			TRLBAR+WORD1+BANG},
- #define CMD_cp 30
- 	{(char_u *)"cq",			TRLBAR+BANG},
- #define CMD_cq 31
- 	{(char_u *)"cunmap",		BANG+EXTRA+TRLBAR+USECTRLV},
- #define CMD_cunmap 32
- 	{(char_u *)"cunabbrev",		EXTRA+TRLBAR+USECTRLV},
- #define CMD_cunabbrev 33
- 	{(char_u *)"delete",		RANGE+REGSTR+COUNT+TRLBAR},
- #define CMD_delete 34
- 	{(char_u *)"display",		TRLBAR},
- #define CMD_display 35
- 	{(char_u *)"digraphs",		EXTRA+TRLBAR},
- #define CMD_digraphs 36
- 	{(char_u *)"edit",			BANG+FILE1},
- #define CMD_edit 37
- 	{(char_u *)"ex",			BANG+FILE1},
- #define CMD_ex 38
- 	{(char_u *)"exit",			BANG+FILE1+DFLALL+TRLBAR},
- #define CMD_exit 39
- 	{(char_u *)"file",			FILE1+TRLBAR},
- #define CMD_file 40
- 	{(char_u *)"files",			TRLBAR},
- #define CMD_files 41
- 	{(char_u *)"global",		RANGE+BANG+EXTRA+DFLALL},
- #define CMD_global 42
- 	{(char_u *)"help",			TRLBAR},
- #define CMD_help 43
- 	{(char_u *)"insert",		BANG+RANGE+TRLBAR},			/* not supported */
- #define CMD_insert 44
- 	{(char_u *)"iabbrev",		EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_iabbrev 45
- 	{(char_u *)"imap",			BANG+EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_imap 46
- 	{(char_u *)"inoremap",		BANG+EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_inoremap 47
- 	{(char_u *)"inoreabbrev",	EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_inoreabbrev 48
- 	{(char_u *)"iunmap",		BANG+EXTRA+TRLBAR+USECTRLV},
- #define CMD_iunmap 49
- 	{(char_u *)"iunabbrev",		EXTRA+TRLBAR+USECTRLV},
- #define CMD_iunabbrev 50
- 	{(char_u *)"join",			RANGE+COUNT+TRLBAR},
- #define CMD_join 51
- 	{(char_u *)"jumps",			TRLBAR},
- #define CMD_jumps 52
- 	{(char_u *)"k",				RANGE+WORD1+TRLBAR},
- #define CMD_k 53
- 	{(char_u *)"list",			RANGE+COUNT+TRLBAR},
- #define CMD_list 54
- 	{(char_u *)"last",			EXTRA+BANG},
- #define CMD_last 55
- 	{(char_u *)"left",			TRLBAR+RANGE+EXTRA},
- #define CMD_left 56
- 	{(char_u *)"move",			RANGE+EXTRA+TRLBAR},
- #define CMD_move 57
- 	{(char_u *)"mark",			RANGE+WORD1+TRLBAR},
- #define CMD_mark 58
- 	{(char_u *)"marks",			TRLBAR},
- #define CMD_marks 59
- 	{(char_u *)"map",			BANG+EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_map 60
- 	{(char_u *)"make",			NEEDARG+EXTRA+TRLBAR+XFILE},
- #define CMD_make 61
- 	{(char_u *)"mkexrc",		BANG+FILE1+TRLBAR},
- #define CMD_mkexrc 62
- 	{(char_u *)"mkvimrc",		BANG+FILE1+TRLBAR},
- #define CMD_mkvimrc 63
- 	{(char_u *)"mfstat",		TRLBAR},				/* for debugging */
- #define CMD_mfstat 64
- 	{(char_u *)"mode",			WORD1+TRLBAR},
- #define CMD_mode 65
- 	{(char_u *)"next",			RANGE+NOTADR+BANG+NAMEDFS},
- #define CMD_next 66
- 	{(char_u *)"new",			BANG+FILE1+RANGE+NOTADR},
- #define CMD_new 67
- 	{(char_u *)"number",		RANGE+COUNT+TRLBAR},
- #define CMD_number 68
- 	{(char_u *)"#",				RANGE+COUNT+TRLBAR},
- #define CMD_pound 69
- 	{(char_u *)"noremap",		BANG+EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_noremap 70
- 	{(char_u *)"noreabbrev",	EXTRA+TRLBAR+NOTRLCOM+USECTRLV},
- #define CMD_noreabbrev 71
- 	{(char_u *)"Next",			EXTRA+RANGE+NOTADR+COUNT+BANG},
- #define CMD_Next 72
- 	{(char_u *)"only",			BANG+TRLBAR},
- #define CMD_only 73
- 	{(char_u *)"print",			RANGE+COUNT+TRLBAR},
- #define CMD_print 74
- 	{(char_u *)"pop",			RANGE+NOTADR+COUNT+TRLBAR+ZEROR},
- #define CMD_pop 75
- 	{(char_u *)"put",			RANGE+BANG+REGSTR+TRLBAR},
- #define CMD_put 76
- 	{(char_u *)"preserve",		TRLBAR},
- #define CMD_preserve 77
- 	{(char_u *)"previous",		EXTRA+RANGE+NOTADR+COUNT+BANG},
- #define CMD_previous 78
- 	{(char_u *)"pwd",			TRLBAR},
- #define CMD_pwd 79
- 	{(char_u *)"quit",			BANG+TRLBAR},
- #define CMD_quit 80
- 	{(char_u *)"qall",			BANG+TRLBAR},
- #define CMD_qall 81
- 	{(char_u *)"read",			RANGE+NAMEDF+TRLBAR+ZEROR},
- #define CMD_read 82
- 	{(char_u *)"rewind",		EXTRA+BANG},
- #define CMD_rewind 83
- 	{(char_u *)"recover",		FILE1+TRLBAR},				/* not supported */
- #define CMD_recover 84
- 	{(char_u *)"redo",			TRLBAR},
- #define CMD_redo 85
- 	{(char_u *)"right",			TRLBAR+RANGE+EXTRA},
- #define CMD_right 86
- 	{(char_u *)"resize",		TRLBAR+WORD1},
- #define CMD_resize 87
- 	{(char_u *)"substitute",	RANGE+EXTRA},
- #define CMD_substitute 88
- 	{(char_u *)"sargument",		BANG+RANGE+NOTADR+COUNT+EXTRA},
- #define CMD_sargument 89
- 	{(char_u *)"sall",			TRLBAR},
- #define CMD_sall 90
- 	{(char_u *)"sbuffer",		RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_sbuffer 91
- 	{(char_u *)"sball",			TRLBAR},
- #define CMD_sball 92
- 	{(char_u *)"sbmodified",	RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_sbmodified 93
- 	{(char_u *)"sbnext",		RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_sbnext 94
- 	{(char_u *)"sbNext",		RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_sbNext 95
- 	{(char_u *)"sbprevious",	RANGE+NOTADR+COUNT+TRLBAR},
- #define CMD_sbprevious 96
- 	{(char_u *)"sbrewind",		TRLBAR},
- #define CMD_sbrewind 97
- 	{(char_u *)"sblast",		TRLBAR},
- #define CMD_sblast 98
- 	{(char_u *)"suspend",		TRLBAR+BANG},
- #define CMD_suspend 99
- 	{(char_u *)"set",			EXTRA+TRLBAR},
- #define CMD_set 100
- 	{(char_u *)"setkeymap",		NAMEDF+TRLBAR},
- #define CMD_setkeymap 101
- 	{(char_u *)"shell",			TRLBAR},
- #define CMD_shell 102
- 	{(char_u *)"sleep",			RANGE+COUNT+NOTADR+TRLBAR},
- #define CMD_sleep 103
- 	{(char_u *)"source",		NAMEDF+NEEDARG+TRLBAR},
- #define CMD_source 104
- 	{(char_u *)"split",			BANG+FILE1+RANGE+NOTADR},
- #define CMD_split 105
- 	{(char_u *)"snext",			RANGE+NOTADR+BANG+NAMEDFS},
- #define CMD_snext 106
- 	{(char_u *)"sNext",			EXTRA+RANGE+NOTADR+COUNT+BANG},
- #define CMD_sNext 107
- 	{(char_u *)"sprevious",		EXTRA+RANGE+NOTADR+COUNT+BANG},
- #define CMD_sprevious 108
- 	{(char_u *)"srewind",		EXTRA+BANG},
- #define CMD_srewind 109
- 	{(char_u *)"slast",			EXTRA+BANG},
- #define CMD_slast 110
- 	{(char_u *)"stop",			TRLBAR+BANG},
- #define CMD_stop 111
- 	{(char_u *)"sunhide",		TRLBAR},
- #define CMD_sunhide 112
- 	{(char_u *)"swapname",		TRLBAR},
- #define CMD_swapname 113
- 	{(char_u *)"t",				RANGE+EXTRA+TRLBAR},
- #define CMD_t 114
- 	{(char_u *)"tag",			RANGE+NOTADR+COUNT+BANG+WORD1+TRLBAR+ZEROR},
- #define CMD_tag 115
- 	{(char_u *)"tags",			TRLBAR},
- #define CMD_tags 116
- 	{(char_u *)"unabbreviate",	EXTRA+TRLBAR+USECTRLV},
- #define CMD_unabbreviate 117
- 	{(char_u *)"undo",			TRLBAR},
- #define CMD_undo 118
- 	{(char_u *)"unhide",		TRLBAR},
- #define CMD_unhide 119
- 	{(char_u *)"unmap",			BANG+EXTRA+TRLBAR+USECTRLV},
- #define CMD_unmap 120
- 	{(char_u *)"vglobal",		RANGE+EXTRA+DFLALL},
- #define CMD_vglobal 121
- 	{(char_u *)"version",		TRLBAR},
- #define CMD_version 122
- 	{(char_u *)"visual",		RANGE+BANG+FILE1},
- #define CMD_visual 123
- 	{(char_u *)"write",			RANGE+BANG+FILE1+DFLALL+TRLBAR},
- #define CMD_write 124
- 	{(char_u *)"wnext",			RANGE+NOTADR+BANG+FILE1+TRLBAR},
- #define CMD_wnext 125
- 	{(char_u *)"wNext",			RANGE+NOTADR+BANG+FILE1+TRLBAR},
- #define CMD_wNext 126
- 	{(char_u *)"wprevious",		RANGE+NOTADR+BANG+FILE1+TRLBAR},
- #define CMD_wprevious 127
- 	{(char_u *)"winsize",		EXTRA+NEEDARG+TRLBAR},
- #define CMD_winsize 128
- 	{(char_u *)"wq",			BANG+FILE1+DFLALL+TRLBAR},
- #define CMD_wq 129
- 	{(char_u *)"wall",			BANG+TRLBAR},
- #define CMD_wall 130
- 	{(char_u *)"wqall",			BANG+FILE1+DFLALL+TRLBAR},
- #define CMD_wqall 131
- 	{(char_u *)"xit",			BANG+FILE1+DFLALL+TRLBAR},
- #define CMD_xit 132
- 	{(char_u *)"xall",			BANG+TRLBAR},
- #define CMD_xall 133
- 	{(char_u *)"yank",			RANGE+REGSTR+COUNT+TRLBAR},
- #define CMD_yank 134
- 	{(char_u *)"z",				RANGE+COUNT+TRLBAR},		/* not supported */
- #define CMD_z 135
- 	{(char_u *)"@",				RANGE+EXTRA+TRLBAR},
- #define CMD_at 136
- 	{(char_u *)"!",				RANGE+NAMEDFS},
- #define CMD_bang 137
- 	{(char_u *)"<",				RANGE+COUNT+TRLBAR},
- #define CMD_lshift 138
- 	{(char_u *)">",				RANGE+COUNT+TRLBAR},
- #define CMD_rshift 139
- 	{(char_u *)"=",				RANGE+TRLBAR},
- #define CMD_equal 140
- 	{(char_u *)"&",				RANGE+EXTRA},
- #define CMD_and 141
- 	{(char_u *)"~",				RANGE+EXTRA}
- #define CMD_tilde 142
- #define CMD_SIZE 143
- 
- };
--- 0 ----
diff -cNr vim-3.0.orig/src/debian.ChangeLog vim-3.0/src/debian.ChangeLog
*** vim-3.0.orig/src/debian.ChangeLog	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/debian.ChangeLog	Sat Sep 23 15:26:56 1995
***************
*** 0 ****
--- 1,39 ----
+ Fri Apr 28 20:31:43 EDT 1995   D.J. Gregor <dgregor@bronze.coil.com>
+ 
+ 	vim-3.0-2:
+ 
+ 	* Now libX11 is statically linked (with libX11.a) instead of
+ 	  dynamically linked.  This lets vim work without the X11
+ 	  library installed.
+ 
+ 
+ Sun Aug 13 21:03:55 EDT 1995   D.J. Gregor <dgregor@coil.com>
+ 
+ 	vim-3.0-3:
+ 
+ 	* Updated maintainer's e-mail address and added an extended
+ 	  description.
+ 
+ 	* Made postinst script automatically install vim as vi if
+ 	  there is not one already installed.   Postrm now deletes
+ 	  links to vim.  This was copied from Ian Murdock's nvi
+ 	  package
+ 
+ 	* Installed all files in the doc to /usr/doc/vim.
+ 
+ 
+ Sat Sep 23 14:07:26 EDT 1995   D.J. Gregor <dgregor@gregor.com>
+ 
+ 	vim-3.0-4:
+ 
+ 	* Updated maintainer's e-mail address (yet again)
+ 
+ 	* Removed postrm script and made postinst and prerm scripts
+ 	  to use update-alternatives
+ 
+ 	* Touched up the descriptions
+ 
+ 	* Removed 'titleing'.  Vim will no longer put its titles into
+ 	  the title bar on xterm's.  This caused problems when people
+ 	  used Xauthority and other things.  This also cut the binary
+ 	  size in half.
diff -cNr vim-3.0.orig/src/debian.control vim-3.0/src/debian.control
*** vim-3.0.orig/src/debian.control	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/debian.control	Sat Sep 23 14:07:11 1995
***************
*** 0 ****
--- 1,9 ----
+ PACKAGE: vim
+ MAINTAINER: D.J. Gregor <dgregor@gregor.com>
+ VERSION: =V
+ PACKAGE_REVISION: =D
+ DESCRIPTION: VI iMproved - enhanced vi editor
+  Vim is an almost compatible version of the UNIX editor vi. Only the 'Q'
+  command is missing (you don't need it). Many new features have been added:
+  multi level undo, command line history, filename completion, block operations,
+  etc. See /usr/doc/vim/difference.doc for more information.
diff -cNr vim-3.0.orig/src/debian.postinst vim-3.0/src/debian.postinst
*** vim-3.0.orig/src/debian.postinst	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/debian.postinst	Sat Sep 23 14:05:12 1995
***************
*** 0 ****
--- 1,8 ----
+ #!/bin/sh
+ 
+ # copied from Ian Murdock's nvi package
+ 
+ update-alternatives --install /usr/bin/vi vi /usr/bin/vim 20 \
+   --slave /usr/man/man1/vi.1 vi.1 /usr/man/man1/vim.1
+ 
+ exit 0
diff -cNr vim-3.0.orig/src/debian.prerm vim-3.0/src/debian.prerm
*** vim-3.0.orig/src/debian.prerm	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/debian.prerm	Fri Sep 15 23:47:14 1995
***************
*** 0 ****
--- 1,10 ----
+ #!/bin/sh
+ #
+ # copied from Ian Murdock's nvi package
+ 
+ if [ $1 != "upgrade" ]
+ then
+   update-alternatives --remove vi /usr/bin/vim
+ fi
+ 
+ exit 0
diff -cNr vim-3.0.orig/src/debian.rules vim-3.0/src/debian.rules
*** vim-3.0.orig/src/debian.rules	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/debian.rules	Sat Sep 23 14:31:55 1995
***************
*** 0 ****
--- 1,64 ----
+ #! /usr/bin/make -f
+ #
+ # To make the distributed dpkg archive, the ``Debianized'' source package
+ # and the context diff to the original package, type `./debian.rules dist'.
+ # Make sure that `debian.rules' is executable before the final distribution
+ # is made.
+ #
+ # Invoke each target with `./debian.rules <target>'.  All targets should be
+ # invoked with the package root as the current directory.
+ 
+ p = vim
+ v = 3.0
+ d = 4
+ 
+ build:
+ # Builds the binary package.
+ 	make 
+ 	touch stamp-build
+ 
+ clean:
+ # Undoes the effect of `make -f debian.rules build'.
+ 	make distclean
+ 	rm -f stamp-build
+ 	rm -rf debian-tmp
+ 
+ binary:
+ # Makes a binary package.
+ 	test -f stamp-build || make -f debian.rules build
+ 	install -d -g root -m 755 -o root debian-tmp
+ 	chmod g-s debian-tmp
+ 	install -d -g root -m 755 -o root debian-tmp/DEBIAN
+ 	make install prefix=debian-tmp/usr
+ 	install -d -g root -m 755 -o root debian-tmp/usr/doc/copyright
+ 	install -g root -m 644 -o root ../uganda.txt  \
+ 	  debian-tmp/usr/doc/copyright/vim
+ 	sed -e '3s/=V/$(v)/' -e '4s/=D/$(d)/' debian.control \
+ 	  > debian-tmp/DEBIAN/control
+ 	chmod 644 debian-tmp/DEBIAN/control
+ 	install -g root -m 644 -o root debian.postinst \
+ 	  debian-tmp/DEBIAN/postinst
+ 	install -g root -m 644 -o root debian.prerm \
+ 	  debian-tmp/DEBIAN/prerm
+ 	dpkg --build debian-tmp
+ 	mv debian-tmp.deb ../../$(p)-$(v)-$(d).deb
+ 
+ source:
+ # Makes a source package.
+ 	-test -f stamp-build && make -f debian.rules clean
+ 	( cd ../.. && \
+ 	  tar cf $(p)-$(v)-$(d).tar $(p)-$(v) && \
+ 	  gzip -9f $(p)-$(v)-$(d).tar )
+ 
+ diff:
+ # Makes a context diff.
+ 	-test -f stamp-build && make -f debian.rules clean
+ 	test -d ../../$(p)-$(v).orig || \
+ 	  ( cd ../../ ; tar xzf $(p)-$(v).orig.tar.gz )
+ 	( cd ../.. && \
+ 	  ( diff -cNr $(p)-$(v).orig $(p)-$(v) > $(p)-$(v)-$(d).diff; \
+ 	    [ $$? = 1 ] ) && \
+ 	  gzip -9f $(p)-$(v)-$(d).diff )
+ 
+ dist: binary source diff
+ # Prepares the package for distribution.
diff -cNr vim-3.0.orig/src/unix.c vim-3.0/src/unix.c
*** vim-3.0.orig/src/unix.c	Sat Aug 13 16:40:55 1994
--- vim-3.0/src/unix.c	Sat Sep 23 14:12:00 1995
***************
*** 1188,1194 ****
  #endif
  }
  
! #if !defined(__alpha) && !defined(mips) && !defined(SCO) && !defined(remove) && !defined(CONVEX)
  	int 
  remove(buf)
  # if defined(linux) || defined(__STDC__) || defined(__NeXT__) || defined(M_UNIX)
--- 1188,1194 ----
  #endif
  }
  
! #if !defined(__alpha) && !defined(mips) && !defined(SCO) && !defined(remove) && !defined(CONVEX) && !defined(linux)
  	int 
  remove(buf)
  # if defined(linux) || defined(__STDC__) || defined(__NeXT__) || defined(M_UNIX)
diff -cNr vim-3.0.orig/src/vim.1 vim-3.0/src/vim.1
*** vim-3.0.orig/src/vim.1	Wed Dec 31 19:00:00 1969
--- vim-3.0/src/vim.1	Sat Feb 25 14:24:07 1995
***************
*** 0 ****
--- 1,167 ----
+ .TH VIM 1 "1994 August 12"
+ .SH NAME
+ vim \- Vi IMproved, a programmers text editor
+ .SH SYNOPSIS
+ .B vim
+ [options] [file ..]
+ .br
+ .B vim
+ [options] \-t tag
+ .br
+ .B vim
+ [options] \-e [errorfile]
+ .SH DESCRIPTION
+ .B Vim
+ is a text editor that is upwards compatible to vi. It can be used to edit any 
+ ASCII text. It is especially useful for editing programs.
+ .PP
+ There are a lot of enhancements above vi: multi level undo,
+ multi windows and buffers, command line 
+ editing, filename completion, on-line help, visual selection, etc..
+ Read difference.doc 
+ for a summary of the differences between vi and Vim.
+ .PP
+ Most often
+ .B Vim
+ is started to edit a single file with the command
+ .PP
+ 	vim file
+ .PP
+ More generally VIM is started with:
+ .PP
+ 	vim [options] [filelist]
+ .PP
+ If the filelist is missing, the editor will start with an empty buffer.
+ Otherwise exactly one out of the following three may be used to choose one or
+ more files to be edited.
+ .TP 12
+ file ..
+ A list of file names. The first one (alphabetically) will be
+ the current file and read into the buffer. The cursor will be
+ positioned on the first line of the buffer. You can get to the other files
+ with the ":next" command.
+ .TP
+ -t {tag}
+ The file to edit and the initial cursor position depends on a "tag", a sort 
+ of goto label. {tag} is looked up in the tags file, the associated file 
+ becomes the current file and the associated command is executed. Mostly this 
+ is used for C programs. {tag} then should be a function name. The effect is 
+ that the file containing that function becomes the current file and the 
+ cursor is positioned on the start of the function (see reference.doc, 
+ section "tag searches").
+ .TP
+ -e [errorfile]
+ Start in quickFix mode. The file [errorfile]
+ is read and the first error is displayed. If [errorfile] is omitted the file
+ name is obtained from the 'errorfile' option (defaults to
+ "errors"). Further errors can be jumped to 
+ with the ":cn" command. See reference.doc section 5.5.
+ .SH OPTIONS
+ The options, if present, must precede the filelist. The options may be given 
+ in any order.
+ .TP 12
+ -r
+ Recovery mode. The swap file is used to recover a crashed editing session. The
+ swap file is a file with the same file name as the text file with ".swp"
+ appended. See reference.doc, chapter "Recovery after a crash".
+ .TP
+ -v
+ View mode. The 'readonly' option will be set. You can still 
+ edit the buffer, but will be prevented from accidently 
+ overwriting a file. If you do want to overwrite a file, add 
+ an exclamation mark to the Ex command, as in ":w!".
+ The -v option also implies the -n option (see below).
+ The 'readonly' option can be reset with ":set noro" (see reference.doc, 
+ options chapter).
+ .TP
+ -b
+ Binary. A few options will be set that makes it possible to edit a binary or
+ executable file.
+ .TP
+ +[num]
+ For the first file the cursor will be positioned on line
+ "num". If "num" is missing, the cursor will be positioned on
+ the last line.
+ .TP
+ +/pat
+ For the first file the cursor will be positioned on the
+ first occurrence of "pat" (see reference.doc, 
+ section "pattern searches" for the available search 
+ patterns).
+ .TP
+ +{command}
+ .TP
+ -c {command}
+ {command} will be executed after the 
+ first file has been read. {command} is interpreted as an Ex 
+ command. If the {command} contains spaces it must 
+ be enclosed in double quotes (this depends on the shell that 
+ is used).
+ Example: Vim "+set si" main.c
+ .TP
+ -x
+ (Amiga only) Vim is not restarted to open a new window. This option should 
+ be used when Vim is executed by a program that will wait for the edit 
+ session to finish (e.g. mail). The ":sh" and ":!" commands will not work.
+ .TP
+ -o[N]
+ Open N windows. When N is omitted, open one window for each file.
+ .TP
+ -n
+ No swap file will be used. Recovery after a crash 
+ will be impossible. Handy if you want to edit a file on a 
+ very slow medium (e.g. floppy). Can also be done with ":set 
+ uc=0". Can be undone with ":set uc=200".
+ .TP
+ -s {scriptin}
+ The script file {scriptin} is read. The characters in the 
+ file are interpreted as if you had typed them. The same can 
+ be done with the command ":source! {scriptin}". If the end 
+ of the file is reached before the editor exits, further 
+ characters are read from the keyboard.
+ .TP
+ -w {scriptout}
+ All the characters that you type are recorded in the file
+ {scriptout}, until you exit VIM. This is useful if you want 
+ to create a script file to be used with "vim -s" or 
+ ":source!".
+ .TP
+ -T terminal
+ Tells Vim the name of the terminal you are using. Should be a terminal known 
+ to Vim (builtin) or defined in the termcap file.
+ .TP
+ -d device
+ Open "device" for use as a terminal. Only on the Amiga. Example:
+ "\-d con:20/30/600/150".
+ .SH SEE ALSO
+ Vim documentation:
+ .TP 12
+ /usr/doc/vim/reference.doc:
+ A complete reference of Vim (long)
+ .TP
+ /usr/doc/vim/windows.doc:
+ Explanation of the multi windows and buffers commands and options
+ .TP
+ /usr/doc/vim/index:
+ Overview of all command characters (useful when adding new mappings)
+ .TP
+ /usr/doc/vim/difference.doc:
+ Overview of the differences between vi and Vim
+ .TP
+ /usr/doc/vim/unix.doc:
+ Unix-specific comments
+ .TP
+ /usr/doc/vim/vim.hlp:
+ File used by the on-line help (short)
+ .SH AUTHOR
+ Most of VIM was made by Bram Moolenaar.
+ .br
+ VIM is based on Stevie, worked on by: Tim Thompson,
+ Tony Andrews and G.R. (Fred) Walter
+ .br
+ This version of VIM for Debian/GNU Linux is maintained by D.J. Gregor,
+ dgregor@bronze.coil.com.
+ .SH COPYRIGHT
+ See /usr/doc/copyright/vim.
+ .SH BUGS
+ Probably.  If you have any, please send a message to debian-bugs@pixar.com.
