home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume44
/
vim
/
part25
< prev
next >
Wrap
Internet Message Format
|
1994-08-18
|
70KB
From: mool@oce.nl (Bram Moolenaar)
Newsgroups: comp.sources.misc
Subject: v44i044: vim - Vi IMproved editor, v3.0, Part25/26
Date: 18 Aug 1994 14:04:07 -0500
Organization: Sterling Software
Sender: kent@sparky.sterling.com
Approved: kent@sparky.sterling.com
Message-ID: <330bb7$e9q@sparky.sterling.com>
X-Md4-Signature: 766c1d17ce0e7a8eed8d4f593defd6ad
Submitted-by: mool@oce.nl (Bram Moolenaar)
Posting-number: Volume 44, Issue 44
Archive-name: vim/part25
Environment: UNIX, AMIGA, MS-DOS, Windows NT
Supersedes: vim: Volume 41, Issue 50-75
#! /bin/sh
# This is a shell archive. Remove anything before this line, then feed it
# into a shell via "sh file" or similar. To overwrite existing files,
# type "sh file -c".
# Contents: vim/README vim/credits.txt vim/doc/archie.doc
# vim/doc/unix.doc vim/macros/hanoi/hanoi.mac.UU
# vim/macros/hanoi/poster vim/macros/maze/README
# vim/macros/maze/maze_ansi.c vim/macros/maze/poster
# vim/macros/urm/README vim/macros/urm/examples
# vim/macros/urm/urm.UU vim/poster vim/src/amiga.h vim/src/charset.c
# vim/src/keymap.h vim/src/macros.h vim/src/mkcmdtab.c
# vim/src/msdos.h vim/src/ops.h vim/src/proto.h
# vim/src/proto/amiga.pro vim/src/proto/getchar.pro
# vim/src/proto/memfile.pro vim/src/proto/memline.pro
# vim/src/proto/misccmds.pro vim/src/proto/msdos.pro
# vim/src/proto/ops.pro vim/src/proto/screen.pro
# vim/src/proto/search.pro vim/src/proto/term.pro
# vim/src/proto/unix.pro vim/src/proto/window.pro
# vim/src/ptx_stdlib.h vim/src/regexp.h vim/src/sun_stdlib.h
# vim/tutor/poster
# Wrapped by kent@sparky on Mon Aug 15 21:44:16 1994
PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin:$PATH ; export PATH
echo If this archive is complete, you will see the following message:
echo ' "shar: End of archive 25 (of 26)."'
if test -f 'vim/README' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/README'\"
else
echo shar: Extracting \"'vim/README'\" \(2187 characters\)
sed "s/^X//" >'vim/README' <<'END_OF_FILE'
XREADME for version 3.0 of Vim: Vi IMproved.
X
XVim is an almost compatible version of the UNIX editor vi. Only the 'Q'
Xcommand is missing (you don't need it). Many new features have been added:
Xmulti level undo, command line history, filename completion, block operations,
Xetc. See difference.doc.
X
XThis editor is very useful for editing programs and other plain ASCII files.
XAll commands are given with normal keyboard characters, so those who can type
Xwith ten fingers can work very fast. Additionally function keys can be defined
Xby the user.
X
XVim currently runs under Amiga DOS, MSDOS, Windows NT and many UNIX versions.
XThere are some things included for the Archimedes, but it does not work yet.
XPorting to other systems should not be very difficult.
X
XDocumentation:
X tutor/readme - one hour training course for beginners
X reference.doc - complete reference of all Vim commands
X difference.doc - summarizes the differences with UNIX vi
X windows.doc - reference for the multi windows and buffer commands
X index - alfabetical list of commands
X amiga.doc - remarks for Amiga
X unix.doc - remarks for unix
X msdos.doc - remarks for MSDOS
X winnt.doc - remarks for Windows NT
X archie.doc - remarks for Archimedes
X
XVim is Charityware. You can copy it as much as you like. Please read
Xuganda.txt for details.
X
X
XCompiling:
X cd src
X cp makefile.<system> makefile
X make
X
XWhen using makefile.unix you MUST uncomment three lines for your system!
X
XThe makefile offers some compilation options. If you do not use digraphs, you
Xcan save some memory by recompiling without the DIGRAPHS option. The Amiga
Xand MS-DOS versions are compiled for a limited number of supported terminals.
XIf you want to use Vim with other terminals you can recompile with the
XTERMCAP option. See the makefiles for further options.
X
XPlease send comments, bug reports and suggestions to:
X
Xstable address: Bram Moolenaar UUCP E-mail: mool@oce.nl
X molenstraat 2
X 2162 HP Lisse Fax: +31 2521 16381
X The Netherlands Tel: +31 2521 13037
X
XSeptember 1994 - August 1995:
XKibaale Children's Centre Tel: +256 481 21033
Xp.o. box 1658, Masaka, Uganda, East Africa Fax: +256 481 20514
END_OF_FILE
if test 2187 -ne `wc -c <'vim/README'`; then
echo shar: \"'vim/README'\" unpacked with wrong size!
fi
# end of 'vim/README'
fi
if test -f 'vim/credits.txt' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/credits.txt'\"
else
echo shar: Extracting \"'vim/credits.txt'\" \(1170 characters\)
sed "s/^X//" >'vim/credits.txt' <<'END_OF_FILE'
XCredits for Vim - Vi Improved
X
XMost of Vim was written by Bram Moolenaar.
X
XParts of reference.doc come from several Vi manuals, written by:
X W.N. Joy
X Alan P.W. Hewett
X Mark Horton
X
XThe editor Vim is based on Stevie and includes (ideas from) other software,
Xworked on by:
X Tim Thompson Stevie
X Tony Andrews Stevie
X G. R. (Fred) Walter Stevie
X Henry Spencer regular expressions
X Steve Kirkendall Elvis
X Juergen Weigert Lattice version, AUX improvements, UNIX and
X MSDOS ports
X Robert Webb Command line completion and other patches
X Olaf Seibert DICE version and regexp improvements
X Peter da Silva termlib
X Chris & John Downey xvi (ideas for multi windows version)
X Loic Grenie xvim (ideas for multi windows version)
X Keith Bostic nvi
X Berkeley DB(3) ideas for swap file
X Ralf Brown SPAWNO library for MSDOS
X
XI must thank all the people that sent me bug reports and suggestions. The
Xlist is too long to mention them all here. And mentioning only a few of them
Xwould be an insult to the others, so I'll don't mention anybody. But Vim
Xwould not be the same without the ideas from all these people. They keep Vim
Xalive!
END_OF_FILE
if test 1170 -ne `wc -c <'vim/credits.txt'`; then
echo shar: \"'vim/credits.txt'\" unpacked with wrong size!
fi
# end of 'vim/credits.txt'
fi
if test -f 'vim/doc/archie.doc' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/doc/archie.doc'\"
else
echo shar: Extracting \"'vim/doc/archie.doc'\" \(1866 characters\)
sed "s/^X//" >'vim/doc/archie.doc' <<'END_OF_FILE'
XThis file contains the particularities for the Archimedes version of Vim.
X
X============================================================================
XThe Archimedes version has not been tested. It probably doesn't work at the
Xmoment, because only patches for Vim version 2.0 were available.
X============================================================================
X
Xvim.hlp needs to be saved as Lib:vimhlp (you should set Lib$Path to be a
Xpath to the directory you want to save this. Your system vimrc file should
Xbe named vimrc in this directory too.)
X
XAnother path to set is Tmp$Path This should be the directory you want vim to
Xuse when it does pipes.
X
XUnixLib's translations means that local .vimrc files should really be named
X/vimrc. Of course vim does these translations, so vim .vimrc will create the
Xfile /vimrc.
X
XYou need a termcap file - I haven't built this in. To install the termcap
Xfile, you need to assign a variable, UnixLib$/etc to your "/etc" directory
Xand copy the file "arctermcap" as "/etc/termcap" You also need your TERM
Xvariable to be set to acorn0 before you use vim. Note also that I've set the
X"cl" command, clear screen to clear to green screen. You can change this if
Xyou want.
X
XErrorfile handling may not work properly. This is not vim's fault, but
XUnixLib's system() and exec() handling. It may be OK for Acorn's cc, but gcc
Xuses exec() and loses redirections, so gcc -c fred.c 2> errorfile doesn't
Xgenerate a valid errorfile. Problem is that this is a biggy within UnixLib
Xto fix, I think.
X
XWhen you call a shell up with :sh and ^Z, you'll get a GOS shell by default.
XThis means that running another application will exit GOS and throw you back
Xinto vim. I'm working on a bash-like shell for the Arc which will get round
Xthis.
X
XIf I've missed anything, please drop me a line and I'll try to fix it.
X
XAlun Jones, auj@aber.ac.uk
END_OF_FILE
if test 1866 -ne `wc -c <'vim/doc/archie.doc'`; then
echo shar: \"'vim/doc/archie.doc'\" unpacked with wrong size!
fi
# end of 'vim/doc/archie.doc'
fi
if test -f 'vim/doc/unix.doc' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/doc/unix.doc'\"
else
echo shar: Extracting \"'vim/doc/unix.doc'\" \(796 characters\)
sed "s/^X//" >'vim/doc/unix.doc' <<'END_OF_FILE'
XThis file contains the particularities for the UNIX version of Vim.
X
XThe default help filename is "/usr/local/lib/vim.hlp"
XThe files "$HOME/.vimrc" and "$HOME/.exrc" are used instead of "s:.vimrc" and
X"s:.exrc". Additionally "/usr/local/etc/vimrc" is used first.
X
XTemporary files (for filtering) are put in "/tmp".
X
XWith wildcard expansion you can use <~> (home directory) and <$>
X(environment variable).
X
XBecause terminal updating under UNIX is often slow (e.g. serial line
Xterminal, shell window in suntools), the 'showcommand' and 'ruler' options
Xare default off. If you have a fast terminal, try setting them.
X
XThe file Vim132 is a shell script that can be used to put Vim in 132 column
Xmode on a vt100 and lookalikes.
X
XThe *.info files are for the Amiga. You don't need them with unix.
END_OF_FILE
if test 796 -ne `wc -c <'vim/doc/unix.doc'`; then
echo shar: \"'vim/doc/unix.doc'\" unpacked with wrong size!
fi
# end of 'vim/doc/unix.doc'
fi
if test -f 'vim/macros/hanoi/hanoi.mac.UU' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/hanoi/hanoi.mac.UU'\"
else
echo shar: Extracting \"'vim/macros/hanoi/hanoi.mac.UU'\" \(1557 characters\)
sed "s/^X//" >'vim/macros/hanoi/hanoi.mac.UU' <<'END_OF_FILE'
Xbegin 644 vim/macros/hanoi/hanoi.mac
XM<V5T(')E;6%P"G-E="!N;W1E<G-E"G-E="!W<F%P<V-A;@HB('1O('-E="!T
XM:&4@:&5I9VAT(&]F('1H92!T;W=E<BP@8VAA;F=E('1H92!D:6=I="!I;B!T
XM:&4@9F]L;&]W:6YG"B(@='=O(&QI;F5S('1O('1H92!H96EG:'0@>6]U('=A
XM;G0@*'-E;&5C="!F<F]M(#$@=&\@.2D*;6%P('0@-PIM87 A('0@-PIM87 @
XM3" Q1R]T#5@O7C -)% Q1THD06XD0D=#,&4D6#!%,$8D6"]4#4!F#4!H#21!
XM,4=*0&8P;"18;B1050IM87 @9R!)3 H*;6%P($H@+UXP6UYT72HD#0IM87 @
XM6"!X"FUA<"!0(' *;6%P(%4@3 IM87 @02 B9GEL"FUA<"!"(")H>6P*;6%P
XM($,@(F9P"FUA<"!E(")F>3)L"FUA<"!%(")H< IM87 @1B B:'DR; H*(B!I
XM;FET:6%L:7-A=&EO;G,Z"B(@2TT)8VQE86YU<"!B=69F97(*(B!9"6-R96%T
XM92!T;W=E<B!O9B!D97-I<F5D(&AE:6=H= HB($Y/40EC;W!Y(&ET(&%N9"!I
XM;G-T97(@82!4"B(@3D\)8V]P>2!T:&ES(&]N90HB(%,)8VAA;F=E(&QA<W0@
XM8VAA<B!I;G1O(&$@) HB(%()8VAA;F=E(&QA<W0@8VAA<B!I;B!P<F5V:6]U
XM<R!L:6YE(&EN=&\@82!N"B(@5 EI;G-E<G0@='=O(&QI;F5S(&-O;G1A:6YI
XM;F<@82!Z97)O"B(@5@EA9&0@82!L87-T(&QI;F4@8V]N=&%I;FEN9R!A(&)A
XM8VMS;&%S: IM87 @22!+35E.3U%.3U-K4E16"@HB8W)E871E(&5M<'1Y(&QI
XM;F4*;6%P($L@,4=O&PH*(F1E;&5T92!T;R!E;F0@;V8@9FEL90IM87 @32!D
XM1PH*(GEA;FL@;VYE(&QI;F4*;6%P($X@>7D*"B)P=70*;6%P($\@< H*(F1E
XM;&5T92!M;W)E('1H86X@:&5I9VAT+6]F+71O=V5R(&-H87)A8W1E<G,*;6%P
XM('$@=&QL1 H*(F-R96%T92!A('1O=V5R(&]F(&1E<VER960@:&5I9VAT"FUA
XM<"!9(&\P,3(S-#4V-S@Y6ALP<0H*(FEN<V5R="!A(%0@:6X@8V]L=6UN(#$*
XM;6%P(%$@,&E4&PH*(G-U8G-T:71U=&4@;&%S="!C:&%R86-T97(@=VET:"!A
XM(&X*;6%P(%(@)')N"@HB<W5B<W1I='5T92!L87-T(&-H87)A8W1E<B!W:71H
XM(&$@) IM87 @4R D<B0*"B)I;G-E<G0@='=O(&QI;F5S(&-O;G1A:6YI;F<@
XM82!Z97)O"FUA<"!4(&MO, TP#0T;"@HB861D(&$@8F%C:W-L87-H(&%T('1H
X192!E;F0*;6%P(%8@1V\O&PHP
X
Xend
END_OF_FILE
if test 1557 -ne `wc -c <'vim/macros/hanoi/hanoi.mac.UU'`; then
echo shar: \"'vim/macros/hanoi/hanoi.mac.UU'\" unpacked with wrong size!
else
echo shar: Uudecoding \"'vim/macros/hanoi/hanoi.mac'\" \(1097 characters\)
cat vim/macros/hanoi/hanoi.mac.UU | uudecode
if test 1097 -ne `wc -c <'vim/macros/hanoi/hanoi.mac'`; then
echo shar: \"'vim/macros/hanoi/hanoi.mac'\" uudecoded with wrong size!
else
rm vim/macros/hanoi/hanoi.mac.UU
fi
fi
# end of 'vim/macros/hanoi/hanoi.mac.UU'
fi
if test -f 'vim/macros/hanoi/poster' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/hanoi/poster'\"
else
echo shar: Extracting \"'vim/macros/hanoi/poster'\" \(1259 characters\)
sed "s/^X//" >'vim/macros/hanoi/poster' <<'END_OF_FILE'
XArticle 2913 of alt.sources:
XPath: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!cluster!swift!softway!otc!gregm
XFrom: gregm@otc.otca.oz.au (Greg McFarlane)
XNewsgroups: comp.sources.d,alt.sources,comp.editors
XSubject: VI SOLVES HANOI
XMessage-ID: <2323@otc.otca.oz>
XDate: 19 Feb 91 01:32:14 GMT
XSender: news@otc.otca.oz
XReply-To: gregm@otc.otca.oz.au (Greg McFarlane)
XOrganization: OTC Development Unit, Australia
XLines: 80
XXref: oce-rd1 comp.sources.d:5702 alt.sources:2913 comp.editors:2313
X
XSubmitted-by: gregm@otc.otca.oz.au
XArchive-name: hanoi.vi.macros/part01
X
XEveryone seems to be writing stupid Tower of Hanoi programs.
XWell, here is the stupidest of them all: the hanoi solving vi macros.
X
XSave this article, unshar it, and run uudecode on hanoi.vi.macros.uu.
XThis will give you the macro file hanoi.vi.macros.
XThen run vi (with no file: just type "vi") and type:
X :so hanoi.vi.macros
X g
Xand watch it go.
X
XThe default height of the tower is 7 but can be easily changed by editing
Xthe macro file.
X
XThe disks aren't actually shown in this version, only numbers representing
Xeach disk, but I believe it is possible to write some macros to show the
Xdisks moving about as well. Any takers?
X
X(For maze solving macros, see alt.sources or comp.editors)
X
XGreg
END_OF_FILE
if test 1259 -ne `wc -c <'vim/macros/hanoi/poster'`; then
echo shar: \"'vim/macros/hanoi/poster'\" unpacked with wrong size!
fi
# end of 'vim/macros/hanoi/poster'
fi
if test -f 'vim/macros/maze/README' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/maze/README'\"
else
echo shar: Extracting \"'vim/macros/maze/README'\" \(1666 characters\)
sed "s/^X//" >'vim/macros/maze/README' <<'END_OF_FILE'
XTo prove that you can do anything in vi, I wrote a couple of macros that
Xallows vi to solve mazes. It will solve any maze produced by maze.c
Xthat was posted to the net recently.
X
XJust follow this recipe and SEE FOR YOURSELF.
X 1. run uudecode on the file "maze.vi.macros.uu" to
X produce the file "maze.vi.macros"
X (If you can't wait to see the action, jump to step 4)
X 2. compile maze.c with "cc -o maze maze.c"
X 3. run maze > maze.out and input a small number (for example 10 if
X you are on a fast machine, 3-5 if slow) which
X is the size of the maze to produce
X 4. edit the maze (vi maze.out)
X 5. include the macros with the vi command:
X :so maze.vi.macros
X 6. type the letter "g" (for "go") and watch vi solve the maze
X 7. when vi solves the maze, you will see why it lies
X 8. now look at maze.vi.macros and all will be revealed
X
XTested on a sparc, a sun and a pyramid (although maze.c will not compile
Xon the pyramid).
X
XAnyone who can't get the maze.c file to compile, get a new compiler,
Xtry maze.ansi.c which was also posted to the net.
XIf you can get it to compile but the maze comes out looking like a fence
Xand not a maze and you are using SysV or DOS replace the "27" on the
Xlast line of maze.c by "11"
XThanks to John Tromp (tromp@piring.cwi.nl) for maze.c.
XThanks to antonyc@nntp-server.caltech.edu (Bill T. Cat) for maze.ansi.c.
X
XAny donations should be in unmarked small denomination bills :^)=.
X
X ACSnet: gregm@otc.otca.oz.au
XGreg McFarlane UUCP: {uunet,mcvax}!otc.otca.oz.au!gregm
X|||| OTC || Snail: OTC R&D GPO Box 7000, Sydney 2001, Australia
X Phone: +61 2 287 3139 Fax: +61 2 287 3299
X
X
END_OF_FILE
if test 1666 -ne `wc -c <'vim/macros/maze/README'`; then
echo shar: \"'vim/macros/maze/README'\" unpacked with wrong size!
fi
# end of 'vim/macros/maze/README'
fi
if test -f 'vim/macros/maze/maze_ansi.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/maze/maze_ansi.c'\"
else
echo shar: Extracting \"'vim/macros/maze/maze_ansi.c'\" \(441 characters\)
sed "s/^X//" >'vim/macros/maze/maze_ansi.c' <<'END_OF_FILE'
Xchar*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",&
XC) ;-- E;J [E ]=M
X[E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
X) , A = 39 ,C --
X) ; Z || printf (T ))T[Z]=Z[A-(E =A[J-Z])&&!C
X& A == M[ A]
X|6<<11<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}
END_OF_FILE
if test 441 -ne `wc -c <'vim/macros/maze/maze_ansi.c'`; then
echo shar: \"'vim/macros/maze/maze_ansi.c'\" unpacked with wrong size!
fi
# end of 'vim/macros/maze/maze_ansi.c'
fi
if test -f 'vim/macros/maze/poster' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/maze/poster'\"
else
echo shar: Extracting \"'vim/macros/maze/poster'\" \(1562 characters\)
sed "s/^X//" >'vim/macros/maze/poster' <<'END_OF_FILE'
XArticle 2846 of alt.sources:
XPath: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregm
XFrom: gregm@otc.otca.oz.au (Greg McFarlane)
XNewsgroups: alt.sources
XSubject: VI SOLVES MAZE (commented macros)
XMessage-ID: <2289@otc.otca.oz>
XDate: 10 Feb 91 23:31:02 GMT
XSender: news@otc.otca.oz
XReply-To: gregm@otc.otca.oz.au (Greg McFarlane)
XOrganization: OTC Development Unit, Australia
XLines: 464
X
XSubmitted-by: gregm@otc.otca.oz.au
XArchive-name: maze_solving_vi_macros
X
XA real working model. See it walk the maze in front of your very own eyes.
X
XTo prove that you can do anything in vi, I wrote a couple of macros that
Xallows vi to solve mazes. It will solve any maze produced by maze.c
Xthat was posted to the alt.sources last month. (Maze.c is also included
Xin this posting as well as an example of its output.)
X
XThe uncommented version of the macros was sent to alt.sources last month.
XHowever, so many people mailed me requesting the commented version of the
Xmacros that I decided to post it. I have made some modifications to the
Xoriginal macros to make them easier to follow and also after I learnt
Xthat you can escape the special meaning of '|' in macros by using '^V|'.
X
XSave this article and unshar it. Then read maze.README.
X
XAfter studying these macros, anyone who cannot write an emacs emulator
Xin vi macros should just curl up and :q!.
X
XComing soon to a newsgroup near you: "Vi macros solve Tower of Hanoi",
Xand a repost of the original "Turing Machine implemented in Vi macros"
X
XAnyone who has a version of these macros for edlin or nroff, please post.
END_OF_FILE
if test 1562 -ne `wc -c <'vim/macros/maze/poster'`; then
echo shar: \"'vim/macros/maze/poster'\" unpacked with wrong size!
fi
# end of 'vim/macros/maze/poster'
fi
if test -f 'vim/macros/urm/README' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/urm/README'\"
else
echo shar: Extracting \"'vim/macros/urm/README'\" \(1651 characters\)
sed "s/^X//" >'vim/macros/urm/README' <<'END_OF_FILE'
XThis is another proof that vim is perfectly compatible with SYSV-vi.
XThe URM macro package was written by Rudolf Koenig ("Rudi")
X(rfkoenig@immd4.uni-erlangen.de) for hpux-vi in August 1991.
X
XGetting started:
X
Xtype
Xin your shell: vim urm<RETURN>
Xin vim: :so urm.mac<RETURN>
Xin vim: * (to load the registers and boot the URM-machine :-)
Xin vim: g (for 'go') and watch the fun. Per default, 3 and 4
X are multiplied. Watch the Program counter, it is
X visible as a komma moving around.
X
XThis is a "standard URM" (Universal register machine) interpreter. The URM
Xconcept is used in theoretical computer science to aid in theorem proving.
XHere it proves that vim is a general problem solver (if you bring enough
Xpatience).
X
XThe interpreter begins with register 1 (not 0), without macros and more-lines
Xcapability. A dot marks the end of a program. (Bug: there must be a space
Xafter the dot.)
X
XThe registers are the first few lines, beginning with a '>' .
XThe program is the first line after the registers.
XYou should always initialize the registers required by the program.
X
XOutput register: line 2
XInput registers: line 2 to ...
X
XCommands:
Xa<n> increment register <n>
Xs<n> decrement register <n>
X<x>;<y> execute command <x> and then <y>
X(<x>)<n> execute command <x> while register <n> is nonzero
X. ("dot blank") halt the machine.
X
XExamples:
X
XAdd register 2 to register 3:
X (a2;s3)3.
XMultiply register 2 with register 3:
X (a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3.
X
XThere are more (complicated) examples in the file examples.
XNote, undo may take a while after a division.
X
END_OF_FILE
if test 1651 -ne `wc -c <'vim/macros/urm/README'`; then
echo shar: \"'vim/macros/urm/README'\" unpacked with wrong size!
fi
# end of 'vim/macros/urm/README'
fi
if test -f 'vim/macros/urm/examples' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/urm/examples'\"
else
echo shar: Extracting \"'vim/macros/urm/examples'\" \(1092 characters\)
sed "s/^X//" >'vim/macros/urm/examples' <<'END_OF_FILE'
XNote that enough temporary registers should be provided for each example.
XAll should be initialised to 0.
X
XInitial register values for benchmarking: 0,8,3,0,...
X
XPerformed on a Xenix 386/16:
XOperation [sec, kbyte tmp space]: program
X
XAsym. Diff.[ 7, 4]: (s2;s3)3.
XAbs. Diff. [90,81]: (a1;a4;s2)2; (a2;s1)1; (a1;a5;s3)3; (a3;s1)1; (s2;s3)3; (s5;s4)4; (a2;s5)5.
XAdd [ 7, 4]: (a2;s3)3.
XMult [227, 161]: (a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3.
XCopy [ 48, 25]: (a1;a3;s2)2; (a2;s1)1.
Xsign [ 30, 17]: (a3;s2)2; (a2;(s3)3)3.
X!sign[ 36, 28]: (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3.
XDiv [630,1522]: (a9;s2)2; (a2;a10;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a2)2;(a2;s9)9;(a3;s10)10; (a9;a10;s2)2; (a11;a12;s3)3; (a2;s12)12; (a3;s9)9; (s2;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a1;s2)2; (a2;s10)10; (a3;s11)11; ((a12;a13;s3)3; (a3;s13)13; (s2;s3)3; (a3;s12)12; a14; (s1)1; (a9;a10;s2)2; (a11;a12;s3)3; (a2;s12)12; (a3;s9)9; (s2;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a1;s2)2; (a2;s10)10; (a3;s11)11)1; (s2)2; (a2;s14)14.
END_OF_FILE
if test 1092 -ne `wc -c <'vim/macros/urm/examples'`; then
echo shar: \"'vim/macros/urm/examples'\" unpacked with wrong size!
fi
# end of 'vim/macros/urm/examples'
fi
if test -f 'vim/macros/urm/urm.UU' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/macros/urm/urm.UU'\"
else
echo shar: Extracting \"'vim/macros/urm/urm.UU'\" \(903 characters\)
sed "s/^X//" >'vim/macros/urm/urm.UU' <<'END_OF_FILE'
Xbegin 644 vim/macros/urm/urm
XM/C */C,*/C0*/C */C */C **&$T.V$U.W,R*3([("@H83([<S0I-#L@<S,[
XM("AA,3MA-#MS-2DU.R H834[<S$I,2DS+B *7U]?7U]?7U]?"D\).R ]>' @
XM*" ]>"5H<" I($!L(&$@0&1B(',@0&1T("X@/7@P>&MD9#IR96%D>2!?96YD
XM7PIO"3 @,2 R(#,@-" U(#8@-R X(#D@, I?7U]?7U]?7U\*24Y)5"!M86EN
XM*&LI+"!L+"!B+"!C+"!T+"!U+"!Q+"!D( H-(FM4#2)L5 TB8E0-(F-4#2)T
XM5 TB=50-(G%4#2)D5 H];$8G=V$O3Q8-9AMP87<B>F1T(&AP0'H;,")X1$!X
XM0&L*/3)L9'=H<"=W:4=4)W=P&S!0,")Y1$!Y82 ]>&QW4" ^," ]>"5P(!M)
XM(!MK+SXP#7=W(GED=" P1$!Y"B=W82]O%@UF=T8G=W!I8&%R%AL;8&%&)W=F
XM9G P(G9$0'8P(G9$<# S>$!V)W=A($!C(# @," ;,$D@&V8P=R)W9'0@,$1
XM=PI@86AM848G=V$@("=A83$6&R ^($!B(!LP<#!F/G<B=F1T(#!$0'8*)W=A
XM+V\6#7=F8D8G=W!I8&%R%AL;8&%&)W=F9G P(G9$0'8P(G9$<# S>$!V)W=A
XM($!U(#D@," ;,$D@&V8Y=R)W9'0@,$1 =PI@86AM848G=V$@(&!A;'(P(#X@
XM0'$@&S!P,&8^=R)V9'0@,$1 =@I@86AY,FPG=V$@(&!A>" ^,2! =" ;,' P
XM+SXQ#7=W(FED=" P1$!I"CUX=VAP8FQD=VAP)W=P84<D;6$;,")Y1$!Y0 H*
X
Xend
END_OF_FILE
if test 903 -ne `wc -c <'vim/macros/urm/urm.UU'`; then
echo shar: \"'vim/macros/urm/urm.UU'\" unpacked with wrong size!
else
echo shar: Uudecoding \"'vim/macros/urm/urm'\" \(630 characters\)
cat vim/macros/urm/urm.UU | uudecode
if test 630 -ne `wc -c <'vim/macros/urm/urm'`; then
echo shar: \"'vim/macros/urm/urm'\" uudecoded with wrong size!
else
rm vim/macros/urm/urm.UU
fi
fi
# end of 'vim/macros/urm/urm.UU'
fi
if test -f 'vim/poster' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/poster'\"
else
echo shar: Extracting \"'vim/poster'\" \(1584 characters\)
sed "s/^X//" >'vim/poster' <<'END_OF_FILE'
XVim - Vi IMproved. A clone of the UNIX text editor Vi. Very useful for
Xediting programs and other plain ASCII text. Full Vi compatibility (except Q
Xcommand, you don't need it). Includes most Ex commands.
X
XExtra features above Vi: Multilevel undo, command line history, improved
Xcommand line editing, command typeahead display, command to display yank
Xbuffers, possibility to edit binary files, line wrapping can be switched off,
Xfile name stack, can be adjusted to understand error messages from any
Xcompiler, shows current file name in window title, on-line help, etc.
X
XVersion 2.0, update to 1.27. Most important changes:
X- 'wrap' option to switch line wrapping on/off
X- filename completion is more like other programs and adjustable
X- automatic detection of CR/LF line separator
X- '-b' command line option to make editing binary files more easy
X- added abbreviation
X- :make command for quickly jumping to errors
X- MSDOS version uses bios calls for screen output, ansi.sys not needed
X- many small changes to make Vim more vi-compatible
X
XPortability: Runs on MSDOS, Amiga and several UNIX versions.
X
XDistribution:
Xcomp.binaries.ibm.pc: vim_dos.zip: MSDOS binary and documentation
X
Xcomp.binaries.amiga: vim_bin.lha: Amiga binary and documentation
X
Xcomp.sources.misc: shell archive with sources and documentation
X
XThe documentation is almost the same for all systems. For MSDOS CR-LF is used
Xfor line separator. For Amiga .info files are included. For the shell archive
Xsome files are uuencoded because of unprintable characters.
X
XVim is charityware. Read uganda.txt for details.
END_OF_FILE
if test 1584 -ne `wc -c <'vim/poster'`; then
echo shar: \"'vim/poster'\" unpacked with wrong size!
fi
# end of 'vim/poster'
fi
if test -f 'vim/src/amiga.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/amiga.h'\"
else
echo shar: Extracting \"'vim/src/amiga.h'\" \(972 characters\)
sed "s/^X//" >'vim/src/amiga.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * Amiga Machine-dependent things
X */
X
X/*
X * Names for the EXRC, HELP and temporary files.
X * Some of these may have been defined in the makefile.
X */
X
X#ifndef SYSVIMRC_FILE
X# define SYSVIMRC_FILE "s:.vimrc"
X#endif
X
X#ifndef SYSEXRC_FILE
X# define SYSEXRC_FILE "s:.exrc"
X#endif
X
X#ifndef VIMRC_FILE
X# define VIMRC_FILE ".vimrc"
X#endif
X
X#ifndef EXRC_FILE
X# define EXRC_FILE ".exrc"
X#endif
X
X#ifndef VIM_HLP
X# define VIM_HLP "vim:vim.hlp"
X#endif
X
X#ifndef DEF_DIR
X# define DEF_DIR "t:"
X#endif
X
X#define TMPNAME1 "t:viXXXXXX"
X#define TMPNAME2 "t:voXXXXXX"
X#define TMPNAMELEN 12
X
X#ifndef MAXMEM
X# define MAXMEM 256 /* use up to 256Kbyte for buffer */
X#endif
X#ifndef MAXMEMTOT
X# define MAXMEMTOT 0 /* decide in set_init */
X#endif
X
X#define BASENAMELEN 26 /* Amiga */
END_OF_FILE
if test 972 -ne `wc -c <'vim/src/amiga.h'`; then
echo shar: \"'vim/src/amiga.h'\" unpacked with wrong size!
fi
# end of 'vim/src/amiga.h'
fi
if test -f 'vim/src/charset.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/charset.c'\"
else
echo shar: Extracting \"'vim/src/charset.c'\" \(1740 characters\)
sed "s/^X//" >'vim/src/charset.c' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X#include "vim.h"
X#include "globals.h"
X#include "proto.h"
X#include "param.h"
X
X
X char_u *
Xtranschar(c)
X int c;
X{
X static char_u buf[3];
X
X if (c < ' ' || c == DEL)
X {
X if (c == NL)
X c = NUL; /* we use newline in place of a NUL */
X buf[0] = '^';
X buf[1] = c ^ 0x40; /* DEL displayed as ^? */
X buf[2] = NUL;
X }
X else if (c <= '~' || c > 0xa0 || p_gr)
X {
X buf[0] = c;
X buf[1] = NUL;
X }
X else
X {
X buf[0] = '~';
X buf[1] = c - 0x80 + '@';
X buf[2] = NUL;
X }
X return buf;
X}
X
X/*
X * return the number of characters 'c' will take on the screen
X */
X int
Xcharsize(c)
X int c;
X{
X return ((c >= ' ' && (p_gr || c <= '~')) || c > 0xa0 ? 1 : 2);
X}
X
X/*
X * return the number of characters string 's' will take on the screen
X */
X int
Xstrsize(s)
X char_u *s;
X{
X int len = 0;
X
X while (*s)
X len += charsize(*s++);
X return len;
X}
X
X/*
X * return the number of characters 'c' will take on the screen, taking
X * into account the size of a tab
X */
X int
Xchartabsize(c, col)
X register int c;
X long col;
X{
X if ((c >= ' ' && (c <= '~' || p_gr)) || c > 0xa0)
X return 1;
X else if (c == TAB && !curwin->w_p_list)
X return (int)(curbuf->b_p_ts - (col % curbuf->b_p_ts));
X else
X return 2;
X}
X
X/*
X * return TRUE if 'c' is an identifier character
X */
X int
Xisidchar(c)
X int c;
X{
X return (
X#ifdef __STDC__
X isalnum(c)
X#else
X isalpha(c) || isdigit(c)
X#endif
X || c == '_'
X /*
X * we also accept alhpa's with accents
X */
X#ifdef MSDOS
X || (c >= 0x80 && c <= 0xa7) || (c >= 0xe0 && c <= 0xeb)
X#else
X || (c >= 0xc0 && c <= 0xff)
X#endif
X );
X}
END_OF_FILE
if test 1740 -ne `wc -c <'vim/src/charset.c'`; then
echo shar: \"'vim/src/charset.c'\" unpacked with wrong size!
fi
# end of 'vim/src/charset.c'
fi
if test -f 'vim/src/keymap.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/keymap.h'\"
else
echo shar: Extracting \"'vim/src/keymap.h'\" \(2098 characters\)
sed "s/^X//" >'vim/src/keymap.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * Keycode definitions for special keys
X *
X * On systems that have any of these keys, the routine 'inchar' in the
X * machine-dependent code should return one of the codes here.
X */
X
X/*
X * On MSDOS we use other codes, because the codes 0x80 - 0xb0 are used
X * for special characters. If this is changed also change the numbers in
X * term.h and main.c.
X */
X#ifdef MSDOS
X# define K_OFF 0x30
X#else
X# define K_OFF 0x00
X#endif
X
X#define K_CCIRCM 0x1e /* control circumflex */
X
X/*
X * careful: the next entries must be in the same order as the termcap strings
X * in term.h and the numbers must be consecutive (used by inchar()).
X */
X#define K_UARROW (K_OFF + 0x80)
X#define K_DARROW (K_OFF + 0x81)
X#define K_LARROW (K_OFF + 0x82)
X#define K_RARROW (K_OFF + 0x83)
X#define K_SUARROW (K_OFF + 0x84)
X#define K_SDARROW (K_OFF + 0x85)
X#define K_SLARROW (K_OFF + 0x86)
X#define K_SRARROW (K_OFF + 0x87)
X
X#define K_F1 (K_OFF + 0x88) /* function keys */
X#define K_F2 (K_OFF + 0x89)
X#define K_F3 (K_OFF + 0x8a)
X#define K_F4 (K_OFF + 0x8b)
X#define K_F5 (K_OFF + 0x8c)
X#define K_F6 (K_OFF + 0x8d)
X#define K_F7 (K_OFF + 0x8e)
X#define K_F8 (K_OFF + 0x8f)
X#define K_F9 (K_OFF + 0x90)
X#define K_F10 (K_OFF + 0x91)
X
X#define K_SF1 (K_OFF + 0x92) /* shifted function keys */
X#define K_SF2 (K_OFF + 0x93)
X#define K_SF3 (K_OFF + 0x94)
X#define K_SF4 (K_OFF + 0x95)
X#define K_SF5 (K_OFF + 0x96)
X#define K_SF6 (K_OFF + 0x97)
X#define K_SF7 (K_OFF + 0x98)
X#define K_SF8 (K_OFF + 0x99)
X#define K_SF9 (K_OFF + 0x9a)
X#define K_SF10 (K_OFF + 0x9b)
X
X#define K_HELP (K_OFF + 0x9c)
X#define K_UNDO (K_OFF + 0x9d)
X
X/*
X * NULs cannot be in the input string, therefore CTRL-@ is replaced by K_ZERO.
X * K_NUL is used for MSDOS extended keys (same value used in term.h).
X */
X#define K_NUL (K_OFF + 0x9e) /* for MSDOS: special key follows */
X#define K_ZERO (K_OFF + 0x9f) /* replaces ^@ */
END_OF_FILE
if test 2098 -ne `wc -c <'vim/src/keymap.h'`; then
echo shar: \"'vim/src/keymap.h'\" unpacked with wrong size!
fi
# end of 'vim/src/keymap.h'
fi
if test -f 'vim/src/macros.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/macros.h'\"
else
echo shar: Extracting \"'vim/src/macros.h'\" \(1239 characters\)
sed "s/^X//" >'vim/src/macros.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * macros.h: macro definitions for often used code
X */
X
X/*
X * pchar(lp, c) - put character 'c' at position 'lp'
X */
X#define pchar(lp, c) (*(ml_get_buf(curbuf, (lp).lnum, TRUE) + (lp).col) = (c))
X
X/*
X * Position comparisons
X */
X#define lt(a, b) (((a).lnum != (b).lnum) \
X ? ((a).lnum < (b).lnum) : ((a).col < (b).col))
X
X#define ltoreq(a, b) (((a).lnum != (b).lnum) \
X ? ((a).lnum < (b).lnum) : ((a).col <= (b).col))
X
X#define equal(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col))
X
X/*
X * lineempty() - return TRUE if the line is empty
X */
X#define lineempty(p) (*ml_get(p) == NUL)
X
X/*
X * bufempty() - return TRUE if the file buffer is empty
X */
X#define bufempty() (curbuf->b_ml.ml_flags & ML_EMPTY)
X
X/*
X * On some systems toupper()/tolower() only work on lower/uppercase characters
X */
X#if defined(sequent) || defined(DOMAIN) || !defined(__STDC__)
X# define TO_UPPER(c) (islower(c) ? toupper(c) : (c))
X# define TO_LOWER(c) (isupper(c) ? tolower(c) : (c))
X#else
X# define TO_UPPER toupper
X# define TO_LOWER tolower
X#endif
END_OF_FILE
if test 1239 -ne `wc -c <'vim/src/macros.h'`; then
echo shar: \"'vim/src/macros.h'\" unpacked with wrong size!
fi
# end of 'vim/src/macros.h'
fi
if test -f 'vim/src/mkcmdtab.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/mkcmdtab.c'\"
else
echo shar: Extracting \"'vim/src/mkcmdtab.c'\" \(2079 characters\)
sed "s/^X//" >'vim/src/mkcmdtab.c' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * mkcmdtab.c: separate program that reads cmdtab.tab and produces cmdtab.h
X *
X * call with: mkcmdtab cmdtab.tab cmdtab.h
X */
X
X#include "vim.h"
X
X#if defined(UTS4)
X int
X#else
X void
X#endif
Xmain(argc, argv)
X int argc;
X char **argv;
X{
X register int c;
X char buffer[100];
X int count;
X int i;
X FILE *ifp, *ofp;
X
X if (argc != 3)
X {
X fprintf(stderr, "Usage: mkcmdtab cmdtab.tab cmdtab.h\n");
X exit(10);
X }
X ifp = fopen(argv[1], "r");
X if (ifp == NULL)
X {
X perror(argv[1]);
X exit(10);
X }
X ofp = fopen(argv[2], "w");
X if (ofp == NULL)
X {
X perror(argv[2]);
X exit(10);
X }
X
X while ((c = getc(ifp)) != '|' && c != EOF)
X putc(c, ofp);
X fprintf(ofp, "THIS FILE IS AUTOMATICALLY PRODUCED - DO NOT EDIT");
X while ((c = getc(ifp)) != '|' && c != EOF)
X ;
X while ((c = getc(ifp)) != '|' && c != EOF)
X putc(c, ofp);
X
X count = 0;
X while ((c = getc(ifp)) != '|' && c != EOF)
X {
X putc(c, ofp);
X while ((c = getc(ifp)) != '"' && c != EOF)
X putc(c, ofp);
X putc(c, ofp);
X
X i = 0;
X while ((c = getc(ifp)) != '"' && c != EOF)
X {
X putc(c, ofp);
X buffer[i++] = c;
X }
X putc(c, ofp);
X buffer[i] = 0;
X
X while ((c = getc(ifp)) != '\n' && c != EOF)
X putc(c, ofp);
X putc(c, ofp);
X
X switch (buffer[0])
X {
X case '@': strcpy(buffer, "at");
X break;
X case '!': strcpy(buffer, "bang");
X break;
X case '<': strcpy(buffer, "lshift");
X break;
X case '>': strcpy(buffer, "rshift");
X break;
X case '=': strcpy(buffer, "equal");
X break;
X case '&': strcpy(buffer, "and");
X break;
X case '~': strcpy(buffer, "tilde");
X break;
X case '#': strcpy(buffer, "pound");
X break;
X }
X
X fprintf(ofp, "#define CMD_%s %d\n", buffer, count++);
X }
X
X fprintf(ofp, "#define CMD_SIZE %d\n", count);
X
X while ((c = getc(ifp)) != '|' && c != EOF)
X putc(c, ofp);
X
X if (c != '|')
X {
X fprintf(stderr, "not enough |'s\n");
X exit(1);
X }
X exit(0);
X}
END_OF_FILE
if test 2079 -ne `wc -c <'vim/src/mkcmdtab.c'`; then
echo shar: \"'vim/src/mkcmdtab.c'\" unpacked with wrong size!
fi
# end of 'vim/src/mkcmdtab.c'
fi
if test -f 'vim/src/msdos.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/msdos.h'\"
else
echo shar: Extracting \"'vim/src/msdos.h'\" \(1318 characters\)
sed "s/^X//" >'vim/src/msdos.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * MSDOS Machine-dependent things.
X */
X
X/*
X * Names for the EXRC, HELP and temporary files.
X * Some of these may have been defined in the makefile.
X */
X
X#ifndef SYSVIMRC_FILE
X# define SYSVIMRC_FILE "$VIM\\_vimrc"
X#endif
X
X#ifndef SYSEXRC_FILE
X# define SYSEXRC_FILE "$VIM\\_exrc"
X#endif
X
X#ifndef VIMRC_FILE
X# define VIMRC_FILE "_vimrc"
X#endif
X
X#ifndef EXRC_FILE
X# define EXRC_FILE "_exrc"
X#endif
X
X#ifndef VIM_HLP
X# define VIM_HLP "$VIM\\vim.hlp"
X#endif
X
X#ifndef DEF_DIR
X# define DEF_DIR "c:\\tmp"
X#endif
X
X#define TMPNAME1 "viXXXXXX" /* put it in current dir */
X#define TMPNAME2 "voXXXXXX" /* is there a better place? */
X#define TMPNAMELEN 10
X
X#ifndef MAXMEM
X# define MAXMEM 256 /* use up to 256Kbyte for buffer */
X#endif
X#ifndef MAXMEMTOT
X# define MAXMEMTOT 0 /* decide in set_init */
X#endif
X
X#define BASENAMELEN 8 /* length of base of file name */
X
X/*
X * MSDOS Machine-dependent routines.
X */
X
X#ifdef remove
X# undef remove /* MSDOS remove()s when not readonly */
X#endif
X#define remove vim_remove
X
X/* use chdir() that also changes the default drive */
X#define chdir vim_chdir
END_OF_FILE
if test 1318 -ne `wc -c <'vim/src/msdos.h'`; then
echo shar: \"'vim/src/msdos.h'\" unpacked with wrong size!
fi
# end of 'vim/src/msdos.h'
fi
if test -f 'vim/src/ops.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/ops.h'\"
else
echo shar: Extracting \"'vim/src/ops.h'\" \(1805 characters\)
sed "s/^X//" >'vim/src/ops.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * ops.h: things shared between normal.c, cmdline.c and ops.c
X */
X
X/*
X * Operators
X */
X#define NOP 0 /* no pending operation */
X#define DELETE 1
X#define YANK 2
X#define CHANGE 3
X#define LSHIFT 4
X#define RSHIFT 5
X#define FILTER 6
X#define TILDE 7
X#define INDENT 8
X#define FORMAT 9
X#define COLON 10
X#define UPPER 11
X#define LOWER 12
X
X/*
X * operator characters; the order must correspond to the defines above
X */
XEXTERN char_u *opchars INIT(= (char_u *)"dyc<>!~=Q:Uu");
X
X/*
X * When a cursor motion command is made, it is marked as being a character or
X * line oriented motion. Then, if an operator is in effect, the operation
X * becomes character or line oriented accordingly.
X *
X * Character motions are marked as being inclusive or not. Most char. motions
X * are inclusive, but some (e.g. 'w') are not.
X *
X * Generally speaking, every command in normal() should either clear any pending
X * operator (with CLEAROP), or set the motion type variable.
X */
X
X/*
X * Motion types
X */
X#define MBAD (-1) /* 'bad' motion type marks unusable yank buf */
X#define MCHAR 0
X#define MLINE 1
X#define MBLOCK 2
X
XEXTERN int operator INIT(= NOP); /* current pending operator */
XEXTERN int mtype; /* type of the current cursor motion */
XEXTERN int mincl; /* true if char motion is inclusive */
XEXTERN colnr_t startvcol; /* start col for block mode operator */
XEXTERN colnr_t endvcol; /* end col for block mode operator */
XEXTERN long nlines; /* lines between startop and endop + 1 */
XEXTERN int yankbuffer INIT(= 0); /* current yank buffer */
XEXTERN int no_op; /* startop and endop the same */
END_OF_FILE
if test 1805 -ne `wc -c <'vim/src/ops.h'`; then
echo shar: \"'vim/src/ops.h'\" unpacked with wrong size!
fi
# end of 'vim/src/ops.h'
fi
if test -f 'vim/src/proto.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto.h'\"
else
echo shar: Extracting \"'vim/src/proto.h'\" \(1573 characters\)
sed "s/^X//" >'vim/src/proto.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * proto.h: include the (automatically generated) function prototypes
X *
X * the proto/xxx.pro files are automatically generated when using Manx/Aztec C.
X * For other compilers you will have to edit them.
X */
X
X#include "regexp.h" /* for struct regexp */
X
X/*
X * Machine-dependent routines.
X */
X#ifdef AMIGA
X# include "proto/amiga.pro"
X#endif
X#ifdef UNIX
X# include "proto/unix.pro"
X#endif
X#ifdef MSDOS
X# include "proto/msdos.pro"
X#endif
X
X#include "proto/alloc.pro"
X#include "proto/buffer.pro"
X#include "proto/charset.pro"
X#include "proto/cmdcmds.pro"
X#include "proto/cmdline.pro"
X#include "proto/csearch.pro"
X#include "proto/digraph.pro"
X#include "proto/edit.pro"
X#include "proto/fileio.pro"
X#include "proto/getchar.pro"
X#include "proto/help.pro"
X#include "proto/linefunc.pro"
X#include "proto/main.pro"
X#include "proto/mark.pro"
X
X#ifndef MESSAGE
Xvoid smsg __PARMS((char_u *, ...)); /* cannot be produced automatically */
X#endif
X#include "proto/memfile.pro"
X#include "proto/memline.pro"
X#include "proto/message.pro"
X#include "proto/misccmds.pro"
X#include "proto/normal.pro"
X#include "proto/ops.pro"
X#include "proto/param.pro"
X#include "proto/quickfix.pro"
X#include "proto/regexp.pro"
X#include "proto/regsub.pro"
X#include "proto/screen.pro"
X#include "proto/search.pro"
X#include "proto/tag.pro"
X#include "proto/term.pro"
X#include "proto/undo.pro"
X#include "proto/window.pro"
END_OF_FILE
if test 1573 -ne `wc -c <'vim/src/proto.h'`; then
echo shar: \"'vim/src/proto.h'\" unpacked with wrong size!
fi
# end of 'vim/src/proto.h'
fi
if test -f 'vim/src/proto/amiga.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/amiga.pro'\"
else
echo shar: Extracting \"'vim/src/proto/amiga.pro'\" \(1580 characters\)
sed "s/^X//" >'vim/src/proto/amiga.pro' <<'END_OF_FILE'
X/* amiga.c */
Xvoid win_resize_on __PARMS((void));
Xvoid win_resize_off __PARMS((void));
Xvoid mch_write __PARMS((unsigned char *p, int len));
Xint GetChars __PARMS((unsigned char *buf, int maxlen, int time));
Xint mch_char_avail __PARMS((void));
Xvoid sleep __PARMS((int n));
Xlong mch_avail_mem __PARMS((int special));
Xvoid vim_delay __PARMS((void));
Xvoid mch_suspend __PARMS((void));
Xvoid mch_windinit __PARMS((void));
Xvoid check_win __PARMS((int argc, char **argv));
Xvoid fname_case __PARMS((unsigned char *name));
Xvoid mch_settitle __PARMS((unsigned char *title, unsigned char *icon));
Xvoid mch_restore_title __PARMS((int which));
Xint vim_dirname __PARMS((unsigned char *buf, int len));
Xint FullName __PARMS((unsigned char *fname, unsigned char *buf, int len));
Xint isFullName __PARMS((unsigned char *fname));
Xlong getperm __PARMS((unsigned char *name));
Xint setperm __PARMS((unsigned char *name, long perm));
Xint isdir __PARMS((unsigned char *name));
Xvoid mch_windexit __PARMS((int r));
Xvoid mch_settmode __PARMS((int raw));
Xint mch_screenmode __PARMS((unsigned char *arg));
Xint mch_get_winsize __PARMS((void));
Xvoid mch_set_winsize __PARMS((void));
Xint call_shell __PARMS((unsigned char *cmd, int filter, int cooked));
Xvoid breakcheck __PARMS((void));
Xlong Chk_Abort __PARMS((void));
Xint ExpandWildCards __PARMS((int num_pat, unsigned char **pat, int *num_file, unsigned char ***file, int files_only, int list_notfound));
Xvoid FreeWild __PARMS((int num, unsigned char **file));
Xint has_wildcard __PARMS((unsigned char *p));
Xunsigned char *vimgetenv __PARMS((unsigned char *var));
END_OF_FILE
if test 1580 -ne `wc -c <'vim/src/proto/amiga.pro'`; then
echo shar: \"'vim/src/proto/amiga.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/amiga.pro'
fi
if test -f 'vim/src/proto/getchar.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/getchar.pro'\"
else
echo shar: Extracting \"'vim/src/proto/getchar.pro'\" \(1160 characters\)
sed "s/^X//" >'vim/src/proto/getchar.pro' <<'END_OF_FILE'
X/* getchar.c */
Xunsigned char *get_recorded __PARMS((void));
Xunsigned char *get_inserted __PARMS((void));
Xint stuff_empty __PARMS((void));
Xvoid flush_buffers __PARMS((int typeahead));
Xvoid ResetRedobuff __PARMS((void));
Xvoid AppendToRedobuff __PARMS((unsigned char *s));
Xvoid AppendCharToRedobuff __PARMS((int c));
Xvoid AppendNumberToRedobuff __PARMS((long n));
Xvoid stuffReadbuff __PARMS((unsigned char *s));
Xvoid stuffcharReadbuff __PARMS((int c));
Xvoid stuffnumReadbuff __PARMS((long n));
Xvoid copy_redo __PARMS((void));
Xint start_redo __PARMS((long count));
Xint start_redo_ins __PARMS((void));
Xvoid set_redo_ins __PARMS((void));
Xvoid stop_redo_ins __PARMS((void));
Xint ins_typestr __PARMS((unsigned char *str, int noremap));
Xvoid del_typestr __PARMS((int len));
Xint openscript __PARMS((unsigned char *name));
Xvoid updatescript __PARMS((int c));
Xint vgetc __PARMS((void));
Xint vpeekc __PARMS((void));
Xint domap __PARMS((int maptype, unsigned char *keys, int mode));
Xint check_abbr __PARMS((int c, unsigned char *ptr, int col, int mincol));
Xint makemap __PARMS((struct __stdio *fd));
Xint putescstr __PARMS((struct __stdio *fd, unsigned char *str, int set));
END_OF_FILE
if test 1160 -ne `wc -c <'vim/src/proto/getchar.pro'`; then
echo shar: \"'vim/src/proto/getchar.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/getchar.pro'
fi
if test -f 'vim/src/proto/memfile.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/memfile.pro'\"
else
echo shar: Extracting \"'vim/src/proto/memfile.pro'\" \(853 characters\)
sed "s/^X//" >'vim/src/proto/memfile.pro' <<'END_OF_FILE'
X/* memfile.c */
Xstruct memfile *mf_open __PARMS((unsigned char *fname, int new, int fail_nofile));
Xint mf_open_file __PARMS((struct memfile *mfp, unsigned char *fname));
Xvoid mf_close __PARMS((struct memfile *mfp, int delete));
Xstruct block_hdr *mf_new __PARMS((struct memfile *mfp, int negative, int page_count));
Xstruct block_hdr *mf_get __PARMS((struct memfile *mfp, long nr, int page_count));
Xvoid mf_put __PARMS((struct memfile *mfp, struct block_hdr *hp, int dirty, int infile));
Xvoid mf_free __PARMS((struct memfile *mfp, struct block_hdr *hp));
Xint mf_sync __PARMS((struct memfile *mfp, int all, int check_char));
Xint mf_release_all __PARMS((void));
Xlong mf_trans_del __PARMS((struct memfile *mfp, long old));
Xvoid mf_fullname __PARMS((struct memfile *mfp));
Xint mf_need_trans __PARMS((struct memfile *mfp));
Xvoid mf_statistics __PARMS((void));
END_OF_FILE
if test 853 -ne `wc -c <'vim/src/proto/memfile.pro'`; then
echo shar: \"'vim/src/proto/memfile.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/memfile.pro'
fi
if test -f 'vim/src/proto/memline.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/memline.pro'\"
else
echo shar: Extracting \"'vim/src/proto/memline.pro'\" \(959 characters\)
sed "s/^X//" >'vim/src/proto/memline.pro' <<'END_OF_FILE'
X/* memline.c */
Xint ml_open __PARMS((void));
Xvoid ml_open_files __PARMS((void));
Xvoid ml_close __PARMS((struct buffer *buf));
Xvoid ml_close_all __PARMS((void));
Xvoid ml_timestamp __PARMS((struct buffer *buf));
Xvoid ml_recover __PARMS((void));
Xvoid ml_sync_all __PARMS((int check_file));
Xvoid ml_preserve __PARMS((struct buffer *buf, int message));
Xunsigned char *ml_get __PARMS((long lnum));
Xunsigned char *ml_get_pos __PARMS((struct fpos *pos));
Xunsigned char *ml_get_cursor __PARMS((void));
Xunsigned char *ml_get_buf __PARMS((struct buffer *buf, long lnum, int will_change));
Xint ml_line_alloced __PARMS((void));
Xint ml_append __PARMS((long lnum, unsigned char *line, unsigned int len, int newfile));
Xint ml_replace __PARMS((long lnum, unsigned char *line, int copy));
Xint ml_delete __PARMS((long lnum));
Xvoid ml_setmarked __PARMS((long lnum));
Xlong ml_firstmarked __PARMS((void));
Xint ml_has_mark __PARMS((long lnum));
Xvoid ml_clearmarked __PARMS((void));
END_OF_FILE
if test 959 -ne `wc -c <'vim/src/proto/memline.pro'`; then
echo shar: \"'vim/src/proto/memline.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/memline.pro'
fi
if test -f 'vim/src/proto/misccmds.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/misccmds.pro'\"
else
echo shar: Extracting \"'vim/src/proto/misccmds.pro'\" \(1432 characters\)
sed "s/^X//" >'vim/src/proto/misccmds.pro' <<'END_OF_FILE'
X/* misccmds.c */
Xint get_indent __PARMS((void));
Xvoid set_indent __PARMS((int size, int delete));
Xint Opencmd __PARMS((int dir, int redraw, int delspaces));
Xint plines __PARMS((long p));
Xint plines_win __PARMS((struct window *wp, long p));
Xint plines_m __PARMS((long first, long last));
Xint plines_m_win __PARMS((struct window *wp, long first, long last));
Xvoid inschar __PARMS((int c));
Xvoid insstr __PARMS((unsigned char *s));
Xint delchar __PARMS((int fixpos));
Xvoid dellines __PARMS((long nlines, int dowindow, int undo));
Xint gchar __PARMS((struct fpos *pos));
Xint gchar_cursor __PARMS((void));
Xvoid pchar_cursor __PARMS((int c));
Xint inindent __PARMS((void));
Xvoid skipspace __PARMS((unsigned char **pp));
Xvoid skiptospace __PARMS((unsigned char **pp));
Xvoid skiptodigit __PARMS((unsigned char **pp));
Xlong getdigits __PARMS((unsigned char **pp));
Xunsigned char *plural __PARMS((long n));
Xvoid set_Changed __PARMS((void));
Xvoid unset_Changed __PARMS((struct buffer *buf));
Xvoid change_warning __PARMS((void));
Xint ask_yesno __PARMS((unsigned char *str));
Xvoid msgmore __PARMS((long n));
Xvoid beep __PARMS((void));
Xvoid expand_env __PARMS((unsigned char *src, unsigned char *dst, int dstlen));
Xvoid home_replace __PARMS((unsigned char *src, unsigned char *dst, int dstlen));
Xint fullpathcmp __PARMS((unsigned char *s1, unsigned char *s2));
Xunsigned char *gettail __PARMS((unsigned char *fname));
Xint ispathsep __PARMS((int c));
END_OF_FILE
if test 1432 -ne `wc -c <'vim/src/proto/misccmds.pro'`; then
echo shar: \"'vim/src/proto/misccmds.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/misccmds.pro'
fi
if test -f 'vim/src/proto/msdos.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/msdos.pro'\"
else
echo shar: Extracting \"'vim/src/proto/msdos.pro'\" \(1441 characters\)
sed "s/^X//" >'vim/src/proto/msdos.pro' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/* prototypes from msdos.c */
Xlong mch_avail_mem __ARGS((int));
Xvoid vim_delay __ARGS((void));
Xint vim_remove __ARGS((char_u *));
Xvoid mch_write __ARGS((char_u *, int));
Xint GetChars __ARGS((char_u *, int, int));
Xint mch_char_avail __ARGS((void));
Xvoid mch_suspend __ARGS((void));
Xvoid mch_windinit __ARGS((void));
Xvoid check_win __ARGS((int, char **));
Xvoid fname_case __ARGS((char_u *));
Xvoid mch_settitle __ARGS((char_u *, char_u *));
Xvoid mch_restore_title __PARMS((int which));
Xint vim_dirname __ARGS((char_u *, int));
Xint FullName __ARGS((char_u *, char_u *, int));
Xint isFullName __ARGS((char_u *));
Xlong getperm __ARGS((char_u *));
Xint setperm __ARGS((char_u *, long));
Xint isdir __ARGS((char_u *));
Xvoid mch_windexit __ARGS((int));
Xvoid mch_settmode __ARGS((int));
Xint mch_screenmode __ARGS((char_u *));
Xint mch_get_winsize __ARGS((void));
Xvoid set_window __ARGS((void));
Xvoid mch_set_winsize __ARGS((void));
Xint call_shell __ARGS((char_u *, int, int));
Xvoid breakcheck __ARGS((void));
Xchar_u *modname __ARGS((char_u *, char_u *));
Xint has_wildcard __ARGS((char_u *));
Xint ExpandWildCards __ARGS((int, char_u **, int *, char_u ***, int, int));
Xvoid FreeWild __ARGS((int, char_u **));
Xint vim_chdir __ARGS((char_u *));
END_OF_FILE
if test 1441 -ne `wc -c <'vim/src/proto/msdos.pro'`; then
echo shar: \"'vim/src/proto/msdos.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/msdos.pro'
fi
if test -f 'vim/src/proto/ops.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/ops.pro'\"
else
echo shar: Extracting \"'vim/src/proto/ops.pro'\" \(886 characters\)
sed "s/^X//" >'vim/src/proto/ops.pro' <<'END_OF_FILE'
X/* ops.c */
Xvoid doshift __PARMS((int op, int curs_top, int amount));
Xvoid shift_line __PARMS((int left, int round, int amount));
Xint is_yank_buffer __PARMS((int c, int write));
Xint dorecord __PARMS((int c));
Xint doexecbuf __PARMS((int c));
Xint insertbuf __PARMS((int c));
Xvoid dodelete __PARMS((void));
Xvoid dotilde __PARMS((void));
Xvoid swapchar __PARMS((struct fpos *pos));
Xvoid dochange __PARMS((void));
Xvoid init_yank __PARMS((void));
Xint doyank __PARMS((int deleting));
Xvoid doput __PARMS((int dir, long count, int fix_indent));
Xvoid dodis __PARMS((void));
Xvoid dis_msg __PARMS((unsigned char *p, int skip_esc));
Xvoid dodojoin __PARMS((long count, int insert_space, int redraw));
Xint dojoin __PARMS((int insert_space, int redraw));
Xvoid doformat __PARMS((void));
Xvoid startinsert __PARMS((int initstr, int startln, long count));
Xint doaddsub __PARMS((int command, long Prenum1));
END_OF_FILE
if test 886 -ne `wc -c <'vim/src/proto/ops.pro'`; then
echo shar: \"'vim/src/proto/ops.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/ops.pro'
fi
if test -f 'vim/src/proto/screen.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/screen.pro'\"
else
echo shar: Extracting \"'vim/src/proto/screen.pro'\" \(1485 characters\)
sed "s/^X//" >'vim/src/proto/screen.pro' <<'END_OF_FILE'
X/* screen.c */
Xvoid updateline __PARMS((void));
Xvoid updateScreen __PARMS((int type));
Xvoid win_update __PARMS((struct window *wp));
Xvoid status_redraw_all __PARMS((void));
Xvoid win_redr_status __PARMS((struct window *wp));
Xvoid screen_outchar __PARMS((int c, int row, int col));
Xvoid screen_msg __PARMS((unsigned char *msg, int row, int col));
Xvoid screen_start __PARMS((void));
Xint set_highlight __PARMS((int context));
Xvoid start_highlight __PARMS((void));
Xvoid stop_highlight __PARMS((void));
Xvoid screen_fill __PARMS((int start_row, int end_row, int start_col, int end_col, int c1, int c2));
Xvoid comp_Botline_all __PARMS((void));
Xvoid comp_Botline __PARMS((struct window *wp));
Xvoid screenclear __PARMS((void));
Xvoid check_cursor __PARMS((void));
Xvoid cursupdate __PARMS((void));
Xvoid curs_columns __PARMS((int scroll));
Xint getvcol __PARMS((struct window *wp, struct fpos *pos, int type));
Xvoid scrolldown __PARMS((long nlines));
Xvoid scrollup __PARMS((long nlines));
Xint win_ins_lines __PARMS((struct window *wp, int row, int nlines, int invalid, int mayclear));
Xint win_del_lines __PARMS((struct window *wp, int row, int nlines, int invalid, int mayclear));
Xvoid win_rest_invalid __PARMS((struct window *wp));
Xint screen_del_lines __PARMS((int off, int row, int nlines, int end));
Xvoid showmode __PARMS((void));
Xvoid delmode __PARMS((void));
Xvoid showruler __PARMS((int always));
Xvoid win_redr_ruler __PARMS((struct window *wp, int always));
Xint screen_valid __PARMS((void));
END_OF_FILE
if test 1485 -ne `wc -c <'vim/src/proto/screen.pro'`; then
echo shar: \"'vim/src/proto/screen.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/screen.pro'
fi
if test -f 'vim/src/proto/search.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/search.pro'\"
else
echo shar: Extracting \"'vim/src/proto/search.pro'\" \(833 characters\)
sed "s/^X//" >'vim/src/proto/search.pro' <<'END_OF_FILE'
X/* search.c */
Xstruct regexp *myregcomp __PARMS((unsigned char *pat, int sub_cmd, int which_pat));
Xint searchit __PARMS((struct fpos *pos, int dir, unsigned char *str, long count, int end, int message));
Xint dosearch __PARMS((int dirc, unsigned char *str, int reverse, long count, int echo, int message));
Xint searchc __PARMS((int c, int dir, int type, long count));
Xstruct fpos *showmatch __PARMS((int initc));
Xint findfunc __PARMS((int dir, int what, long count));
Xint findsent __PARMS((int dir, long count));
Xint findpar __PARMS((int dir, long count, int what, int both));
Xint startPS __PARMS((long lnum, int para, int both));
Xint fwd_word __PARMS((long count, int type, int eol));
Xint bck_word __PARMS((long count, int type));
Xint end_word __PARMS((long count, int type, int stop));
Xint skip_chars __PARMS((int class, int dir));
END_OF_FILE
if test 833 -ne `wc -c <'vim/src/proto/search.pro'`; then
echo shar: \"'vim/src/proto/search.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/search.pro'
fi
if test -f 'vim/src/proto/term.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/term.pro'\"
else
echo shar: Extracting \"'vim/src/proto/term.pro'\" \(925 characters\)
sed "s/^X//" >'vim/src/proto/term.pro' <<'END_OF_FILE'
X/* term.c */
Xvoid set_term __PARMS((unsigned char *term));
Xchar *tgoto __PARMS((char *cm, int x, int y));
Xvoid termcapinit __PARMS((unsigned char *term));
Xvoid flushbuf __PARMS((void));
Xvoid outchar __PARMS((unsigned int c));
Xvoid outstrn __PARMS((unsigned char *s));
Xvoid outstr __PARMS((unsigned char *s));
Xvoid windgoto __PARMS((int row, int col));
Xvoid setcursor __PARMS((void));
Xvoid ttest __PARMS((int pairs));
Xint inchar __PARMS((unsigned char *buf, int maxlen, int time));
Xint check_termcode __PARMS((unsigned char *buf));
Xvoid outnum __PARMS((long n));
Xvoid check_winsize __PARMS((void));
Xvoid set_winsize __PARMS((int width, int height, int mustset));
Xvoid settmode __PARMS((int raw));
Xvoid starttermcap __PARMS((void));
Xvoid stoptermcap __PARMS((void));
Xvoid cursor_on __PARMS((void));
Xvoid cursor_off __PARMS((void));
Xvoid scroll_region_set __PARMS((struct window *wp));
Xvoid scroll_region_reset __PARMS((void));
END_OF_FILE
if test 925 -ne `wc -c <'vim/src/proto/term.pro'`; then
echo shar: \"'vim/src/proto/term.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/term.pro'
fi
if test -f 'vim/src/proto/unix.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/unix.pro'\"
else
echo shar: Extracting \"'vim/src/proto/unix.pro'\" \(1423 characters\)
sed "s/^X//" >'vim/src/proto/unix.pro' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * functions in unix.c
X */
Xvoid mch_write __ARGS((char_u *, int));
Xint GetChars __ARGS((char_u *, int, int));
Xint mch_char_avail __ARGS((void));
Xlong mch_avail_mem __ARGS((int));
Xvoid vim_delay __ARGS((void));
Xvoid mch_suspend __ARGS((void));
Xvoid mch_windinit __ARGS((void));
Xvoid check_win __ARGS((int, char **));
Xvoid fname_case __ARGS((char_u *));
Xvoid mch_settitle __ARGS((char_u *, char_u *));
Xvoid mch_restore_title __PARMS((int which));
Xint vim_dirname __ARGS((char_u *, int));
Xint FullName __ARGS((char_u *, char_u *, int));
Xint isFullName __ARGS((char_u *));
Xlong getperm __ARGS((char_u *));
Xint setperm __ARGS((char_u *, int));
Xint isdir __ARGS((char_u *));
Xvoid mch_windexit __ARGS((int));
Xvoid mch_settmode __ARGS((int));
Xint mch_screenmode __ARGS((char_u *));
Xint mch_get_winsize __ARGS((void));
Xvoid mch_set_winsize __ARGS((void));
Xint call_shell __ARGS((char_u *, int, int));
Xvoid breakcheck __ARGS((void));
Xint ExpandWildCards __ARGS((int, char_u **, int *, char_u ***, int, int));
Xvoid FreeWild __ARGS((int, char_u **));
Xint has_wildcard __ARGS((char_u *));
Xint have_wildcard __ARGS((int, char_u **));
X#if defined(M_XENIX) || defined(UTS2)
Xint rename __ARGS((char_u *, char_u *));
X#endif
END_OF_FILE
if test 1423 -ne `wc -c <'vim/src/proto/unix.pro'`; then
echo shar: \"'vim/src/proto/unix.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/unix.pro'
fi
if test -f 'vim/src/proto/window.pro' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/proto/window.pro'\"
else
echo shar: Extracting \"'vim/src/proto/window.pro'\" \(869 characters\)
sed "s/^X//" >'vim/src/proto/window.pro' <<'END_OF_FILE'
X/* window.c */
Xvoid do_window __PARMS((int nchar, long Prenum));
Xint win_split __PARMS((long new_height, int redraw));
Xint make_windows __PARMS((int count));
Xvoid win_equal __PARMS((struct window *next_curwin, int redraw));
Xvoid close_window __PARMS((int free_buf));
Xvoid close_others __PARMS((int message));
Xvoid win_init __PARMS((struct window *wp));
Xvoid win_enter __PARMS((struct window *wp, int undo_sync));
Xstruct window *win_alloc __PARMS((struct window *after));
Xvoid win_free __PARMS((struct window *wp));
Xint win_alloc_lsize __PARMS((struct window *wp));
Xvoid win_free_lsize __PARMS((struct window *wp));
Xvoid screen_new_rows __PARMS((void));
Xvoid win_setheight __PARMS((int height));
Xvoid win_comp_scroll __PARMS((struct window *wp));
Xvoid command_height __PARMS((void));
Xvoid last_status __PARMS((void));
Xunsigned char *file_name_at_cursor __PARMS((void));
END_OF_FILE
if test 869 -ne `wc -c <'vim/src/proto/window.pro'`; then
echo shar: \"'vim/src/proto/window.pro'\" unpacked with wrong size!
fi
# end of 'vim/src/proto/window.pro'
fi
if test -f 'vim/src/ptx_stdlib.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/ptx_stdlib.h'\"
else
echo shar: Extracting \"'vim/src/ptx_stdlib.h'\" \(1035 characters\)
sed "s/^X//" >'vim/src/ptx_stdlib.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * ptx_stdlib.h: declarations which are needed for sequent
X */
X
Xextern void free(void *);
X#ifdef SIZE_T /* sys/types.h */
Xextern void *malloc(size_t);
X#else
Xextern void *malloc(unsigned);
X#endif
X
X#ifndef _FCNTL_H_
Xextern int open(char *, int, ...);
X#endif
Xextern int close(int);
Xextern int read(int, char *, unsigned);
Xextern int write(int, char *, unsigned);
Xextern int ioctl(int, int, ...);
Xextern int unlink(char *);
X
Xextern char *getenv(char *);
X
X#ifdef _NFILE /* stdio.h */
Xextern int _filbuf(FILE *);
Xextern int _flsbuf(unsigned char, FILE *);
X#endif
X
X#ifdef _POLL_H_
Xextern int poll(struct pollfd[], unsigned long, int);
X#endif /* _POLL_H_ */
X
Xextern char *getcwd(char *, int);
X
Xextern int chdir(char *);
X
Xextern int atoi (char *);
Xextern long atol(char *);
Xextern long strtol(char *, char **, int);
X
Xextern int isatty(int);
END_OF_FILE
if test 1035 -ne `wc -c <'vim/src/ptx_stdlib.h'`; then
echo shar: \"'vim/src/ptx_stdlib.h'\" unpacked with wrong size!
fi
# end of 'vim/src/ptx_stdlib.h'
fi
if test -f 'vim/src/regexp.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/regexp.h'\"
else
echo shar: Extracting \"'vim/src/regexp.h'\" \(1571 characters\)
sed "s/^X//" >'vim/src/regexp.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
X *
X * This is NOT the original regular expression code as written by
X * Henry Spencer. This code has been modified specifically for use
X * with the VIM editor, and should not be used apart from compiling
X * VIM. If you want a good regular expression library, get the
X * original code. The copyright notice that follows is from the
X * original.
X *
X * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
X *
X * Definitions etc. for regexp(3) routines.
X *
X * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
X * not the System V one.
X */
X
X#ifndef _REGEXP_H
X#define _REGEXP_H
X
X#define NSUBEXP 10
Xtypedef struct regexp {
X char_u *startp[NSUBEXP];
X char_u *endp[NSUBEXP];
X char_u regstart; /* Internal use only. */
X char_u reganch; /* Internal use only. */
X char_u *regmust; /* Internal use only. */
X int regmlen; /* Internal use only. */
X char_u program[1]; /* Unwarranted chumminess with compiler. */
X} regexp;
X
X/* regexp.c */
Xregexp *regcomp __ARGS((char_u *));
Xint regexec __ARGS((regexp *, char_u *, int));
X/* int cstrncmp __ARGS((char_u *, char_u *, int)); */
Xchar_u *cstrchr __ARGS((char_u *, int));
X
X/* regsub.c */
Xint regsub __ARGS((regexp *, char_u *, char_u *, int, int));
X
X/* search.c */
Xextern void regerror __ARGS((char_u *));
X
X#ifndef ORIGINAL
Xextern int reg_ic; /* set non-zero to ignore case in searches */
Xextern int reg_magic; /* set zero to disable magicness of .*[~& */
X#endif
X#endif /* _REGEXP_H */
END_OF_FILE
if test 1571 -ne `wc -c <'vim/src/regexp.h'`; then
echo shar: \"'vim/src/regexp.h'\" unpacked with wrong size!
fi
# end of 'vim/src/regexp.h'
fi
if test -f 'vim/src/sun_stdlib.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/src/sun_stdlib.h'\"
else
echo shar: Extracting \"'vim/src/sun_stdlib.h'\" \(1879 characters\)
sed "s/^X//" >'vim/src/sun_stdlib.h' <<'END_OF_FILE'
X/* vi:ts=4:sw=4
X *
X * VIM - Vi IMproved by Bram Moolenaar
X *
X * Read the file "credits.txt" for a list of people who contributed.
X * Read the file "uganda.txt" for copying and usage conditions.
X */
X
X/*
X * sun_stdlib.h: declararions used on a sun
X */
X
X#ifndef __stdlib_h
Xextern int atoi (char *);
Xextern long atol(char *);
Xextern void free(void *);
Xextern char *getenv(char *);
Xextern void *malloc(unsigned);
Xextern void *realloc(void *, unsigned);
Xextern void *calloc(unsigned, unsigned);
Xextern int read(int, char *, unsigned);
Xextern int write(int, char *, unsigned);
Xextern int unlink(char *);
X#endif
X
X#ifdef __sys_types_h
Xextern off_t lseek(int, off_t, int);
X
X# ifdef _sys_time_h
Xextern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
X# endif _sys_time_h
X
X#else
Xextern long lseek(int, long, int);
X#endif
X
Xextern long tell(int);
Xextern void perror(char *);
X
X#include <fcntl.h>
X
Xextern int close(int);
X
X#ifdef FILE
Xextern int _filbuf(FILE *);
Xextern int _flsbuf(unsigned char, FILE *);
Xextern int fclose(FILE *);
Xextern int fprintf(FILE *, char *, ...);
Xextern int fscanf(FILE *, char *, ...);
Xextern int fseek(FILE *, long, int);
Xextern int fflush(FILE *);
Xextern int fread(char *, int, int, FILE *);
X#else
Xextern char *sprintf(char *, char *, ...);
X#endif
X
Xextern int printf(char *, ...);
X
Xextern int scanf(char *, ...);
Xextern int sscanf(char *, char *, ...);
X
Xextern int system(char *);
X
X#ifndef __sys_unistd_h
Xextern char *getcwd(char *, int);
Xextern int chdir(char *);
Xextern int getuid(void);
Xextern int getgid(void);
X#endif /* __sys_unistd_h */
X
Xextern long strtol(char * , char **, int);
X
Xextern char *memccpy(char *, char *, int, int);
Xextern char *memchr(char *, int, int);
Xextern char *memset(char *, int, int);
X
X#include <string.h>
Xextern int strcasecmp(char *, char *);
X
Xextern int toupper(int);
Xextern int tolower(int);
Xextern int isatty(int);
END_OF_FILE
if test 1879 -ne `wc -c <'vim/src/sun_stdlib.h'`; then
echo shar: \"'vim/src/sun_stdlib.h'\" unpacked with wrong size!
fi
# end of 'vim/src/sun_stdlib.h'
fi
if test -f 'vim/tutor/poster' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vim/tutor/poster'\"
else
echo shar: Extracting \"'vim/tutor/poster'\" \(860 characters\)
sed "s/^X//" >'vim/tutor/poster' <<'END_OF_FILE'
XArticle 3390 of alt.sources:
XXref: oce-rd1 comp.editors:3231 alt.sources:3390
XPath: oce-rd1!venlo!hp4nl!mcsun!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!pikes!slate!bware
XFrom: bware@slate.mines.colorado.edu (Ware Bob)
XNewsgroups: comp.editors,alt.sources
XSubject: hands on vi tutor
XKeywords: for new users
XMessage-ID: <1991Jul17.161355.15677@slate.mines.colorado.edu>
XDate: 17 Jul 91 16:13:55 GMT
XSender: bware@slate.mines.colorado.edu (Ware Bob)
XOrganization: Colorado School of Mines
XLines: 830
X
X
XI posted this a few weeks ago, but a number of people have munged
Xtheir copy, so I am reposting it with better instructions.
X
XThis is a "hand-on" tutor to help new users learn the vi editor.
X
XBob Ware, Colorado School of Mines, Golden, Co 80401, USA
X(303) 273-3987
Xbware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet
END_OF_FILE
if test 860 -ne `wc -c <'vim/tutor/poster'`; then
echo shar: \"'vim/tutor/poster'\" unpacked with wrong size!
fi
# end of 'vim/tutor/poster'
fi
echo shar: End of archive 25 \(of 26\).
cp /dev/null ark25isdone
MISSING=""
for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 26 archives.
rm -f ark[1-9]isdone ark[1-9][0-9]isdone
else
echo You still must unpack the following archives:
echo " " ${MISSING}
fi
exit 0
exit 0 # Just in case...