home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume37 / vim / part01 < prev    next >
Encoding:
Text File  |  1993-04-22  |  67.6 KB  |  1,884 lines

  1. Newsgroups: comp.sources.misc
  2. From: mool@oce.nl (Bram Moolenaar)
  3. Subject: v37i001:  vim - Vi IMitation editor v1.27, Part01/24
  4. Message-ID: <csm-v37i001=vim.121529@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: c705eea8f9e7574012aa19f97280578a
  6. Date: Fri, 23 Apr 1993 17:17:16 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: mool@oce.nl (Bram Moolenaar)
  10. Posting-number: Volume 37, Issue 1
  11. Archive-name: vim/part01
  12. Environment: UNIX, AMIGA, MS-DOS
  13.  
  14. Vim - Vi IMitation. A clone of the UNIX text editor Vi. Very useful for 
  15. editing programs and other plain ASCII text. Full Vi compatibility (except Q 
  16. command) and includes most Ex commands.
  17.  
  18. Extra features above Vi: Multilevel undo, command line history, improved 
  19. command line editing, command typeahead display, command to display yank 
  20. buffers, possibility to edit binary files, file name stack, support for Manx 
  21. QuickFix, shows current file name in window title, on-line help, etc. 
  22.  
  23. Version 1.27, update to 1.24. Most important changes:
  24. - 'ignorecase' did not work with UNIX, fixed
  25. - ":s/a/b/ did not work with MSDOS, fixed
  26. - all other reported bugs fixed
  27. - portability for UNIX improved for linux, hpux, pyramid, SCO Xenix, etc.
  28. - improved security for .exrc and .vimrc in current directory
  29. - a few Ex commands added and a few compatibility problems fixed
  30. - added 'compatible' option to switch off a few vi incompatible extentions
  31. - Vim now works on more terminals (e.g. Sun cmdtool)
  32. - with Amiga DOS 2.0 arp.library is no longer needed
  33. - help file is now displayed using terminal codes
  34. - support for locale() with UNIX
  35.  
  36. Portability: Runs on Amiga, MSDOS and several UNIX versions.
  37.  
  38. Distribution:
  39. comp.sources.misc: Sources and documentation (shell archive)
  40. comp.binaries.amiga: AMIGA binaries and documentation (lha archive)
  41. comp.binaries.ibm.pc: MSDOS binaries and documentation (lha archive)
  42. (Sorry to post the documentation three times. It is the only way to guarantee 
  43. that everybody gets it. Otherwise people will start asking me for it).
  44.  
  45. The shell archive contains a few uuencoded files and the reference.doc file
  46. is split up in three. To get the original files back you can use the
  47. "execute.me" script.
  48.  
  49. Vim is public domain. You are encouraged to put it on ftp servers. It has
  50. already been put on "Aminet". I will ask Fred Fish to put it on one of his
  51. disks. 
  52.  
  53. -------------8<----------------8<----------------8<---------------8<--------
  54. #! /bin/sh
  55. # This is a shell archive.  Remove anything before this line, then unpack
  56. # it by saving it into a file and typing "sh file".  To overwrite existing
  57. # files, type "sh file -c".  You can also feed this as standard input via
  58. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  59. # will see the following message at the end:
  60. #        "End of archive 1 (of 23)."
  61. # Contents:  vim vim/.exrc vim/doc vim/doc/unix.doc vim/doc/vim132.uue
  62. #   vim/execute.me vim/macros vim/macros/center.uue vim/macros/hanoi
  63. #   vim/macros/hanoi/click.me vim/macros/hanoi/hanoi.mac.uue
  64. #   vim/macros/hanoi/poster vim/macros/maze vim/macros/maze/README
  65. #   vim/macros/maze/makefile vim/macros/maze/maze.c
  66. #   vim/macros/maze/maze_5.78 vim/macros/maze/maze_ansi.c
  67. #   vim/macros/maze/poster vim/macros/readme vim/src vim/src/addcr.c
  68. #   vim/src/ascii.h vim/src/debug.h vim/src/keymap.h vim/src/macros.h
  69. #   vim/src/mark.h vim/src/proto vim/src/proto.h
  70. #   vim/src/proto/alloc.pro vim/src/proto/amiga.pro
  71. #   vim/src/proto/buffers.pro vim/src/proto/charset.pro
  72. #   vim/src/proto/cmdline.pro vim/src/proto/csearch.pro
  73. #   vim/src/proto/digraph.pro vim/src/proto/edit.pro
  74. #   vim/src/proto/fileio.pro vim/src/proto/help.pro
  75. #   vim/src/proto/linefunc.pro vim/src/proto/main.pro
  76. #   vim/src/proto/mark.pro vim/src/proto/message.pro
  77. #   vim/src/proto/misccmds.pro vim/src/proto/normal.pro
  78. #   vim/src/proto/ops.pro vim/src/proto/param.pro
  79. #   vim/src/proto/quickfix.pro vim/src/proto/regexp.pro
  80. #   vim/src/proto/regsub.pro vim/src/proto/screen.pro
  81. #   vim/src/proto/script.pro vim/src/proto/search.pro
  82. #   vim/src/proto/storage.pro vim/src/proto/tag.pro
  83. #   vim/src/proto/term.pro vim/src/proto/termlib.pro
  84. #   vim/src/proto/undo.pro vim/src/ptx_stdlib.h vim/src/regexp.h
  85. #   vim/src/regmagic.h vim/src/termlib.fix.uue vim/src/vim.prj
  86. #   vim/src/vimresp vim/todo vim/tutor vim/tutor/Readme
  87. #   vim/tutor/poster
  88. # Wrapped by mool@oce-rd2 on Mon Apr 19 15:50:03 1993
  89. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  90. if test ! -d 'vim' ; then
  91.     echo shar: Creating directory \"'vim'\"
  92.     mkdir 'vim'
  93. fi
  94. if test -f 'vim/.exrc' -a "${1}" != "-c" ; then 
  95.   echo shar: Will not clobber existing file \"'vim/.exrc'\"
  96. else
  97. echo shar: Extracting \"'vim/.exrc'\" \(35 characters\)
  98. sed "s/^X//" >'vim/.exrc' <<'END_OF_FILE'
  99. Xset ai bs=2 shell=csh nojs nord ru
  100. END_OF_FILE
  101. if test 35 -ne `wc -c <'vim/.exrc'`; then
  102.     echo shar: \"'vim/.exrc'\" unpacked with wrong size!
  103. fi
  104. # end of 'vim/.exrc'
  105. fi
  106. if test ! -d 'vim/doc' ; then
  107.     echo shar: Creating directory \"'vim/doc'\"
  108.     mkdir 'vim/doc'
  109. fi
  110. if test -f 'vim/doc/unix.doc' -a "${1}" != "-c" ; then 
  111.   echo shar: Will not clobber existing file \"'vim/doc/unix.doc'\"
  112. else
  113. echo shar: Extracting \"'vim/doc/unix.doc'\" \(1300 characters\)
  114. sed "s/^X//" >'vim/doc/unix.doc' <<'END_OF_FILE'
  115. XThis file contains the particularities for the UNIX version of Vim.
  116. X
  117. XThe default help filename is "/usr/local/doc/vim.hlp"
  118. XThe files "$HOME/.vimrc" and "$HOME/.exrc" are used instead of "s:.vimrc" and 
  119. X"s:.exrc". Additionally "/usr/etc/.vimrc" is used first.
  120. X
  121. XTemporary files (for filtering) are put in "/tmp".
  122. X
  123. XIn some rare cases the terminal may have a problem with CTRL-Q or CTRL-S. To 
  124. Xget around this you can map another key to CTRL-Q and CTRL-S, and remap 
  125. XCTRL-Q and CTRL-S to nothing. You could use CTRL-W and CTRL-X:
  126. X    :noremap! ^W ^V017
  127. X    :noremap! ^X ^V019
  128. X    :noremap! ^V017 ^V^V
  129. X    :noremap! ^V019 ^V^V
  130. X    :noremap ^W ^V017
  131. X    :noremap ^X ^V019
  132. X    :noremap ^V017 ^V^V
  133. X    :noremap ^V019 ^V^V
  134. X(^V is the single character CTRL-V. Do not use the '^' character. You have to 
  135. Xtype CTRL-V twice to get one. What is shown above is what you have to type, 
  136. Xit will look different on the screen or in the .exrc file.)
  137. X
  138. XWith wildcard expansion you can use <~> (home directory) and <$> 
  139. X(environment variable).
  140. X
  141. XIf terminal updating is slow, try resetting the 'showcommand' and the 
  142. X'ruler' option (e.g. in a shell window in suntools).
  143. X
  144. XThe file Vim132 is a shell script that can be used to put Vim in 132 column 
  145. Xmode on a vt100 and lookalikes.
  146. X
  147. XThe *.info files are for the Amiga. You don't need them with unix.
  148. END_OF_FILE
  149. if test 1300 -ne `wc -c <'vim/doc/unix.doc'`; then
  150.     echo shar: \"'vim/doc/unix.doc'\" unpacked with wrong size!
  151. fi
  152. # end of 'vim/doc/unix.doc'
  153. fi
  154. if test -f 'vim/doc/vim132.uue' -a "${1}" != "-c" ; then 
  155.   echo shar: Will not clobber existing file \"'vim/doc/vim132.uue'\"
  156. else
  157. echo shar: Extracting \"'vim/doc/vim132.uue'\" \(372 characters\)
  158. sed "s/^X//" >'vim/doc/vim132.uue' <<'END_OF_FILE'
  159. X
  160. Xbegin 644 vim132
  161. XM(R$@+V)I;B]C<V@*(R!3:&5L;"!S8W)I<'0@9F]R('5S92!W:71H(%5.25@*1
  162. XM(R!3=&%R=',@=7`@5FEM('=I=&@@=&AE('1E<FUI;F%L(&EN(#$S,B!C;VQU.
  163. XM;6X@;6]D90HC($]N;'D@=V]R:W,@;VX@5E0M,3`P('1E<FUI;F%L<R!A;F0@,
  164. XM;&]O:V%L:6ME<PHC"G-E="!O;&1T97)M/21T97)M"F5C:&\@(AM;/S-H(@IS[
  165. XM971E;G8@5$5232!V=#$P,"UW(`IV:6T@)"H*<V5T('1E<FT])&]L9'1E<FT*M
  166. X-96-H;R`B&UL_,VPB"C$P"
  167. X``
  168. Xend
  169. Xsize 238
  170. END_OF_FILE
  171. if test 372 -ne `wc -c <'vim/doc/vim132.uue'`; then
  172.     echo shar: \"'vim/doc/vim132.uue'\" unpacked with wrong size!
  173. fi
  174. # end of 'vim/doc/vim132.uue'
  175. fi
  176. if test -f 'vim/execute.me' -a "${1}" != "-c" ; then 
  177.   echo shar: Will not clobber existing file \"'vim/execute.me'\"
  178. else
  179. echo shar: Extracting \"'vim/execute.me'\" \(599 characters\)
  180. sed "s/^X//" >'vim/execute.me' <<'END_OF_FILE'
  181. X#execute this script while standing in the 'vim' directory
  182. Xcd macros
  183. Xuudecode center.uue
  184. Xrm center.uue
  185. Xcd maze
  186. Xuudecode maze.mac.uue
  187. Xrm maze.mac.uue
  188. Xcd ../hanoi
  189. Xuudecode hanoi.mac.uue
  190. Xrm hanoi.mac.uue
  191. Xcd ../../src
  192. Xuudecode digraph.c.uue
  193. Xuudecode tcconfig.tc.uue
  194. Xuudecode termlib.fix.uue
  195. Xrm digraph.c.uue tcconfig.tc.uue termlib.fix.uue
  196. Xcd ../doc
  197. Xuudecode vim.hlp.uue
  198. Xuudecode digraph.doc.uue
  199. Xuudecode vim.man.uue
  200. Xuudecode vim132.uue
  201. Xrm vim.hlp.uue digraph.doc.uue vim.man.uue vim132.uue
  202. Xcat reference.doc1 reference.doc2 reference.doc3 >reference.doc
  203. Xrm reference.doc1 reference.doc2 reference.doc3
  204. END_OF_FILE
  205. if test 599 -ne `wc -c <'vim/execute.me'`; then
  206.     echo shar: \"'vim/execute.me'\" unpacked with wrong size!
  207. fi
  208. chmod +x 'vim/execute.me'
  209. # end of 'vim/execute.me'
  210. fi
  211. if test ! -d 'vim/macros' ; then
  212.     echo shar: Creating directory \"'vim/macros'\"
  213.     mkdir 'vim/macros'
  214. fi
  215. if test -f 'vim/macros/center.uue' -a "${1}" != "-c" ; then 
  216.   echo shar: Will not clobber existing file \"'vim/macros/center.uue'\"
  217. else
  218. echo shar: Extracting \"'vim/macros/center.uue'\" \(274 characters\)
  219. sed "s/^X//" >'vim/macros/center.uue' <<'END_OF_FILE'
  220. X
  221. Xbegin 644 center
  222. XM(E1H:7,@;6%C<F\@8V5N=&5R<R!A(&QI;F4@:6X@86X@.#`@8VAA<F%C=&5R$
  223. XM('-P86-E+@HB0V%R969U;#H@;&EN97,@;&]N9V5R('1H86X@.#`@8VAA<F%CY
  224. XM=&5R<R!W:6QL(&)E('1R=6YC871E9`IM87`@.V-E(#IS+UY;(`E=*B\O#21MS
  225. XB83@Q82`;.#$6?$1@86QL9#`Z<R\@("\@+V<-)'`-:R1X"EY;+
  226. X``
  227. Xend
  228. Xsize 169
  229. END_OF_FILE
  230. if test 274 -ne `wc -c <'vim/macros/center.uue'`; then
  231.     echo shar: \"'vim/macros/center.uue'\" unpacked with wrong size!
  232. fi
  233. # end of 'vim/macros/center.uue'
  234. fi
  235. if test ! -d 'vim/macros/hanoi' ; then
  236.     echo shar: Creating directory \"'vim/macros/hanoi'\"
  237.     mkdir 'vim/macros/hanoi'
  238. fi
  239. if test -f 'vim/macros/hanoi/click.me' -a "${1}" != "-c" ; then 
  240.   echo shar: Will not clobber existing file \"'vim/macros/hanoi/click.me'\"
  241. else
  242. echo shar: Extracting \"'vim/macros/hanoi/click.me'\" \(255 characters\)
  243. sed "s/^X//" >'vim/macros/hanoi/click.me' <<'END_OF_FILE'
  244. X
  245. X
  246. XSee Vim solve the towers of Hanoi!
  247. X
  248. XInstructions:
  249. X   type ":so hanoi.mac<RETURN>" to load the macros
  250. X   type "g" to start it
  251. X
  252. Xand watch it go.
  253. X
  254. X     to quit type ":q!<RETURN>"
  255. Xto interrupt type CTRL-C
  256. X
  257. X(This text will disappear as soon as you type "g")
  258. END_OF_FILE
  259. if test 255 -ne `wc -c <'vim/macros/hanoi/click.me'`; then
  260.     echo shar: \"'vim/macros/hanoi/click.me'\" unpacked with wrong size!
  261. fi
  262. # end of 'vim/macros/hanoi/click.me'
  263. fi
  264. if test -f 'vim/macros/hanoi/hanoi.mac.uue' -a "${1}" != "-c" ; then 
  265.   echo shar: Will not clobber existing file \"'vim/macros/hanoi/hanoi.mac.uue'\"
  266. else
  267. echo shar: Extracting \"'vim/macros/hanoi/hanoi.mac.uue'\" \(1577 characters\)
  268. sed "s/^X//" >'vim/macros/hanoi/hanoi.mac.uue' <<'END_OF_FILE'
  269. X
  270. Xbegin 644 hanoi.mac
  271. XM<V5T(')E;6%P"G-E="!N;W1E<G-E"G-E="!W<F%P<V-A;@HB('1O('-E="!T[
  272. XM:&4@:&5I9VAT(&]F('1H92!T;W=E<BP@8VAA;F=E('1H92!D:6=I="!I;B!T<
  273. XM:&4@9F]L;&]W:6YG"B(@='=O(&QI;F5S('1O('1H92!H96EG:'0@>6]U('=A1
  274. XM;G0@*'-E;&5C="!F<F]M(#$@=&\@.2D*;6%P('0@-PIM87`A('0@-PIM87`@#
  275. XM3"`Q1R]T#5@O7C`-)%`Q1THD06XD0D=#,&4D6#!%,$8D6"]4#4!F#4!H#21!$
  276. XM,4=*0&8P;"18;B1050IM87`@9R!)3`H*;6%P($H@+UXP6UYT72HD#0IM87`@A
  277. XM6"!X"FUA<"!0('`*;6%P(%4@3`IM87`@02`B9GEL"FUA<"!"(")H>6P*;6%P8
  278. XM($,@(F9P"FUA<"!E(")F>3)L"FUA<"!%(")H<`IM87`@1B`B:'DR;`H*(B!I\
  279. XM;FET:6%L:7-A=&EO;G,Z"B(@2TT)8VQE86YU<"!B=69F97(*(B!9"6-R96%T1
  280. XM92!T;W=E<B!O9B!D97-I<F5D(&AE:6=H=`HB($Y/40EC;W!Y(&ET(&%N9"!I;
  281. XM;G-T97(@82!4"B(@3D\)8V]P>2!T:&ES(&]N90HB(%,)8VAA;F=E(&QA<W0@*
  282. XM8VAA<B!I;G1O(&$@)`HB(%()8VAA;F=E(&QA<W0@8VAA<B!I;B!P<F5V:6]U]
  283. XM<R!L:6YE(&EN=&\@82!N"B(@5`EI;G-E<G0@='=O(&QI;F5S(&-O;G1A:6YI,
  284. XM;F<@82!Z97)O"B(@5@EA9&0@82!L87-T(&QI;F4@8V]N=&%I;FEN9R!A(&)A5
  285. XM8VMS;&%S:`IM87`@22!+35E.3U%.3U-K4E16"@HB8W)E871E(&5M<'1Y(&QI>
  286. XM;F4*;6%P($L@,4=O&PH*(F1E;&5T92!T;R!E;F0@;V8@9FEL90IM87`@32!D9
  287. XM1PH*(GEA;FL@;VYE(&QI;F4*;6%P($X@>7D*"B)P=70*;6%P($\@<`H*(F1EW
  288. XM;&5T92!M;W)E('1H86X@:&5I9VAT+6]F+71O=V5R(&-H87)A8W1E<G,*;6%P)
  289. XM('$@=&QL1`H*(F-R96%T92!A('1O=V5R(&]F(&1E<VER960@:&5I9VAT"FUAC
  290. XM<"!9(&\P,3(S-#4V-S@Y6ALP<0H*(FEN<V5R="!A(%0@:6X@8V]L=6UN(#$*;
  291. XM;6%P(%$@,&E4&PH*(G-U8G-T:71U=&4@;&%S="!C:&%R86-T97(@=VET:"!AG
  292. XM(&X*;6%P(%(@)')N"@HB<W5B<W1I='5T92!L87-T(&-H87)A8W1E<B!W:71H[
  293. XM(&$@)`IM87`@4R`D<B0*"B)I;G-E<G0@='=O(&QI;F5S(&-O;G1A:6YI;F<@$
  294. XM82!Z97)O"FUA<"!4(&MO,`TP#0T;"@HB861D(&$@8F%C:W-L87-H(&%T('1HV
  295. X192!E;F0*;6%P(%8@1V\O&PHP4
  296. X``
  297. Xend
  298. Xsize 1097
  299. END_OF_FILE
  300. if test 1577 -ne `wc -c <'vim/macros/hanoi/hanoi.mac.uue'`; then
  301.     echo shar: \"'vim/macros/hanoi/hanoi.mac.uue'\" unpacked with wrong size!
  302. fi
  303. # end of 'vim/macros/hanoi/hanoi.mac.uue'
  304. fi
  305. if test -f 'vim/macros/hanoi/poster' -a "${1}" != "-c" ; then 
  306.   echo shar: Will not clobber existing file \"'vim/macros/hanoi/poster'\"
  307. else
  308. echo shar: Extracting \"'vim/macros/hanoi/poster'\" \(1259 characters\)
  309. sed "s/^X//" >'vim/macros/hanoi/poster' <<'END_OF_FILE'
  310. XArticle 2913 of alt.sources:
  311. XPath: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!cluster!swift!softway!otc!gregm
  312. XFrom: gregm@otc.otca.oz.au (Greg McFarlane)
  313. XNewsgroups: comp.sources.d,alt.sources,comp.editors
  314. XSubject: VI SOLVES HANOI
  315. XMessage-ID: <2323@otc.otca.oz>
  316. XDate: 19 Feb 91 01:32:14 GMT
  317. XSender: news@otc.otca.oz
  318. XReply-To: gregm@otc.otca.oz.au (Greg McFarlane)
  319. XOrganization: OTC Development Unit, Australia
  320. XLines: 80
  321. XXref: oce-rd1 comp.sources.d:5702 alt.sources:2913 comp.editors:2313
  322. X
  323. XSubmitted-by: gregm@otc.otca.oz.au
  324. XArchive-name: hanoi.vi.macros/part01
  325. X
  326. XEveryone seems to be writing stupid Tower of Hanoi programs.
  327. XWell, here is the stupidest of them all: the hanoi solving vi macros.
  328. X
  329. XSave this article, unshar it, and run uudecode on hanoi.vi.macros.uu.
  330. XThis will give you the macro file hanoi.vi.macros.
  331. XThen run vi (with no file: just type "vi") and type:
  332. X    :so hanoi.vi.macros
  333. X    g
  334. Xand watch it go.
  335. X
  336. XThe default height of the tower is 7 but can be easily changed by editing
  337. Xthe macro file.
  338. X
  339. XThe disks aren't actually shown in this version, only numbers representing
  340. Xeach disk, but I believe it is possible to write some macros to show the
  341. Xdisks moving about as well. Any takers?
  342. X
  343. X(For maze solving macros, see alt.sources or comp.editors)
  344. X
  345. XGreg
  346. END_OF_FILE
  347. if test 1259 -ne `wc -c <'vim/macros/hanoi/poster'`; then
  348.     echo shar: \"'vim/macros/hanoi/poster'\" unpacked with wrong size!
  349. fi
  350. # end of 'vim/macros/hanoi/poster'
  351. fi
  352. if test ! -d 'vim/macros/maze' ; then
  353.     echo shar: Creating directory \"'vim/macros/maze'\"
  354.     mkdir 'vim/macros/maze'
  355. fi
  356. if test -f 'vim/macros/maze/README' -a "${1}" != "-c" ; then 
  357.   echo shar: Will not clobber existing file \"'vim/macros/maze/README'\"
  358. else
  359. echo shar: Extracting \"'vim/macros/maze/README'\" \(1666 characters\)
  360. sed "s/^X//" >'vim/macros/maze/README' <<'END_OF_FILE'
  361. XTo prove that you can do anything in vi, I wrote a couple of macros that
  362. Xallows vi to solve mazes. It will solve any maze produced by maze.c
  363. Xthat was posted to the net recently.
  364. X
  365. XJust follow this recipe and SEE FOR YOURSELF.
  366. X    1. run uudecode on the file "maze.vi.macros.uu" to
  367. X        produce the file "maze.vi.macros"
  368. X    (If you can't wait to see the action, jump to step 4)
  369. X    2. compile maze.c with "cc -o maze maze.c"
  370. X    3. run maze > maze.out and input a small number (for example 10 if
  371. X        you are on a fast machine, 3-5 if slow) which
  372. X        is the size of the maze to produce
  373. X    4. edit the maze (vi maze.out)
  374. X    5. include the macros with the vi command:
  375. X        :so maze.vi.macros
  376. X    6. type the letter "g" (for "go") and watch vi solve the maze
  377. X    7. when vi solves the maze, you will see why it lies
  378. X    8. now look at maze.vi.macros and all will be revealed
  379. X
  380. XTested on a sparc, a sun and a pyramid (although maze.c will not compile
  381. Xon the pyramid).
  382. X
  383. XAnyone who can't get the maze.c file to compile, get a new compiler,
  384. Xtry maze.ansi.c which was also posted to the net.
  385. XIf you can get it to compile but the maze comes out looking like a fence
  386. Xand not a maze and you are using SysV or DOS replace the "27" on the
  387. Xlast line of maze.c by "11"
  388. XThanks to John Tromp (tromp@piring.cwi.nl) for maze.c.
  389. XThanks to antonyc@nntp-server.caltech.edu (Bill T. Cat) for maze.ansi.c.
  390. X
  391. XAny donations should be in unmarked small denomination bills :^)=.
  392. X
  393. X                   ACSnet:  gregm@otc.otca.oz.au
  394. XGreg McFarlane       UUCP:  {uunet,mcvax}!otc.otca.oz.au!gregm
  395. X|||| OTC ||         Snail:  OTC R&D GPO Box 7000, Sydney 2001, Australia
  396. X                    Phone:  +61 2 287 3139    Fax: +61 2 287 3299
  397. X
  398. X
  399. END_OF_FILE
  400. if test 1666 -ne `wc -c <'vim/macros/maze/README'`; then
  401.     echo shar: \"'vim/macros/maze/README'\" unpacked with wrong size!
  402. fi
  403. # end of 'vim/macros/maze/README'
  404. fi
  405. if test -f 'vim/macros/maze/makefile' -a "${1}" != "-c" ; then 
  406.   echo shar: Will not clobber existing file \"'vim/macros/maze/makefile'\"
  407. else
  408. echo shar: Extracting \"'vim/macros/maze/makefile'\" \(104 characters\)
  409. sed "s/^X//" >'vim/macros/maze/makefile' <<'END_OF_FILE'
  410. X#On the amiga with manx C 5.0 we have to use maze.ansi.c
  411. X
  412. Xmaze: maze.ansi.o
  413. X    ln maze.ansi.o -o maze -lc
  414. END_OF_FILE
  415. if test 104 -ne `wc -c <'vim/macros/maze/makefile'`; then
  416.     echo shar: \"'vim/macros/maze/makefile'\" unpacked with wrong size!
  417. fi
  418. # end of 'vim/macros/maze/makefile'
  419. fi
  420. if test -f 'vim/macros/maze/maze.c' -a "${1}" != "-c" ; then 
  421.   echo shar: Will not clobber existing file \"'vim/macros/maze/maze.c'\"
  422. else
  423. echo shar: Extracting \"'vim/macros/maze/maze.c'\" \(441 characters\)
  424. sed "s/^X//" >'vim/macros/maze/maze.c' <<'END_OF_FILE'
  425. Xchar*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
  426. X--            E;             J[              E]             =T
  427. X[E   ]=  E)   printf("._");  for(;(A-=Z=!Z)  ||  (printf("\n|"
  428. X)    ,   A    =              39              ,C             --
  429. X)    ;   Z    ||    printf   (M   ))M[Z]=Z[A-(E   =A[J-Z])&&!C
  430. X&    A   ==             T[                                  A]
  431. X|6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}
  432. END_OF_FILE
  433. if test 441 -ne `wc -c <'vim/macros/maze/maze.c'`; then
  434.     echo shar: \"'vim/macros/maze/maze.c'\" unpacked with wrong size!
  435. fi
  436. # end of 'vim/macros/maze/maze.c'
  437. fi
  438. if test -f 'vim/macros/maze/maze_5.78' -a "${1}" != "-c" ; then 
  439.   echo shar: Will not clobber existing file \"'vim/macros/maze/maze_5.78'\"
  440. else
  441. echo shar: Extracting \"'vim/macros/maze/maze_5.78'\" \(758 characters\)
  442. sed "s/^X//" >'vim/macros/maze/maze_5.78' <<'END_OF_FILE'
  443. X._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
  444. X| ._| . . ._| | |_._._. . ._|_._._._._. ._|_. ._|_._. ._| . ._|_. | . ._._. |
  445. X| ._|_| |_. | | | | ._._|_._|_._. . |_. | | | ._._| |_._._| | ._. ._| . . |_|
  446. X|_._._._. | ._|_. ._._._. | | ._. |_._. . | ._._| |_. | ._._._. |_. | |_|_| |
  447. X| | . |_._| . ._._._| ._._. ._._| | | |_| . | |_. . ._|_| ._._. |_._|_| . | |
  448. X|_._|_._._._|_._._._|_|_._._._|_._|_._._._|_._._._|_._._._|_._._._._._._|_._|
  449. X
  450. XSee Vim solve a maze!
  451. X
  452. X   type ":so maze<DOT>mac<RETURN>" to load the macros
  453. X           (replace <DOT> by a real dot; can't type it here because the
  454. X        macros use the last dot in the file as the goal in the maze)
  455. X   type "g" to start
  456. X
  457. Xto interrupt type "<CTRL-C>"
  458. X     to quit type ":q!<RETURN>"
  459. X
  460. END_OF_FILE
  461. if test 758 -ne `wc -c <'vim/macros/maze/maze_5.78'`; then
  462.     echo shar: \"'vim/macros/maze/maze_5.78'\" unpacked with wrong size!
  463. fi
  464. # end of 'vim/macros/maze/maze_5.78'
  465. fi
  466. if test -f 'vim/macros/maze/maze_ansi.c' -a "${1}" != "-c" ; then 
  467.   echo shar: Will not clobber existing file \"'vim/macros/maze/maze_ansi.c'\"
  468. else
  469. echo shar: Extracting \"'vim/macros/maze/maze_ansi.c'\" \(441 characters\)
  470. sed "s/^X//" >'vim/macros/maze/maze_ansi.c' <<'END_OF_FILE'
  471. Xchar*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",&
  472. XC)            ;--            E;J             [E            ]=M
  473. X[E   ]=  E)   printf("._");  for(;(A-=Z=!Z)  ||  (printf("\n|"
  474. X)    ,   A    =              39              ,C             --
  475. X)    ;   Z    ||    printf   (T   ))T[Z]=Z[A-(E   =A[J-Z])&&!C
  476. X&    A   ==             M[                                  A]
  477. X|6<<11<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}
  478. END_OF_FILE
  479. if test 441 -ne `wc -c <'vim/macros/maze/maze_ansi.c'`; then
  480.     echo shar: \"'vim/macros/maze/maze_ansi.c'\" unpacked with wrong size!
  481. fi
  482. # end of 'vim/macros/maze/maze_ansi.c'
  483. fi
  484. if test -f 'vim/macros/maze/poster' -a "${1}" != "-c" ; then 
  485.   echo shar: Will not clobber existing file \"'vim/macros/maze/poster'\"
  486. else
  487. echo shar: Extracting \"'vim/macros/maze/poster'\" \(1562 characters\)
  488. sed "s/^X//" >'vim/macros/maze/poster' <<'END_OF_FILE'
  489. XArticle 2846 of alt.sources:
  490. XPath: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregm
  491. XFrom: gregm@otc.otca.oz.au (Greg McFarlane)
  492. XNewsgroups: alt.sources
  493. XSubject: VI SOLVES MAZE (commented macros)
  494. XMessage-ID: <2289@otc.otca.oz>
  495. XDate: 10 Feb 91 23:31:02 GMT
  496. XSender: news@otc.otca.oz
  497. XReply-To: gregm@otc.otca.oz.au (Greg McFarlane)
  498. XOrganization: OTC Development Unit, Australia
  499. XLines: 464
  500. X
  501. XSubmitted-by: gregm@otc.otca.oz.au
  502. XArchive-name: maze_solving_vi_macros
  503. X
  504. XA real working model. See it walk the maze in front of your very own eyes.
  505. X
  506. XTo prove that you can do anything in vi, I wrote a couple of macros that
  507. Xallows vi to solve mazes. It will solve any maze produced by maze.c
  508. Xthat was posted to the alt.sources last month. (Maze.c is also included
  509. Xin this posting as well as an example of its output.)
  510. X
  511. XThe uncommented version of the macros was sent to alt.sources last month.
  512. XHowever, so many people mailed me requesting the commented version of the
  513. Xmacros that I decided to post it. I have made some modifications to the
  514. Xoriginal macros to make them easier to follow and also after I learnt
  515. Xthat you can escape the special meaning of '|' in macros by using '^V|'.
  516. X
  517. XSave this article and unshar it. Then read maze.README.
  518. X
  519. XAfter studying these macros, anyone who cannot write an emacs emulator
  520. Xin vi macros should just curl up and :q!.
  521. X
  522. XComing soon to a newsgroup near you: "Vi macros solve Tower of Hanoi",
  523. Xand a repost of the original "Turing Machine implemented in Vi macros"
  524. X
  525. XAnyone who has a version of these macros for edlin or nroff, please post.
  526. END_OF_FILE
  527. if test 1562 -ne `wc -c <'vim/macros/maze/poster'`; then
  528.     echo shar: \"'vim/macros/maze/poster'\" unpacked with wrong size!
  529. fi
  530. # end of 'vim/macros/maze/poster'
  531. fi
  532. if test -f 'vim/macros/readme' -a "${1}" != "-c" ; then 
  533.   echo shar: Will not clobber existing file \"'vim/macros/readme'\"
  534. else
  535. echo shar: Extracting \"'vim/macros/readme'\" \(271 characters\)
  536. sed "s/^X//" >'vim/macros/readme' <<'END_OF_FILE'
  537. XThe macros in these directories can be used to test Vim for vi compatibility.
  538. XThey have been written for vi to show its unlimited possibilities.
  539. X
  540. XHANOI are macros that solve the tower of hanoi problem.
  541. XMAZE  are macros that solve a maze (amazing!).
  542. X
  543. XThey are unmodified.
  544. END_OF_FILE
  545. if test 271 -ne `wc -c <'vim/macros/readme'`; then
  546.     echo shar: \"'vim/macros/readme'\" unpacked with wrong size!
  547. fi
  548. # end of 'vim/macros/readme'
  549. fi
  550. if test ! -d 'vim/src' ; then
  551.     echo shar: Creating directory \"'vim/src'\"
  552.     mkdir 'vim/src'
  553. fi
  554. if test -f 'vim/src/addcr.c' -a "${1}" != "-c" ; then 
  555.   echo shar: Will not clobber existing file \"'vim/src/addcr.c'\"
  556. else
  557. echo shar: Extracting \"'vim/src/addcr.c'\" \(413 characters\)
  558. sed "s/^X//" >'vim/src/addcr.c' <<'END_OF_FILE'
  559. X/*
  560. X * This program, when compiled with Turbo-C, will make <LF> into <CR><LF>
  561. X */
  562. X
  563. X#include <stdio.h>
  564. X
  565. Xmain(argc, argv)
  566. X    int argc;
  567. X    char **argv;
  568. X{
  569. X    char buffer[1024];
  570. X    int    len;
  571. X
  572. X    while ((len = fread(buffer, 1, 1024, stdin)) > 0)
  573. X        fwrite(buffer, 1, len, stdout);
  574. X    if (ferror(stdin))
  575. X        fprintf(stderr, "Error while reading\n");
  576. X    if (ferror(stdout))
  577. X        fprintf(stderr, "Error while writing\n");
  578. X}
  579. END_OF_FILE
  580. if test 413 -ne `wc -c <'vim/src/addcr.c'`; then
  581.     echo shar: \"'vim/src/addcr.c'\" unpacked with wrong size!
  582. fi
  583. # end of 'vim/src/addcr.c'
  584. fi
  585. if test -f 'vim/src/ascii.h' -a "${1}" != "-c" ; then 
  586.   echo shar: Will not clobber existing file \"'vim/src/ascii.h'\"
  587. else
  588. echo shar: Extracting \"'vim/src/ascii.h'\" \(766 characters\)
  589. sed "s/^X//" >'vim/src/ascii.h' <<'END_OF_FILE'
  590. X/* vi:ts=4:sw=4
  591. X *
  592. X * VIM - Vi IMitation
  593. X *
  594. X * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  595. X *                            Tim Thompson            twitch!tjt
  596. X *                            Tony Andrews            onecom!wldrdg!tony 
  597. X *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  598. X */
  599. X
  600. X/*
  601. X * Definitions of various common control characters
  602. X */
  603. X
  604. X#define NUL                     '\000'
  605. X#define BS                        '\010'
  606. X#define BS_STR                    "\010"
  607. X#define TAB                     '\011'
  608. X#define NL                        '\012'
  609. X#define NL_STR                    "\012"
  610. X#define CR                        '\015'
  611. X#define ESC                     '\033'
  612. X#define ESC_STR                 "\033"
  613. X#define DEL                     0x7f
  614. X#define CSI                     0x9b
  615. X
  616. X#define Ctrl(x) ((x) & 0x1f)
  617. X
  618. X/*
  619. X * character that separates dir names in a path
  620. X */
  621. X#ifdef MSDOS
  622. X# define PATHSEP '\\'
  623. X# define PATHSEPSTR "\\"
  624. X#else
  625. X# define PATHSEP '/'
  626. X# define PATHSEPSTR "/"
  627. X#endif
  628. END_OF_FILE
  629. if test 766 -ne `wc -c <'vim/src/ascii.h'`; then
  630.     echo shar: \"'vim/src/ascii.h'\" unpacked with wrong size!
  631. fi
  632. # end of 'vim/src/ascii.h'
  633. fi
  634. if test -f 'vim/src/debug.h' -a "${1}" != "-c" ; then 
  635.   echo shar: Will not clobber existing file \"'vim/src/debug.h'\"
  636. else
  637. echo shar: Extracting \"'vim/src/debug.h'\" \(865 characters\)
  638. sed "s/^X//" >'vim/src/debug.h' <<'END_OF_FILE'
  639. X/*
  640. X * debug.h -- my debug header for just any program.
  641. X * use:
  642. X * place the statement OPENDEBUG("/tmp/programdebug"); inside main.
  643. X * Nothing will happen, unless you compile the source with -DDEBUG.
  644. X * 
  645. X * jw. 13.4.91.
  646. X */
  647. X#ifndef FILE
  648. X# include <stdio.h>
  649. X#endif
  650. X
  651. X#ifdef DEBUG
  652. X#    define debug(x) {fprintf(debugfp,x);fflush(debugfp);}
  653. X#    define debug1(x,a) {fprintf(debugfp,x,a);fflush(debugfp);}
  654. X#    define debug2(x,a,b) {fprintf(debugfp,x,a,b);fflush(debugfp);}
  655. X#    define debug3(x,a,b,c) {fprintf(debugfp,x,a,b,c);fflush(debugfp);}
  656. X#    define OPENDEBUG(file)\
  657. X    if ((debugfp = fopen(file,"w")) == NULL)\
  658. X    {    debugfp = stderr;\
  659. X        debug1("OPENDEBUG: sorry, cannot open '%s'\n", file);\
  660. X        debug("           beware, using stderr!\n");\
  661. X        sleep(3);\
  662. X    }
  663. X#else
  664. X#    define debug(x)
  665. X#    define debug1(x,a)
  666. X#    define debug2(x,a,b)
  667. X#    define debug3(x,a,b,c)
  668. X#    define OPENDEBUG(file)
  669. X#endif
  670. END_OF_FILE
  671. if test 865 -ne `wc -c <'vim/src/debug.h'`; then
  672.     echo shar: \"'vim/src/debug.h'\" unpacked with wrong size!
  673. fi
  674. # end of 'vim/src/debug.h'
  675. fi
  676. if test -f 'vim/src/keymap.h' -a "${1}" != "-c" ; then 
  677.   echo shar: Will not clobber existing file \"'vim/src/keymap.h'\"
  678. else
  679. echo shar: Extracting \"'vim/src/keymap.h'\" \(1576 characters\)
  680. sed "s/^X//" >'vim/src/keymap.h' <<'END_OF_FILE'
  681. X/* vi:ts=4:sw=4
  682. X *
  683. X * VIM - Vi IMitation
  684. X *
  685. X * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  686. X *                            Tim Thompson            twitch!tjt
  687. X *                            Tony Andrews            onecom!wldrdg!tony 
  688. X *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  689. X */
  690. X
  691. X/*
  692. X * Keycode definitions for special keys
  693. X *
  694. X * On systems that have any of these keys, the routine 'inchar' in the
  695. X * machine-dependent code should return one of the codes here.
  696. X */
  697. X
  698. X#define K_CCIRCM        0x1e    /* control circumflex */
  699. X
  700. X/*
  701. X * careful: the next entries must be in the same order as the termcap strings
  702. X * in term.h and the numbers must be consecutive (used by inchar()).
  703. X */
  704. X#define K_UARROW        0x80
  705. X#define K_DARROW        0x81
  706. X#define K_LARROW        0x82
  707. X#define K_RARROW        0x83
  708. X#define K_SUARROW        0x84
  709. X#define K_SDARROW        0x85
  710. X#define K_SLARROW        0x86
  711. X#define K_SRARROW        0x87
  712. X
  713. X#define K_F1            0x88    /* function keys */
  714. X#define K_F2            0x89
  715. X#define K_F3            0x8a
  716. X#define K_F4            0x8b
  717. X#define K_F5            0x8c
  718. X#define K_F6            0x8d
  719. X#define K_F7            0x8e
  720. X#define K_F8            0x8f
  721. X#define K_F9            0x90
  722. X#define K_F10            0x91
  723. X
  724. X#define K_SF1            0x92    /* shifted function keys */
  725. X#define K_SF2            0x93
  726. X#define K_SF3            0x94
  727. X#define K_SF4            0x95
  728. X#define K_SF5            0x96
  729. X#define K_SF6            0x97
  730. X#define K_SF7            0x98
  731. X#define K_SF8            0x99
  732. X#define K_SF9            0x9a
  733. X#define K_SF10            0x9b
  734. X
  735. X#define K_HELP            0x9c
  736. X#define K_UNDO            0x9d
  737. X
  738. X/*
  739. X * NULs cannot be in the input string, therefore CTRL-@ is replaced by K_ZERO.
  740. X * K_NUL is used for MSDOS extended keys (same value used in term.h).
  741. X */
  742. X#define K_NUL            0x9e    /* for MSDOS: special key follows */
  743. X#define K_ZERO            0x9f    /* replaces ^@ */
  744. END_OF_FILE
  745. if test 1576 -ne `wc -c <'vim/src/keymap.h'`; then
  746.     echo shar: \"'vim/src/keymap.h'\" unpacked with wrong size!
  747. fi
  748. # end of 'vim/src/keymap.h'
  749. fi
  750. if test -f 'vim/src/macros.h' -a "${1}" != "-c" ; then 
  751.   echo shar: Will not clobber existing file \"'vim/src/macros.h'\"
  752. else
  753. echo shar: Extracting \"'vim/src/macros.h'\" \(1055 characters\)
  754. sed "s/^X//" >'vim/src/macros.h' <<'END_OF_FILE'
  755. X/* vi:ts=4:sw=4
  756. X *
  757. X * VIM - Vi IMitation
  758. X *
  759. X * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  760. X *                            Tim Thompson            twitch!tjt
  761. X *                            Tony Andrews            onecom!wldrdg!tony 
  762. X *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  763. X */
  764. X
  765. X/*
  766. X * macros.h: macro definitions for often used code
  767. X */
  768. X
  769. X/*
  770. X * pchar(lp, c) - put character 'c' at position 'lp'
  771. X */
  772. X#define pchar(lp, c) (*(nr2ptr((lp).lnum) + (lp).col) = (c))
  773. X
  774. X/*
  775. X * Position comparisons
  776. X */
  777. X#define lt(a, b) (((a).lnum != (b).lnum) \
  778. X                   ? ((a).lnum < (b).lnum) : ((a).col < (b).col))
  779. X
  780. X#define ltoreq(a, b) (((a).lnum != (b).lnum) \
  781. X                   ? ((a).lnum < (b).lnum) : ((a).col <= (b).col))
  782. X
  783. X#define equal(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col))
  784. X
  785. X/*
  786. X * buf1line() - return TRUE if there is only one line in file buffer
  787. X */
  788. X#define buf1line() (line_count == 1)
  789. X
  790. X/*
  791. X * lineempty() - return TRUE if the line is empty
  792. X */
  793. X#define lineempty(p) (*nr2ptr(p) == NUL)
  794. X
  795. X/*
  796. X * bufempty() - return TRUE if the file buffer is empty
  797. X */
  798. X#define bufempty() (buf1line() && lineempty((linenr_t)1))
  799. END_OF_FILE
  800. if test 1055 -ne `wc -c <'vim/src/macros.h'`; then
  801.     echo shar: \"'vim/src/macros.h'\" unpacked with wrong size!
  802. fi
  803. # end of 'vim/src/macros.h'
  804. fi
  805. if test -f 'vim/src/mark.h' -a "${1}" != "-c" ; then 
  806.   echo shar: Will not clobber existing file \"'vim/src/mark.h'\"
  807. else
  808. echo shar: Extracting \"'vim/src/mark.h'\" \(546 characters\)
  809. sed "s/^X//" >'vim/src/mark.h' <<'END_OF_FILE'
  810. X/* vi:ts=4:sw=4
  811. X *
  812. X * VIM - Vi IMitation
  813. X *
  814. X * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  815. X *                            Tim Thompson            twitch!tjt
  816. X *                            Tony Andrews            onecom!wldrdg!tony 
  817. X *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  818. X */
  819. X
  820. X/*
  821. X * mark.h: definitions shared between tag.c and mark.c 
  822. X */
  823. X
  824. Xstruct mark
  825. X{
  826. X    char           *ptr;
  827. X    colnr_t         col;
  828. X};
  829. X
  830. Xstruct filemark
  831. X{
  832. X    struct mark        mark;            /* cursor position */
  833. X    linenr_t        lnum;            /* last known line number */
  834. X    int                fnum;            /* file number */
  835. X};
  836. X
  837. Xchar *fm_getname __ARGS((struct filemark *));
  838. END_OF_FILE
  839. if test 546 -ne `wc -c <'vim/src/mark.h'`; then
  840.     echo shar: \"'vim/src/mark.h'\" unpacked with wrong size!
  841. fi
  842. # end of 'vim/src/mark.h'
  843. fi
  844. if test ! -d 'vim/src/proto' ; then
  845.     echo shar: Creating directory \"'vim/src/proto'\"
  846.     mkdir 'vim/src/proto'
  847. fi
  848. if test -f 'vim/src/proto.h' -a "${1}" != "-c" ; then 
  849.   echo shar: Will not clobber existing file \"'vim/src/proto.h'\"
  850. else
  851. echo shar: Extracting \"'vim/src/proto.h'\" \(1269 characters\)
  852. sed "s/^X//" >'vim/src/proto.h' <<'END_OF_FILE'
  853. X/*
  854. X * proto.h: include the (automatically generated) function prototypes
  855. X *
  856. X * the proto/xxx.pro files are automatically generated when using Manx/Aztec C.
  857. X * For other compilers you will have to edit them.
  858. X */
  859. X
  860. X#include "regexp.h"        /* for struct regexp */
  861. X
  862. X/*
  863. X * Machine-dependent routines.
  864. X */
  865. X#ifdef AMIGA
  866. X# include "proto/amiga.pro"
  867. X#endif
  868. X#ifdef UNIX
  869. X# include "unix.h"
  870. X#endif
  871. X#ifdef MSDOS
  872. X# include "msdos.h"
  873. X#endif
  874. X
  875. X#include "proto/alloc.pro"
  876. X#include "proto/buffers.pro"
  877. X#include "proto/charset.pro"
  878. X#include "proto/cmdline.pro"
  879. X#include "proto/csearch.pro"
  880. X#include "proto/digraph.pro"
  881. X#include "proto/edit.pro"
  882. X#include "proto/fileio.pro"
  883. X#include "proto/help.pro"
  884. X#include "proto/linefunc.pro"
  885. X#include "proto/main.pro"
  886. X#include "proto/mark.pro"
  887. X
  888. X#ifndef MESSAGE
  889. Xvoid smsg __PARMS((char *, ...));    /* cannot be produced automatically */
  890. X#endif
  891. X#include "proto/message.pro"
  892. X#include "proto/misccmds.pro"
  893. X#include "proto/normal.pro"
  894. X#include "proto/ops.pro"
  895. X#include "proto/param.pro"
  896. X#include "proto/quickfix.pro"
  897. X#include "proto/regexp.pro"
  898. X#include "proto/regsub.pro"
  899. X#include "proto/screen.pro"
  900. X#include "proto/script.pro"
  901. X#include "proto/search.pro"
  902. X#include "proto/storage.pro"
  903. X#include "proto/tag.pro"
  904. X#include "proto/term.pro"
  905. X#include "proto/undo.pro"
  906. END_OF_FILE
  907. if test 1269 -ne `wc -c <'vim/src/proto.h'`; then
  908.     echo shar: \"'vim/src/proto.h'\" unpacked with wrong size!
  909. fi
  910. # end of 'vim/src/proto.h'
  911. fi
  912. if test -f 'vim/src/proto/alloc.pro' -a "${1}" != "-c" ; then 
  913.   echo shar: Will not clobber existing file \"'vim/src/proto/alloc.pro'\"
  914. else
  915. echo shar: Extracting \"'vim/src/proto/alloc.pro'\" \(300 characters\)
  916. sed "s/^X//" >'vim/src/proto/alloc.pro' <<'END_OF_FILE'
  917. X/* alloc.c */
  918. Xchar *alloc __PARMS((unsigned int size));
  919. Xchar *lalloc __PARMS((unsigned long size, int message));
  920. Xchar *strsave __PARMS((char *string));
  921. Xchar *strnsave __PARMS((char *string, int len));
  922. Xvoid copy_spaces __PARMS((char *ptr, unsigned long count));
  923. Xchar *mkstr __PARMS((unsigned int c));
  924. END_OF_FILE
  925. if test 300 -ne `wc -c <'vim/src/proto/alloc.pro'`; then
  926.     echo shar: \"'vim/src/proto/alloc.pro'\" unpacked with wrong size!
  927. fi
  928. # end of 'vim/src/proto/alloc.pro'
  929. fi
  930. if test -f 'vim/src/proto/amiga.pro' -a "${1}" != "-c" ; then 
  931.   echo shar: Will not clobber existing file \"'vim/src/proto/amiga.pro'\"
  932. else
  933. echo shar: Extracting \"'vim/src/proto/amiga.pro'\" \(1222 characters\)
  934. sed "s/^X//" >'vim/src/proto/amiga.pro' <<'END_OF_FILE'
  935. X/* amiga.c */
  936. Xvoid win_resize_on __PARMS((void));
  937. Xvoid win_resize_off __PARMS((void));
  938. Xvoid flushbuf __PARMS((void));
  939. Xvoid outchar __PARMS((unsigned int c));
  940. Xint GetChars __PARMS((char *buf, int maxlen, int type));
  941. Xvoid sleep __PARMS((int n));
  942. Xvoid vim_delay __PARMS((void));
  943. Xvoid mch_suspend __PARMS((void));
  944. Xvoid mch_windinit __PARMS((void));
  945. Xvoid check_win __PARMS((int argc, char **argv));
  946. Xvoid fname_case __PARMS((char *name));
  947. Xvoid settitle __PARMS((char *str));
  948. Xvoid resettitle __PARMS((void));
  949. Xint dirname __PARMS((char *buf, int len));
  950. Xint FullName __PARMS((char *fname, char *buf, int len));
  951. Xlong getperm __PARMS((char *name));
  952. Xint setperm __PARMS((char *name, long perm));
  953. Xint isdir __PARMS((char *name));
  954. Xvoid mch_windexit __PARMS((int r));
  955. Xvoid mch_settmode __PARMS((int raw));
  956. Xint mch_get_winsize __PARMS((void));
  957. Xvoid mch_set_winsize __PARMS((void));
  958. Xint call_shell __PARMS((char *cmd, int filter));
  959. Xvoid breakcheck __PARMS((void));
  960. Xlong Chk_Abort __PARMS((void));
  961. Xint ExpandWildCards __PARMS((int num_pat, char **pat, int *num_file, char ***file, int files_only, int list_notfound));
  962. Xvoid FreeWild __PARMS((int num, char **file));
  963. Xint has_wildcard __PARMS((char *p));
  964. Xchar *vimgetenv __PARMS((char *var));
  965. END_OF_FILE
  966. if test 1222 -ne `wc -c <'vim/src/proto/amiga.pro'`; then
  967.     echo shar: \"'vim/src/proto/amiga.pro'\" unpacked with wrong size!
  968. fi
  969. # end of 'vim/src/proto/amiga.pro'
  970. fi
  971. if test -f 'vim/src/proto/buffers.pro' -a "${1}" != "-c" ; then 
  972.   echo shar: Will not clobber existing file \"'vim/src/proto/buffers.pro'\"
  973. else
  974. echo shar: Extracting \"'vim/src/proto/buffers.pro'\" \(832 characters\)
  975. sed "s/^X//" >'vim/src/proto/buffers.pro' <<'END_OF_FILE'
  976. X/* buffers.c */
  977. Xunsigned char *get_bufcont __PARMS((struct buffheader *buffer));
  978. Xunsigned char *get_recorded __PARMS((void));
  979. Xunsigned char *get_inserted __PARMS((void));
  980. Xint stuff_empty __PARMS((void));
  981. Xvoid flush_buffers __PARMS((void));
  982. Xvoid ResetBuffers __PARMS((void));
  983. Xvoid AppendToRedobuff __PARMS((char *s));
  984. Xvoid AppendNumberToRedobuff __PARMS((long n));
  985. Xvoid stuffReadbuff __PARMS((char *s));
  986. Xvoid stuffnumReadbuff __PARMS((long n));
  987. Xvoid copy_redo __PARMS((void));
  988. Xint start_redo __PARMS((long count));
  989. Xint start_redo_ins __PARMS((void));
  990. Xvoid set_redo_ins __PARMS((void));
  991. Xvoid stop_redo_ins __PARMS((void));
  992. Xint ins_mapbuf __PARMS((char *str));
  993. Xunsigned char vgetc __PARMS((void));
  994. Xunsigned char vpeekc __PARMS((void));
  995. Xint domap __PARMS((int maptype, char *keys, int mode));
  996. Xint makemap __PARMS((struct __stdio *fd));
  997. END_OF_FILE
  998. if test 832 -ne `wc -c <'vim/src/proto/buffers.pro'`; then
  999.     echo shar: \"'vim/src/proto/buffers.pro'\" unpacked with wrong size!
  1000. fi
  1001. # end of 'vim/src/proto/buffers.pro'
  1002. fi
  1003. if test -f 'vim/src/proto/charset.pro' -a "${1}" != "-c" ; then 
  1004.   echo shar: Will not clobber existing file \"'vim/src/proto/charset.pro'\"
  1005. else
  1006. echo shar: Extracting \"'vim/src/proto/charset.pro'\" \(240 characters\)
  1007. sed "s/^X//" >'vim/src/proto/charset.pro' <<'END_OF_FILE'
  1008. X/* charset.c */
  1009. Xchar *transchar __PARMS((unsigned int c));
  1010. Xint outtrans __PARMS((char *str, int len));
  1011. Xint charsize __PARMS((int c));
  1012. Xint strsize __PARMS((char *s));
  1013. Xint chartabsize __PARMS((int c, int col));
  1014. Xint isidchar __PARMS((int c));
  1015. END_OF_FILE
  1016. if test 240 -ne `wc -c <'vim/src/proto/charset.pro'`; then
  1017.     echo shar: \"'vim/src/proto/charset.pro'\" unpacked with wrong size!
  1018. fi
  1019. # end of 'vim/src/proto/charset.pro'
  1020. fi
  1021. if test -f 'vim/src/proto/cmdline.pro' -a "${1}" != "-c" ; then 
  1022.   echo shar: Will not clobber existing file \"'vim/src/proto/cmdline.pro'\"
  1023. else
  1024. echo shar: Extracting \"'vim/src/proto/cmdline.pro'\" \(487 characters\)
  1025. sed "s/^X//" >'vim/src/proto/cmdline.pro' <<'END_OF_FILE'
  1026. X/* cmdline.c */
  1027. Xint getcmdline __PARMS((int firstc, unsigned char *buff));
  1028. Xvoid redrawcmdline __PARMS((void));
  1029. Xvoid redrawcmd __PARMS((void));
  1030. Xvoid docmdline __PARMS((unsigned char *cmdline));
  1031. Xint doarglist __PARMS((char *str));
  1032. Xvoid gotocmdline __PARMS((int clr, int firstc));
  1033. Xint getfile __PARMS((char *fname, int setpm));
  1034. Xint samealtfile __PARMS((int n));
  1035. Xint getaltfile __PARMS((int n, long lnum, int setpm));
  1036. Xchar *getaltfname __PARMS((int n));
  1037. Xint dosource __PARMS((char *fname));
  1038. END_OF_FILE
  1039. if test 487 -ne `wc -c <'vim/src/proto/cmdline.pro'`; then
  1040.     echo shar: \"'vim/src/proto/cmdline.pro'\" unpacked with wrong size!
  1041. fi
  1042. # end of 'vim/src/proto/cmdline.pro'
  1043. fi
  1044. if test -f 'vim/src/proto/csearch.pro' -a "${1}" != "-c" ; then 
  1045.   echo shar: Will not clobber existing file \"'vim/src/proto/csearch.pro'\"
  1046. else
  1047. echo shar: Extracting \"'vim/src/proto/csearch.pro'\" \(158 characters\)
  1048. sed "s/^X//" >'vim/src/proto/csearch.pro' <<'END_OF_FILE'
  1049. X/* csearch.c */
  1050. Xvoid dosub __PARMS((long lp, long up, char *cmd, unsigned char **nextcommand));
  1051. Xvoid doglob __PARMS((int type, long lp, long up, char *cmd));
  1052. END_OF_FILE
  1053. if test 158 -ne `wc -c <'vim/src/proto/csearch.pro'`; then
  1054.     echo shar: \"'vim/src/proto/csearch.pro'\" unpacked with wrong size!
  1055. fi
  1056. # end of 'vim/src/proto/csearch.pro'
  1057. fi
  1058. if test -f 'vim/src/proto/digraph.pro' -a "${1}" != "-c" ; then 
  1059.   echo shar: Will not clobber existing file \"'vim/src/proto/digraph.pro'\"
  1060. else
  1061. echo shar: Extracting \"'vim/src/proto/digraph.pro'\" \(137 characters\)
  1062. sed "s/^X//" >'vim/src/proto/digraph.pro' <<'END_OF_FILE'
  1063. X/* digraph.c */
  1064. Xint getdigraph __PARMS((int char1, int char2));
  1065. Xvoid putdigraph __PARMS((char *str));
  1066. Xvoid listdigraphs __PARMS((void));
  1067. END_OF_FILE
  1068. if test 137 -ne `wc -c <'vim/src/proto/digraph.pro'`; then
  1069.     echo shar: \"'vim/src/proto/digraph.pro'\" unpacked with wrong size!
  1070. fi
  1071. # end of 'vim/src/proto/digraph.pro'
  1072. fi
  1073. if test -f 'vim/src/proto/edit.pro' -a "${1}" != "-c" ; then 
  1074.   echo shar: Will not clobber existing file \"'vim/src/proto/edit.pro'\"
  1075. else
  1076. echo shar: Extracting \"'vim/src/proto/edit.pro'\" \(389 characters\)
  1077. sed "s/^X//" >'vim/src/proto/edit.pro' <<'END_OF_FILE'
  1078. X/* edit.c */
  1079. Xvoid edit __PARMS((long count));
  1080. Xint get_literal __PARMS((int *nextc));
  1081. Xvoid insertchar __PARMS((unsigned int c));
  1082. Xint oneright __PARMS((void));
  1083. Xint oneleft __PARMS((void));
  1084. Xvoid beginline __PARMS((int flag));
  1085. Xint oneup __PARMS((long n));
  1086. Xint onedown __PARMS((long n));
  1087. Xint onepage __PARMS((int dir, long count));
  1088. Xvoid stuff_inserted __PARMS((int c, long count, int no_esc));
  1089. END_OF_FILE
  1090. if test 389 -ne `wc -c <'vim/src/proto/edit.pro'`; then
  1091.     echo shar: \"'vim/src/proto/edit.pro'\" unpacked with wrong size!
  1092. fi
  1093. # end of 'vim/src/proto/edit.pro'
  1094. fi
  1095. if test -f 'vim/src/proto/fileio.pro' -a "${1}" != "-c" ; then 
  1096.   echo shar: Will not clobber existing file \"'vim/src/proto/fileio.pro'\"
  1097. else
  1098. echo shar: Extracting \"'vim/src/proto/fileio.pro'\" \(205 characters\)
  1099. sed "s/^X//" >'vim/src/proto/fileio.pro' <<'END_OF_FILE'
  1100. X/* fileio.c */
  1101. Xvoid filemess __PARMS((char *name, char *s));
  1102. Xint readfile __PARMS((char *fname, long from, int newfile));
  1103. Xint writeit __PARMS((char *fname, long start, long end, int append, int forceit));
  1104. END_OF_FILE
  1105. if test 205 -ne `wc -c <'vim/src/proto/fileio.pro'`; then
  1106.     echo shar: \"'vim/src/proto/fileio.pro'\" unpacked with wrong size!
  1107. fi
  1108. # end of 'vim/src/proto/fileio.pro'
  1109. fi
  1110. if test -f 'vim/src/proto/help.pro' -a "${1}" != "-c" ; then 
  1111.   echo shar: Will not clobber existing file \"'vim/src/proto/help.pro'\"
  1112. else
  1113. echo shar: Extracting \"'vim/src/proto/help.pro'\" \(72 characters\)
  1114. sed "s/^X//" >'vim/src/proto/help.pro' <<'END_OF_FILE'
  1115. X/* help.c */
  1116. Xvoid help __PARMS((void));
  1117. Xint redrawhelp __PARMS((void));
  1118. END_OF_FILE
  1119. if test 72 -ne `wc -c <'vim/src/proto/help.pro'`; then
  1120.     echo shar: \"'vim/src/proto/help.pro'\" unpacked with wrong size!
  1121. fi
  1122. # end of 'vim/src/proto/help.pro'
  1123. fi
  1124. if test -f 'vim/src/proto/linefunc.pro' -a "${1}" != "-c" ; then 
  1125.   echo shar: Will not clobber existing file \"'vim/src/proto/linefunc.pro'\"
  1126. else
  1127. echo shar: Extracting \"'vim/src/proto/linefunc.pro'\" \(306 characters\)
  1128. sed "s/^X//" >'vim/src/proto/linefunc.pro' <<'END_OF_FILE'
  1129. X/* linefunc.c */
  1130. Xvoid coladvance __PARMS((unsigned int wcol));
  1131. Xint inc __PARMS((struct fpos *lp));
  1132. Xint incCurpos __PARMS((void));
  1133. Xint incl __PARMS((struct fpos *lp));
  1134. Xint dec __PARMS((struct fpos *lp));
  1135. Xint decCurpos __PARMS((void));
  1136. Xint decl __PARMS((struct fpos *lp));
  1137. Xvoid adjustCurpos __PARMS((void));
  1138. END_OF_FILE
  1139. if test 306 -ne `wc -c <'vim/src/proto/linefunc.pro'`; then
  1140.     echo shar: \"'vim/src/proto/linefunc.pro'\" unpacked with wrong size!
  1141. fi
  1142. # end of 'vim/src/proto/linefunc.pro'
  1143. fi
  1144. if test -f 'vim/src/proto/main.pro' -a "${1}" != "-c" ; then 
  1145.   echo shar: Will not clobber existing file \"'vim/src/proto/main.pro'\"
  1146. else
  1147. echo shar: Extracting \"'vim/src/proto/main.pro'\" \(87 characters\)
  1148. sed "s/^X//" >'vim/src/proto/main.pro' <<'END_OF_FILE'
  1149. X/* main.c */
  1150. Xvoid main __PARMS((int argc, char **argv));
  1151. Xvoid getout __PARMS((int r));
  1152. END_OF_FILE
  1153. if test 87 -ne `wc -c <'vim/src/proto/main.pro'`; then
  1154.     echo shar: \"'vim/src/proto/main.pro'\" unpacked with wrong size!
  1155. fi
  1156. # end of 'vim/src/proto/main.pro'
  1157. fi
  1158. if test -f 'vim/src/proto/mark.pro' -a "${1}" != "-c" ; then 
  1159.   echo shar: Will not clobber existing file \"'vim/src/proto/mark.pro'\"
  1160. else
  1161. echo shar: Extracting \"'vim/src/proto/mark.pro'\" \(433 characters\)
  1162. sed "s/^X//" >'vim/src/proto/mark.pro' <<'END_OF_FILE'
  1163. X/* mark.c */
  1164. Xint setmark __PARMS((int c));
  1165. Xvoid setpcmark __PARMS((void));
  1166. Xstruct fpos *movemark __PARMS((int count));
  1167. Xstruct fpos *getmark __PARMS((int c, int changefile));
  1168. Xvoid clrallmarks __PARMS((void));
  1169. Xvoid incrmarks __PARMS((void));
  1170. Xvoid decrmarks __PARMS((void));
  1171. Xvoid adjustmark __PARMS((char *old, char *new));
  1172. Xchar *fm_getname __PARMS((struct filemark *fmark));
  1173. Xvoid domarks __PARMS((void));
  1174. Xvoid dojumps __PARMS((void));
  1175. END_OF_FILE
  1176. if test 433 -ne `wc -c <'vim/src/proto/mark.pro'`; then
  1177.     echo shar: \"'vim/src/proto/mark.pro'\" unpacked with wrong size!
  1178. fi
  1179. # end of 'vim/src/proto/mark.pro'
  1180. fi
  1181. if test -f 'vim/src/proto/message.pro' -a "${1}" != "-c" ; then 
  1182.   echo shar: Will not clobber existing file \"'vim/src/proto/message.pro'\"
  1183. else
  1184. echo shar: Extracting \"'vim/src/proto/message.pro'\" \(115 characters\)
  1185. sed "s/^X//" >'vim/src/proto/message.pro' <<'END_OF_FILE'
  1186. X/* message.c */
  1187. Xvoid msg __PARMS((char *s));
  1188. Xvoid emsg __PARMS((char *s));
  1189. Xvoid wait_return __PARMS((int redraw));
  1190. END_OF_FILE
  1191. if test 115 -ne `wc -c <'vim/src/proto/message.pro'`; then
  1192.     echo shar: \"'vim/src/proto/message.pro'\" unpacked with wrong size!
  1193. fi
  1194. # end of 'vim/src/proto/message.pro'
  1195. fi
  1196. if test -f 'vim/src/proto/misccmds.pro' -a "${1}" != "-c" ; then 
  1197.   echo shar: Will not clobber existing file \"'vim/src/proto/misccmds.pro'\"
  1198. else
  1199. echo shar: Extracting \"'vim/src/proto/misccmds.pro'\" \(986 characters\)
  1200. sed "s/^X//" >'vim/src/proto/misccmds.pro' <<'END_OF_FILE'
  1201. X/* misccmds.c */
  1202. Xint get_indent __PARMS((void));
  1203. Xvoid set_indent __PARMS((int size, int delete));
  1204. Xint Opencmd __PARMS((int dir, int redraw));
  1205. Xint plines __PARMS((long p));
  1206. Xint plines_m __PARMS((long first, long last));
  1207. Xvoid fileinfo __PARMS((void));
  1208. Xvoid setfname __PARMS((char *s));
  1209. Xint otherfile __PARMS((char *s));
  1210. Xvoid maketitle __PARMS((void));
  1211. Xvoid inschar __PARMS((int c));
  1212. Xvoid insstr __PARMS((char *s));
  1213. Xint delchar __PARMS((int fixpos));
  1214. Xvoid dellines __PARMS((long nlines, int can_update));
  1215. Xint gchar __PARMS((struct fpos *pos));
  1216. Xint gcharCurpos __PARMS((void));
  1217. Xint inindent __PARMS((void));
  1218. Xvoid skipspace __PARMS((char **pp));
  1219. Xvoid skiptospace __PARMS((char **pp));
  1220. Xlong getdigits __PARMS((char **pp));
  1221. Xchar *plural __PARMS((long n));
  1222. Xvoid set_Changed __PARMS((void));
  1223. Xint ask_yesno __PARMS((char *str));
  1224. Xvoid msgmore __PARMS((long n));
  1225. Xvoid beep __PARMS((void));
  1226. Xvoid expand_env __PARMS((char *src, char *dst, int dstlen));
  1227. Xint fullpathcmp __PARMS((char *s1, char *s2));
  1228. END_OF_FILE
  1229. if test 986 -ne `wc -c <'vim/src/proto/misccmds.pro'`; then
  1230.     echo shar: \"'vim/src/proto/misccmds.pro'\" unpacked with wrong size!
  1231. fi
  1232. # end of 'vim/src/proto/misccmds.pro'
  1233. fi
  1234. if test -f 'vim/src/proto/normal.pro' -a "${1}" != "-c" ; then 
  1235.   echo shar: Will not clobber existing file \"'vim/src/proto/normal.pro'\"
  1236. else
  1237. echo shar: Extracting \"'vim/src/proto/normal.pro'\" \(44 characters\)
  1238. sed "s/^X//" >'vim/src/proto/normal.pro' <<'END_OF_FILE'
  1239. X/* normal.c */
  1240. Xvoid normal __PARMS((void));
  1241. END_OF_FILE
  1242. if test 44 -ne `wc -c <'vim/src/proto/normal.pro'`; then
  1243.     echo shar: \"'vim/src/proto/normal.pro'\" unpacked with wrong size!
  1244. fi
  1245. # end of 'vim/src/proto/normal.pro'
  1246. fi
  1247. if test -f 'vim/src/proto/ops.pro' -a "${1}" != "-c" ; then 
  1248.   echo shar: Will not clobber existing file \"'vim/src/proto/ops.pro'\"
  1249. else
  1250. echo shar: Extracting \"'vim/src/proto/ops.pro'\" \(691 characters\)
  1251. sed "s/^X//" >'vim/src/proto/ops.pro' <<'END_OF_FILE'
  1252. X/* ops.c */
  1253. Xvoid doshift __PARMS((int op));
  1254. Xvoid shift_line __PARMS((int left));
  1255. Xint dorecord __PARMS((int c));
  1256. Xint doexecbuf __PARMS((int c));
  1257. Xint insertbuf __PARMS((int c));
  1258. Xvoid dodelete __PARMS((void));
  1259. Xvoid dotilde __PARMS((void));
  1260. Xvoid swapchar __PARMS((struct fpos *pos));
  1261. Xvoid dochange __PARMS((void));
  1262. Xvoid init_yank __PARMS((void));
  1263. Xint doyank __PARMS((int deleting));
  1264. Xvoid doput __PARMS((int dir, long count));
  1265. Xvoid dodis __PARMS((void));
  1266. Xvoid dodojoin __PARMS((long count, int flag, int redraw));
  1267. Xint dojoin __PARMS((int insert_space));
  1268. Xvoid doformat __PARMS((void));
  1269. Xvoid startinsert __PARMS((int initstr, int startln, long count));
  1270. Xint doaddsub __PARMS((int c, long Prenum1));
  1271. END_OF_FILE
  1272. if test 691 -ne `wc -c <'vim/src/proto/ops.pro'`; then
  1273.     echo shar: \"'vim/src/proto/ops.pro'\" unpacked with wrong size!
  1274. fi
  1275. # end of 'vim/src/proto/ops.pro'
  1276. fi
  1277. if test -f 'vim/src/proto/param.pro' -a "${1}" != "-c" ; then 
  1278.   echo shar: Will not clobber existing file \"'vim/src/proto/param.pro'\"
  1279. else
  1280. echo shar: Extracting \"'vim/src/proto/param.pro'\" \(159 characters\)
  1281. sed "s/^X//" >'vim/src/proto/param.pro' <<'END_OF_FILE'
  1282. X/* param.c */
  1283. Xvoid set_init __PARMS((void));
  1284. Xvoid doset __PARMS((char *arg));
  1285. Xint makeset __PARMS((struct __stdio *fd));
  1286. Xvoid clear_termparam __PARMS((void));
  1287. END_OF_FILE
  1288. if test 159 -ne `wc -c <'vim/src/proto/param.pro'`; then
  1289.     echo shar: \"'vim/src/proto/param.pro'\" unpacked with wrong size!
  1290. fi
  1291. # end of 'vim/src/proto/param.pro'
  1292. fi
  1293. if test -f 'vim/src/proto/quickfix.pro' -a "${1}" != "-c" ; then 
  1294.   echo shar: Will not clobber existing file \"'vim/src/proto/quickfix.pro'\"
  1295. else
  1296. echo shar: Extracting \"'vim/src/proto/quickfix.pro'\" \(209 characters\)
  1297. sed "s/^X//" >'vim/src/proto/quickfix.pro' <<'END_OF_FILE'
  1298. X/* quickfix.c */
  1299. Xint qf_init __PARMS((char *fname));
  1300. Xvoid qf_jump __PARMS((int errornr));
  1301. Xvoid qf_list __PARMS((void));
  1302. Xvoid qf_clrallmarks __PARMS((void));
  1303. Xvoid qf_adjustmark __PARMS((char *old, char *new));
  1304. END_OF_FILE
  1305. if test 209 -ne `wc -c <'vim/src/proto/quickfix.pro'`; then
  1306.     echo shar: \"'vim/src/proto/quickfix.pro'\" unpacked with wrong size!
  1307. fi
  1308. # end of 'vim/src/proto/quickfix.pro'
  1309. fi
  1310. if test -f 'vim/src/proto/regexp.pro' -a "${1}" != "-c" ; then 
  1311.   echo shar: Will not clobber existing file \"'vim/src/proto/regexp.pro'\"
  1312. else
  1313. echo shar: Extracting \"'vim/src/proto/regexp.pro'\" \(171 characters\)
  1314. sed "s/^X//" >'vim/src/proto/regexp.pro' <<'END_OF_FILE'
  1315. X/* regexp.c */
  1316. Xstruct regexp *regcomp __PARMS((char *exp));
  1317. Xint regexec __PARMS((struct regexp *prog, char *string, int at_bol));
  1318. Xchar *cstrchr __PARMS((char *s, int c));
  1319. END_OF_FILE
  1320. if test 171 -ne `wc -c <'vim/src/proto/regexp.pro'`; then
  1321.     echo shar: \"'vim/src/proto/regexp.pro'\" unpacked with wrong size!
  1322. fi
  1323. # end of 'vim/src/proto/regexp.pro'
  1324. fi
  1325. if test -f 'vim/src/proto/regsub.pro' -a "${1}" != "-c" ; then 
  1326.   echo shar: Will not clobber existing file \"'vim/src/proto/regsub.pro'\"
  1327. else
  1328. echo shar: Extracting \"'vim/src/proto/regsub.pro'\" \(105 characters\)
  1329. sed "s/^X//" >'vim/src/proto/regsub.pro' <<'END_OF_FILE'
  1330. X/* regsub.c */
  1331. Xint regsub __PARMS((struct regexp *prog, char *source, char *dest, int copy, int magic));
  1332. END_OF_FILE
  1333. if test 105 -ne `wc -c <'vim/src/proto/regsub.pro'`; then
  1334.     echo shar: \"'vim/src/proto/regsub.pro'\" unpacked with wrong size!
  1335. fi
  1336. # end of 'vim/src/proto/regsub.pro'
  1337. fi
  1338. if test -f 'vim/src/proto/screen.pro' -a "${1}" != "-c" ; then 
  1339.   echo shar: Will not clobber existing file \"'vim/src/proto/screen.pro'\"
  1340. else
  1341. echo shar: Extracting \"'vim/src/proto/screen.pro'\" \(662 characters\)
  1342. sed "s/^X//" >'vim/src/proto/screen.pro' <<'END_OF_FILE'
  1343. X/* screen.c */
  1344. Xvoid updateline __PARMS((void));
  1345. Xvoid updateScreen __PARMS((int type));
  1346. Xvoid comp_Botline __PARMS((void));
  1347. Xint prt_line __PARMS((char *s));
  1348. Xvoid screenalloc __PARMS((void));
  1349. Xvoid screenclear __PARMS((void));
  1350. Xvoid cursupdate __PARMS((void));
  1351. Xvoid curs_columns __PARMS((void));
  1352. Xint getvcol __PARMS((struct fpos *pos, int type));
  1353. Xvoid scrolldown __PARMS((long nlines));
  1354. Xvoid scrollup __PARMS((long nlines));
  1355. Xint s_ins __PARMS((int row, int nlines, int invalid));
  1356. Xint s_del __PARMS((int row, int nlines, int invalid));
  1357. Xvoid showmode __PARMS((void));
  1358. Xvoid delmode __PARMS((void));
  1359. Xvoid showruler __PARMS((int always));
  1360. Xvoid clear_line __PARMS((void));
  1361. END_OF_FILE
  1362. if test 662 -ne `wc -c <'vim/src/proto/screen.pro'`; then
  1363.     echo shar: \"'vim/src/proto/screen.pro'\" unpacked with wrong size!
  1364. fi
  1365. # end of 'vim/src/proto/screen.pro'
  1366. fi
  1367. if test -f 'vim/src/proto/script.pro' -a "${1}" != "-c" ; then 
  1368.   echo shar: Will not clobber existing file \"'vim/src/proto/script.pro'\"
  1369. else
  1370. echo shar: Extracting \"'vim/src/proto/script.pro'\" \(315 characters\)
  1371. sed "s/^X//" >'vim/src/proto/script.pro' <<'END_OF_FILE'
  1372. X/* script.c */
  1373. Xvoid startscript __PARMS((void));
  1374. Xint stopscript __PARMS((void));
  1375. Xint openscript __PARMS((char *name));
  1376. Xvoid updatescript __PARMS((int c));
  1377. Xvoid openrecover __PARMS((void));
  1378. Xchar *modname __PARMS((char *fname, char *ext));
  1379. Xvoid script_winsize __PARMS((void));
  1380. Xvoid script_winsize_pp __PARMS((void));
  1381. END_OF_FILE
  1382. if test 315 -ne `wc -c <'vim/src/proto/script.pro'`; then
  1383.     echo shar: \"'vim/src/proto/script.pro'\" unpacked with wrong size!
  1384. fi
  1385. # end of 'vim/src/proto/script.pro'
  1386. fi
  1387. if test -f 'vim/src/proto/search.pro' -a "${1}" != "-c" ; then 
  1388.   echo shar: Will not clobber existing file \"'vim/src/proto/search.pro'\"
  1389. else
  1390. echo shar: Extracting \"'vim/src/proto/search.pro'\" \(717 characters\)
  1391. sed "s/^X//" >'vim/src/proto/search.pro' <<'END_OF_FILE'
  1392. X/* search.c */
  1393. Xstruct regexp *myregcomp __PARMS((char *pat));
  1394. Xint searchit __PARMS((struct fpos *pos, int dir, char *str, long count, int end));
  1395. Xint dosearch __PARMS((int dir, char *str, int reverse, long count, int echo));
  1396. Xint searchc __PARMS((int c, int dir, int type, long count));
  1397. Xstruct fpos *showmatch __PARMS((void));
  1398. Xint findfunc __PARMS((int dir, int what, long count));
  1399. Xint findsent __PARMS((int dir, long count));
  1400. Xint findpar __PARMS((int dir, long count, int what));
  1401. Xint startPS __PARMS((long lnum, int para));
  1402. Xint fwd_word __PARMS((long count, int type));
  1403. Xint bck_word __PARMS((long count, int type));
  1404. Xint end_word __PARMS((long count, int type, int stop));
  1405. Xint skip_chars __PARMS((int class, int dir));
  1406. END_OF_FILE
  1407. if test 717 -ne `wc -c <'vim/src/proto/search.pro'`; then
  1408.     echo shar: \"'vim/src/proto/search.pro'\" unpacked with wrong size!
  1409. fi
  1410. # end of 'vim/src/proto/search.pro'
  1411. fi
  1412. if test -f 'vim/src/proto/storage.pro' -a "${1}" != "-c" ; then 
  1413.   echo shar: Will not clobber existing file \"'vim/src/proto/storage.pro'\"
  1414. else
  1415. echo shar: Extracting \"'vim/src/proto/storage.pro'\" \(705 characters\)
  1416. sed "s/^X//" >'vim/src/proto/storage.pro' <<'END_OF_FILE'
  1417. X/* storage.c */
  1418. Xchar *m_blockalloc __PARMS((unsigned long size, int message));
  1419. Xvoid m_blockfree __PARMS((void));
  1420. Xvoid free_line __PARMS((char *ptr));
  1421. Xchar *alloc_line __PARMS((unsigned int size));
  1422. Xchar *save_line __PARMS((char *src));
  1423. Xvoid filealloc __PARMS((void));
  1424. Xvoid freeall __PARMS((void));
  1425. Xchar *nr2ptr __PARMS((long nr));
  1426. Xchar *pos2ptr __PARMS((struct fpos *pos));
  1427. Xvoid setmarked __PARMS((long lnum));
  1428. Xlong firstmarked __PARMS((void));
  1429. Xvoid clearmarked __PARMS((void));
  1430. Xlong ptr2nr __PARMS((char *ptr, long start));
  1431. Xint appendline __PARMS((long after, char *s));
  1432. Xchar *delsline __PARMS((long nr, int delmarks));
  1433. Xchar *replaceline __PARMS((long lnum, char *new));
  1434. Xint canincrease __PARMS((int n));
  1435. END_OF_FILE
  1436. if test 705 -ne `wc -c <'vim/src/proto/storage.pro'`; then
  1437.     echo shar: \"'vim/src/proto/storage.pro'\" unpacked with wrong size!
  1438. fi
  1439. # end of 'vim/src/proto/storage.pro'
  1440. fi
  1441. if test -f 'vim/src/proto/tag.pro' -a "${1}" != "-c" ; then 
  1442.   echo shar: Will not clobber existing file \"'vim/src/proto/tag.pro'\"
  1443. else
  1444. echo shar: Extracting \"'vim/src/proto/tag.pro'\" \(187 characters\)
  1445. sed "s/^X//" >'vim/src/proto/tag.pro' <<'END_OF_FILE'
  1446. X/* tag.c */
  1447. Xvoid dotag __PARMS((char *tag, int type, int count));
  1448. Xvoid clrtags __PARMS((void));
  1449. Xvoid incrtags __PARMS((void));
  1450. Xvoid decrtags __PARMS((void));
  1451. Xvoid dotags __PARMS((void));
  1452. END_OF_FILE
  1453. if test 187 -ne `wc -c <'vim/src/proto/tag.pro'`; then
  1454.     echo shar: \"'vim/src/proto/tag.pro'\" unpacked with wrong size!
  1455. fi
  1456. # end of 'vim/src/proto/tag.pro'
  1457. fi
  1458. if test -f 'vim/src/proto/term.pro' -a "${1}" != "-c" ; then 
  1459.   echo shar: Will not clobber existing file \"'vim/src/proto/term.pro'\"
  1460. else
  1461. echo shar: Extracting \"'vim/src/proto/term.pro'\" \(594 characters\)
  1462. sed "s/^X//" >'vim/src/proto/term.pro' <<'END_OF_FILE'
  1463. X/* term.c */
  1464. Xvoid set_term __PARMS((char *term));
  1465. Xchar *tgoto __PARMS((char *cm, int x, int y));
  1466. Xvoid termcapinit __PARMS((char *term));
  1467. Xvoid outstrn __PARMS((char *s));
  1468. Xvoid outstr __PARMS((char *s));
  1469. Xvoid windgoto __PARMS((int row, int col));
  1470. Xvoid setcursor __PARMS((void));
  1471. Xvoid ttest __PARMS((int pairs));
  1472. Xint inchar __PARMS((int async, int waitforever));
  1473. Xvoid outnum __PARMS((long n));
  1474. Xvoid check_winsize __PARMS((void));
  1475. Xvoid set_winsize __PARMS((int width, int height, int mustset));
  1476. Xvoid settmode __PARMS((int raw));
  1477. Xvoid starttermcap __PARMS((void));
  1478. Xvoid stoptermcap __PARMS((void));
  1479. END_OF_FILE
  1480. if test 594 -ne `wc -c <'vim/src/proto/term.pro'`; then
  1481.     echo shar: \"'vim/src/proto/term.pro'\" unpacked with wrong size!
  1482. fi
  1483. # end of 'vim/src/proto/term.pro'
  1484. fi
  1485. if test -f 'vim/src/proto/termlib.pro' -a "${1}" != "-c" ; then 
  1486.   echo shar: Will not clobber existing file \"'vim/src/proto/termlib.pro'\"
  1487. else
  1488. echo shar: Extracting \"'vim/src/proto/termlib.pro'\" \(300 characters\)
  1489. sed "s/^X//" >'vim/src/proto/termlib.pro' <<'END_OF_FILE'
  1490. X/* termlib.c */
  1491. Xint tgetent __PARMS((char *tbuf, char *term));
  1492. Xint tgetflag __PARMS((char *id));
  1493. Xint tgetnum __PARMS((char *id));
  1494. Xchar *tgetstr __PARMS((char *id, char **buf));
  1495. Xchar *tgoto __PARMS((char *cm, int col, int line));
  1496. Xint tputs __PARMS((char *cp, int affcnt, void (*outc)(unsigned int)));
  1497. END_OF_FILE
  1498. if test 300 -ne `wc -c <'vim/src/proto/termlib.pro'`; then
  1499.     echo shar: \"'vim/src/proto/termlib.pro'\" unpacked with wrong size!
  1500. fi
  1501. # end of 'vim/src/proto/termlib.pro'
  1502. fi
  1503. if test -f 'vim/src/proto/undo.pro' -a "${1}" != "-c" ; then 
  1504.   echo shar: Will not clobber existing file \"'vim/src/proto/undo.pro'\"
  1505. else
  1506. echo shar: Extracting \"'vim/src/proto/undo.pro'\" \(418 characters\)
  1507. sed "s/^X//" >'vim/src/proto/undo.pro' <<'END_OF_FILE'
  1508. X/* undo.c */
  1509. Xint u_saveCurpos __PARMS((void));
  1510. Xint u_save __PARMS((long top, long bot));
  1511. Xint u_savesub __PARMS((long lnum, char *ptr));
  1512. Xint u_savedel __PARMS((long lnum, char *ptr));
  1513. Xvoid u_undo __PARMS((int count));
  1514. Xvoid u_redo __PARMS((int count));
  1515. Xvoid u_sync __PARMS((void));
  1516. Xvoid u_clearall __PARMS((void));
  1517. Xvoid u_saveline __PARMS((long lnum));
  1518. Xvoid u_clearline __PARMS((void));
  1519. Xvoid u_undoline __PARMS((void));
  1520. END_OF_FILE
  1521. if test 418 -ne `wc -c <'vim/src/proto/undo.pro'`; then
  1522.     echo shar: \"'vim/src/proto/undo.pro'\" unpacked with wrong size!
  1523. fi
  1524. # end of 'vim/src/proto/undo.pro'
  1525. fi
  1526. if test -f 'vim/src/ptx_stdlib.h' -a "${1}" != "-c" ; then 
  1527.   echo shar: Will not clobber existing file \"'vim/src/ptx_stdlib.h'\"
  1528. else
  1529. echo shar: Extracting \"'vim/src/ptx_stdlib.h'\" \(955 characters\)
  1530. sed "s/^X//" >'vim/src/ptx_stdlib.h' <<'END_OF_FILE'
  1531. X/*
  1532. X * ptx_stdlib.h: declarations which are needed for sequent
  1533. X */
  1534. X
  1535. Xextern void free(void *);
  1536. X#ifdef SIZE_T /* sys/types.h */
  1537. Xextern void *malloc(size_t);
  1538. Xextern off_t lseek(int, off_t, int);
  1539. X#else
  1540. Xextern void *malloc(unsigned);
  1541. Xextern int lseek(int, int, int);
  1542. X#endif
  1543. X
  1544. X#ifndef _FCNTL_H_
  1545. Xextern int open(char *, int, ...);
  1546. X#endif
  1547. Xextern int close(int);
  1548. Xextern int read(int, char *, unsigned);
  1549. Xextern int write(int, char *, unsigned);
  1550. Xextern int ioctl(int, int, ...);
  1551. Xextern int unlink(char *);
  1552. X
  1553. Xextern char *getenv(char *);
  1554. Xextern int getuid(void);
  1555. Xextern int getgid(void);
  1556. X
  1557. X#ifdef _NFILE /* stdio.h */
  1558. Xextern int _filbuf(FILE *);
  1559. Xextern int _flsbuf(unsigned char, FILE *);
  1560. X#endif
  1561. X
  1562. X#ifdef _POLL_H_
  1563. Xextern int poll(struct pollfd[], unsigned long, int);
  1564. X#endif /* _POLL_H_ */
  1565. X
  1566. Xextern char *getcwd(char *, int);
  1567. X
  1568. Xextern int chdir(char *);
  1569. X
  1570. Xextern int atoi (char *);
  1571. Xextern long atol(char *);
  1572. Xextern long strtol(char *, char **, int);
  1573. X
  1574. Xextern int isatty(int);
  1575. END_OF_FILE
  1576. if test 955 -ne `wc -c <'vim/src/ptx_stdlib.h'`; then
  1577.     echo shar: \"'vim/src/ptx_stdlib.h'\" unpacked with wrong size!
  1578. fi
  1579. # end of 'vim/src/ptx_stdlib.h'
  1580. fi
  1581. if test -f 'vim/src/regexp.h' -a "${1}" != "-c" ; then 
  1582.   echo shar: Will not clobber existing file \"'vim/src/regexp.h'\"
  1583. else
  1584. echo shar: Extracting \"'vim/src/regexp.h'\" \(1541 characters\)
  1585. sed "s/^X//" >'vim/src/regexp.h' <<'END_OF_FILE'
  1586. X/* vi:ts=4:sw=4
  1587. X * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  1588. X *
  1589. X * This is NOT the original regular expression code as written by
  1590. X * Henry Spencer. This code has been modified specifically for use
  1591. X * with the VIM editor, and should not be used apart from compiling
  1592. X * VIM. If you want a good regular expression library, get the
  1593. X * original code. The copyright notice that follows is from the
  1594. X * original.
  1595. X *
  1596. X * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  1597. X *
  1598. X * Definitions etc. for regexp(3) routines.
  1599. X *
  1600. X * Caveat:    this is V8 regexp(3) [actually, a reimplementation thereof],
  1601. X * not the System V one.
  1602. X */
  1603. X
  1604. X#ifndef _REGEXP_H
  1605. X#define _REGEXP_H
  1606. X
  1607. X#define NSUBEXP  10
  1608. Xtypedef struct regexp {
  1609. X    char           *startp[NSUBEXP];
  1610. X    char           *endp[NSUBEXP];
  1611. X    char            regstart;    /* Internal use only. */
  1612. X    char            reganch;    /* Internal use only. */
  1613. X    char           *regmust;    /* Internal use only. */
  1614. X    int             regmlen;    /* Internal use only. */
  1615. X    char            program[1]; /* Unwarranted chumminess with compiler. */
  1616. X}                regexp;
  1617. X
  1618. X/* regexp.c */
  1619. Xregexp *regcomp __ARGS((char *));
  1620. Xint regexec __ARGS((regexp *, char *, int));
  1621. X/* int cstrncmp __ARGS((char *, char *, int)); */
  1622. Xchar *cstrchr __ARGS((char *, int));
  1623. X
  1624. X/* regsub.c */
  1625. Xint regsub __ARGS((regexp *, char *, char *, int, int));
  1626. X
  1627. X/* search.c */
  1628. Xextern void     regerror __ARGS((char *));
  1629. X
  1630. X#ifndef ORIGINAL
  1631. Xextern int        reg_ic;         /* set non-zero to ignore case in searches */
  1632. Xextern int        reg_magic;        /* set zero to disable magicness of .*[~& */
  1633. X#endif
  1634. X#endif    /* _REGEXP_H */
  1635. END_OF_FILE
  1636. if test 1541 -ne `wc -c <'vim/src/regexp.h'`; then
  1637.     echo shar: \"'vim/src/regexp.h'\" unpacked with wrong size!
  1638. fi
  1639. # end of 'vim/src/regexp.h'
  1640. fi
  1641. if test -f 'vim/src/regmagic.h' -a "${1}" != "-c" ; then 
  1642.   echo shar: Will not clobber existing file \"'vim/src/regmagic.h'\"
  1643. else
  1644. echo shar: Extracting \"'vim/src/regmagic.h'\" \(663 characters\)
  1645. sed "s/^X//" >'vim/src/regmagic.h' <<'END_OF_FILE'
  1646. X/* vi:ts=4:sw=4
  1647. X * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  1648. X *
  1649. X * This is NOT the original regular expression code as written by
  1650. X * Henry Spencer. This code has been modified specifically for use
  1651. X * with the VIM editor, and should not be used apart from compiling
  1652. X * VIM. If you want a good regular expression library, get the
  1653. X * original code. The copyright notice that follows is from the
  1654. X * original.
  1655. X *
  1656. X * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  1657. X *
  1658. X * The first byte of the regexp internal "program" is actually this magic
  1659. X * number; the start node begins in the second byte.
  1660. X */
  1661. X
  1662. X#define MAGIC    0234
  1663. END_OF_FILE
  1664. if test 663 -ne `wc -c <'vim/src/regmagic.h'`; then
  1665.     echo shar: \"'vim/src/regmagic.h'\" unpacked with wrong size!
  1666. fi
  1667. # end of 'vim/src/regmagic.h'
  1668. fi
  1669. if test -f 'vim/src/termlib.fix.uue' -a "${1}" != "-c" ; then 
  1670.   echo shar: Will not clobber existing file \"'vim/src/termlib.fix.uue'\"
  1671. else
  1672. echo shar: Extracting \"'vim/src/termlib.fix.uue'\" \(89 characters\)
  1673. sed "s/^X//" >'vim/src/termlib.fix.uue' <<'END_OF_FILE'
  1674. X
  1675. Xbegin 644 termlib.fix
  1676. XB#2]O=71C*2@I#6QL;&QL875N<VEG;F5D(&EN=!LZ=W$-"O__5
  1677. X``
  1678. Xend
  1679. Xsize 34
  1680. END_OF_FILE
  1681. if test 89 -ne `wc -c <'vim/src/termlib.fix.uue'`; then
  1682.     echo shar: \"'vim/src/termlib.fix.uue'\" unpacked with wrong size!
  1683. fi
  1684. # end of 'vim/src/termlib.fix.uue'
  1685. fi
  1686. if test -f 'vim/src/vim.prj' -a "${1}" != "-c" ; then 
  1687.   echo shar: Will not clobber existing file \"'vim/src/vim.prj'\"
  1688. else
  1689. echo shar: Extracting \"'vim/src/vim.prj'\" \(283 characters\)
  1690. sed "s/^X//" >'vim/src/vim.prj' <<'END_OF_FILE'
  1691. XALLOC.C
  1692. XBUFFERS.C
  1693. XCHARSET.C
  1694. XCMDLINE.C
  1695. XCSEARCH.C
  1696. XEDIT.C
  1697. XDIGRAPH.C
  1698. XFILEIO.C
  1699. XHELP.C
  1700. XLINEFUNC.C
  1701. XMAIN.C
  1702. XMARK.C
  1703. XMESSAGE.C
  1704. XMISCCMDS.C
  1705. XMSDOS.C
  1706. XNORMAL.C
  1707. XOPS.C
  1708. XPARAM.C
  1709. XQUICKFIX.C
  1710. XREGEXP.C
  1711. XREGSUB.C
  1712. XSCREEN.C
  1713. XSCRIPT.C
  1714. XSEARCH.C
  1715. XSTORAGE.C
  1716. XTAG.C
  1717. XTERM.C
  1718. XUNDO.C
  1719. XVERSION.C
  1720. END_OF_FILE
  1721. if test 283 -ne `wc -c <'vim/src/vim.prj'`; then
  1722.     echo shar: \"'vim/src/vim.prj'\" unpacked with wrong size!
  1723. fi
  1724. # end of 'vim/src/vim.prj'
  1725. fi
  1726. if test -f 'vim/src/vimresp' -a "${1}" != "-c" ; then 
  1727.   echo shar: Will not clobber existing file \"'vim/src/vimresp'\"
  1728. else
  1729. echo shar: Extracting \"'vim/src/vimresp'\" \(325 characters\)
  1730. sed "s/^X//" >'vim/src/vimresp' <<'END_OF_FILE'
  1731. Xalloc.obj msdos.obj buffers.obj charset.obj cmdline.obj csearch.obj +
  1732. Xdigraph.obj edit.obj fileio.obj help.obj linefunc.obj main.obj mark.obj +
  1733. Xmessage.obj misccmds.obj normal.obj ops.obj param.obj quickfix.obj +
  1734. Xregexp.obj regsub.obj screen.obj script.obj search.obj storage.obj +
  1735. Xtag.obj term.obj undo.obj version.obj
  1736. END_OF_FILE
  1737. if test 325 -ne `wc -c <'vim/src/vimresp'`; then
  1738.     echo shar: \"'vim/src/vimresp'\" unpacked with wrong size!
  1739. fi
  1740. # end of 'vim/src/vimresp'
  1741. fi
  1742. if test -f 'vim/todo' -a "${1}" != "-c" ; then 
  1743.   echo shar: Will not clobber existing file \"'vim/todo'\"
  1744. else
  1745. echo shar: Extracting \"'vim/todo'\" \(1614 characters\)
  1746. sed "s/^X//" >'vim/todo' <<'END_OF_FILE'
  1747. XBugs, VI compatibility:
  1748. X
  1749. XSetting the size of the window does not always work as expected.
  1750. XWith quickfix we only get the first 25 errors. How do we get the rest?
  1751. XThe ":cq" command does not always abort the compiler.
  1752. XWhen editing multiple files, typing :q twice should exit Vim.
  1753. X
  1754. X
  1755. XFurther extentions:
  1756. X
  1757. XHistory stack for . command?
  1758. XWhen there are "Too many files", possibility to insert them all (CTRL-A).
  1759. XUse insert/delete char when terminal supports it.
  1760. X"edit" option: when off changing the buffer is not possible.
  1761. XAdd "-d null" for editing with a script file without a display.
  1762. XFor MSDOS use memory mapped screen output (ansi.sys not needed).
  1763. XFor MSDOS search for _exrc in the directory where the binary is, instead
  1764. X    of using $VIM\_exrc.
  1765. XIn insert mode: Remember the characters that were removed with backspace and
  1766. X    re-insert them one at a time with CTRL-x, all together with CTRL-x.
  1767. XAdd possibility to set a keymap. The code in amiga.c does not work yet.
  1768. XAdd recognition of CR-LF files and correctly write them automatically.
  1769. XAdd to quoting: Center, right-adjust, left-adjust, function (e.g. add).
  1770. XAdd possibility to re-select previously quoted part.
  1771. X
  1772. XFrom Elvis:
  1773. Xfontchanges recognized "\\fB" etc.
  1774. Xparse error messages from many compilers
  1775. X
  1776. X
  1777. XFar future extentions:
  1778. X
  1779. XOption verbose; when on keep the screen uptodate, when off only redisplay when
  1780. X    input needed.
  1781. XRemember message line for redraw.
  1782. XUse disk swap file when editing very large files.
  1783. XMode to keep text formatted while inserting/deleting.
  1784. XMode to keep C-code formatted (sort of on-line indent)
  1785. XOption to choose between line wrap and horizontal scrolling
  1786. END_OF_FILE
  1787. if test 1614 -ne `wc -c <'vim/todo'`; then
  1788.     echo shar: \"'vim/todo'\" unpacked with wrong size!
  1789. fi
  1790. # end of 'vim/todo'
  1791. fi
  1792. if test ! -d 'vim/tutor' ; then
  1793.     echo shar: Creating directory \"'vim/tutor'\"
  1794.     mkdir 'vim/tutor'
  1795. fi
  1796. if test -f 'vim/tutor/Readme' -a "${1}" != "-c" ; then 
  1797.   echo shar: Will not clobber existing file \"'vim/tutor/Readme'\"
  1798. else
  1799. echo shar: Extracting \"'vim/tutor/Readme'\" \(768 characters\)
  1800. sed "s/^X//" >'vim/tutor/Readme' <<'END_OF_FILE'
  1801. XVitutor is a "hands on" tutorial for new users of the Vim editor.
  1802. X
  1803. XMost new users can get through it in less than one hour.  The result
  1804. Xis that you can do a simple editing task using the Vim editor.
  1805. X
  1806. XTutor is a file that contains the tutorial lessons.  You can simply
  1807. Xexecute "vim tutor" and then follow the instructions in the lessons.
  1808. XThe lessons tell you to modify the file, so DON'T DO THIS ON YOUR
  1809. XORIGINAL COPY.
  1810. X
  1811. XI have considered adding more advanced lessons but have not found the
  1812. Xtime.  Please let me know how you like it and send any improvements you
  1813. Xmake.
  1814. X
  1815. XBob Ware, Colorado School of Mines, Golden, Co 80401, USA
  1816. X(303) 273-3987
  1817. Xbware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet
  1818. X
  1819. X(This file was modified by Bram Moolenaar for Vim)
  1820. END_OF_FILE
  1821. if test 768 -ne `wc -c <'vim/tutor/Readme'`; then
  1822.     echo shar: \"'vim/tutor/Readme'\" unpacked with wrong size!
  1823. fi
  1824. # end of 'vim/tutor/Readme'
  1825. fi
  1826. if test -f 'vim/tutor/poster' -a "${1}" != "-c" ; then 
  1827.   echo shar: Will not clobber existing file \"'vim/tutor/poster'\"
  1828. else
  1829. echo shar: Extracting \"'vim/tutor/poster'\" \(860 characters\)
  1830. sed "s/^X//" >'vim/tutor/poster' <<'END_OF_FILE'
  1831. XArticle 3390 of alt.sources:
  1832. XXref: oce-rd1 comp.editors:3231 alt.sources:3390
  1833. XPath: oce-rd1!venlo!hp4nl!mcsun!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!pikes!slate!bware
  1834. XFrom: bware@slate.mines.colorado.edu (Ware Bob)
  1835. XNewsgroups: comp.editors,alt.sources
  1836. XSubject: hands on vi tutor
  1837. XKeywords: for new users
  1838. XMessage-ID: <1991Jul17.161355.15677@slate.mines.colorado.edu>
  1839. XDate: 17 Jul 91 16:13:55 GMT
  1840. XSender: bware@slate.mines.colorado.edu (Ware Bob)
  1841. XOrganization: Colorado School of Mines
  1842. XLines: 830
  1843. X
  1844. X
  1845. XI posted this a few weeks ago, but a number of people have munged 
  1846. Xtheir copy, so I am reposting it with better instructions.
  1847. X
  1848. XThis is a "hand-on" tutor to help new users learn the vi editor.
  1849. X
  1850. XBob Ware, Colorado School of Mines, Golden, Co 80401, USA
  1851. X(303) 273-3987
  1852. Xbware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet
  1853. END_OF_FILE
  1854. if test 860 -ne `wc -c <'vim/tutor/poster'`; then
  1855.     echo shar: \"'vim/tutor/poster'\" unpacked with wrong size!
  1856. fi
  1857. # end of 'vim/tutor/poster'
  1858. fi
  1859. echo shar: End of archive 1 \(of 23\).
  1860. cp /dev/null ark1isdone
  1861. MISSING=""
  1862. 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 ; do
  1863.     if test ! -f ark${I}isdone ; then
  1864.     MISSING="${MISSING} ${I}"
  1865.     fi
  1866. done
  1867. if test "${MISSING}" = "" ; then
  1868.     echo You have unpacked all 23 archives.
  1869.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1870. else
  1871.     echo You still need to unpack the following archives:
  1872.     echo "        " ${MISSING}
  1873. fi
  1874. ##  End of shell archive.
  1875. exit 0
  1876. -------------8<----------------8<----------------8<---------------8<--------
  1877. Bram Moolenaar                             | DISCLAIMER:  This  note  does  not
  1878. Oce Nederland B.V., Research & Development | necessarily represent the position
  1879. p.o. box 101, 5900 MA  Venlo               | of  Oce-Nederland  B.V.  Therefore
  1880. The Netherlands        phone +31 77 594077 | no liability or responsibility for
  1881. UUCP: mool@oce.nl        fax +31 77 595450 | whatever will be accepted.
  1882.  
  1883. exit 0 # Just in case...
  1884.