home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / x / xvidoc.zoo / summary.ms < prev    next >
Text File  |  1992-07-28  |  22KB  |  747 lines

  1. .\"========== Macro definitions
  2. .\"========== Three-column output
  3. .de c3
  4. .ta 1.5i 3i 4.5i
  5. \\$1    \\$2    \\$3
  6. .br
  7. ..
  8. .\"========== Put string in boldface & surround with quotes
  9. .de qB
  10. \%\*Q\fB\\$1\fP\*U\\$2
  11. ..
  12. .\"========== Redefine NH to avoid widowing
  13. .rn NH Nh
  14. .de NH
  15. .if \\$1=1 .ne 1.5i
  16. .ne 1i
  17. .Nh \\$1 \\$2
  18. ..
  19. .\"========== End of macros
  20. .\"========== 11 on 13 looks so much better than 10 on 12
  21. .nr PS 11
  22. .nr VS 13
  23. .ps 11
  24. .vs 13p
  25. .nr HM 0.9i
  26. .nr FM 0.9i
  27. .if n .nr PO 0.5i
  28. .if n .nr LL 6.5i
  29. .\"========== Turn hyphenation off, and make sure it stays off
  30. .nh
  31. .rm hy
  32. .\"========== Headers in italics helps them to stand out from the text
  33. .OH '\fISummary of Differences between Vi and Xvi\fP''\fI%\fP'
  34. .EH '\fI%\fP''\fISummary of Differences between Vi and Xvi\fP'
  35. .OF '\fI25th September 1992\fP''\fIPage %\fP'
  36. .EF '\fIPage %\fP''\fI25th September 1992\fP'
  37. .\"===================== End of header; start of document ====================
  38. .TL
  39. Summary of Differences between Vi and Xvi
  40. .AU
  41. Chris Downey
  42. John Downey
  43. .AB no
  44. \fBXvi\fP (pronounced \fIecks-vee-eye\fP)
  45. is a free, portable, multi-window implementation of the popular
  46. .UX
  47. editor \fBvi\fP.
  48. .LP
  49. This document summarises the differences between the ``real'' \fBvi\fP
  50. and \fBxvi\fP.
  51. These differences are divided into three groups:
  52. \fIunimplemented features\fP,
  53. \fIdifferences\fP
  54. and \fIenhancements\fP,
  55. and each of these is described in the following sections.
  56. .AE
  57. .\"===========================================================================
  58. .NH 1
  59. Unimplemented Features
  60. .\"---------------------------------------------------------------------------
  61. .KS
  62. .NH 2
  63. Ex Mode
  64. .LP
  65. The main area in which \fBxvi\fP is lacking is \fBvi\fP's
  66. .B ex
  67. mode,
  68. which is not implemented at all (and neither are \fBedit\fP, \fBe\fP,
  69. and \fBopen\fP modes).
  70. However, many of the \fBex\fP commands are available in \fBxvi\fP as
  71. colon commands;
  72. the colon commands that have not been implemented are mostly those which offer
  73. the same functionality as other commands in \fBvi\fP mode.
  74. .KE
  75. .KS
  76. .LP
  77. Specifically, the following \fBex\fP commands are not implemented,
  78. and probably never will be within \fBxvi\fP:
  79. .DS
  80. .B
  81. .c3 insert undo ex
  82. .c3 change open |
  83. .c3 append z
  84. .R
  85. .DE
  86. .KE
  87. .KS
  88. .nh
  89. .rm hy
  90. while these \fBex\fP commands, although not currently implemented,
  91. may be added as colon commands at some time in the future:
  92. .DS
  93. .B
  94. .c3 abbreviate recover write>>
  95. .c3 unabbreviate join
  96. .R
  97. .DE
  98. .KE
  99. .\"---------------------------------------------------------------------------
  100. .NH 2
  101. Vi commands
  102. .LP
  103. The following \fBvi\fP mode commands are not implemented,
  104. although there is no real reason why they shouldn't be:
  105. .DS
  106. .B
  107. .c3 U =
  108. .R
  109. .DE
  110. .KS
  111. while this one is inappropriate in the context of \fBxvi\fP,
  112. since there is no
  113. .B ex
  114. mode:
  115. .DS
  116. .B Q
  117. .DE
  118. .KE
  119. .\"---------------------------------------------------------------------------
  120. .KS
  121. .NH 2
  122. Parameters
  123. .LP
  124. The following parameters have not been implemented,
  125. and probably won't be:
  126. .DS
  127. .B
  128. .c3 ada lisp redraw
  129. .c3 adapath mesg slowopen
  130. .c3 autoprint modeline term
  131. .c3 beautify open terse
  132. .c3 directory optimize ttytype
  133. .c3 edcompatible prompt window
  134. .c3 hardtabs
  135. .R
  136. .DE
  137. .KE
  138. .KS
  139. while these parameters may well be implemented at some point:
  140. .DS
  141. .B
  142. .c3 autowrite scroll warn
  143. .c3 errorbells sourceany writeany
  144. .R
  145. .DE
  146. .KE
  147. .\"---------------------------------------------------------------------------
  148. .NH 2
  149. Miscellaneous
  150. .LP
  151. Some features of certain commands do not work as they should.
  152. Specifically:
  153. .IP \(bu 5
  154. Repeat counts before insertions don't work.
  155. .IP \(bu 5
  156. Appending to named buffers is not yet implemented.
  157. .IP \(bu 5
  158. Typing \fB^Q\fP in input mode does not mean the same as \fB^V\fP;
  159. it just inserts a `^Q', assuming it gets as far as the editor at all.
  160. .IP \(bu 5
  161. Typing \fB^W\fP in insert mode does not back up one word as in \fBvi\fP.
  162. .IP \(bu 5
  163. It is not possible to interrupt the editor while it is
  164. performing certain operations.
  165. If you start off a big global command, you have to wait for it to finish.
  166. .IP \(bu 5
  167. Flags and counts after colon commands are not supported.
  168. .KS
  169. .IP \(bu 5
  170. It is not possible to read the output of a system command using
  171. .DS
  172. \fB:r\ !\fP\fIcommand\fP
  173. .DE
  174. or to write into a command using
  175. .DS
  176. \fB:w\ !\fP\fIcommand\fP
  177. .DE
  178. .KE
  179. .IP \(bu 5
  180. The \fB:substitute\fP command does not support splitting of lines.
  181. .IP \(bu 5
  182. Regular expressions, although implemented (see later for more details),
  183. do not support the \fB~\fP character;
  184. also, the \fB\e\^u\fP and \fB\e\^l\fP escape sequences are not supported on
  185. the right-hand side of a substitute replacement pattern.
  186. .IP \(bu 5
  187. The \fB:global\fP command only supports the commands [\fBlps&~d\fP].
  188. .IP \(bu 5
  189. \fBUndo\fP does not work properly when applied to macros (either
  190. .B @
  191. or
  192. \fB:map\fP); it should undo all the changes made by the macro, but in
  193. fact only the last command within the macro is undone.
  194. .\"===========================================================================
  195. .NH 1
  196. Enhancements
  197. .LP
  198. The following extensions are available in \fBxvi\fP.
  199. .\"---------------------------------------------------------------------------
  200. .KS
  201. .NH 2
  202. Parameter Handling
  203. .LP
  204. \fBXvi\fP supports 5 types of parameter:
  205. as well as \fBvi\fP's
  206. \fInumeric\fP,
  207. \fIstring\fP and
  208. \fIboolean\fP,
  209. it also has
  210. \fIenumerated\fP and
  211. \fIlist\fP types.
  212. The former is used for e.g. \fBformat\fP and \fBregextype\fP,
  213. while the latter is currently only used for \fBtags\fP.
  214. The advantage of the \fIenumerated\fP type is that if you try
  215. to set an illegal value, the set of correct values will be displayed,
  216. which is very useful if you have forgotten what the values may be.
  217. (Try \fB:set preserve\fP to see an example of this.)
  218. .KE
  219. .\"---------------------------------------------------------------------------
  220. .NH 2
  221. Windows
  222. .LP
  223. \fBXvi\fP supports multiple \fIbuffers\fP and \fIwindows\fP.
  224. A \fIbuffer\fP is the object which holds a file in memory,
  225. while a \fIwindow\fP is an area of the screen which shows part of a buffer.
  226. Note that every window references a buffer, even if no file is being edited.
  227. .LP
  228. The following commands are available for operating on buffers and windows:
  229. .IP \fB:buffer\fP 10
  230. create a new buffer in a new window; can be followed
  231. by a filename, which will be edited in the new buffer.
  232. .IP \fB:split\fP 10
  233. create a new window onto the current buffer by
  234. splitting the current window in half.
  235. The two resulting windows are similar to
  236. .I viewports
  237. on to a single editing buffer,
  238. in that changes made in one window are reflected in the other one.
  239. .IP \fB:close\fP 10
  240. close the current window; will also close the buffer
  241. if this is the last window onto it.
  242. .IP "\fB:x / ZZ\fP" 10
  243. close only the current window.
  244. If the window is the only one onto the buffer,
  245. the buffer will be closed as well,
  246. writing it first if it is modified.
  247. Hence, for a single window, this command does the
  248. same as in \fBvi\fP.
  249. .IP \fBg\fP 10
  250. move to the next window.
  251. This is normally the window directly below the current one
  252. on the screen, or the top window on the screen if the current
  253. window is the bottom one.
  254. .IP \fB^W\fP 10
  255. increase the size of the current window (may be
  256. given a numeric prefix, default is one line).
  257. .IP \fB^T\fP 10
  258. decrease the size of the current window (may be
  259. given a numeric prefix, default is one line).
  260. .IP \fB^O\fP 10
  261. make the current window as large as possible.
  262. .IP \fB^]\fP 10
  263. as for \fBvi\fP, but creates a new buffer window
  264. if appropriate (and if \fBautosplit\fP allows).
  265. .LP
  266. Note that the \fB:quit\fP command quits out of the editor,
  267. not out of a window.
  268. The \fB:close\fP command is thus the equivalent of \fB:quit\fP for windows.
  269. There is no equivalent of \fB:x\fP or \fBZZ\fP for the whole editor;
  270. these have been hijacked for operations on windows.
  271. .LP
  272. Also the numeric \fBautosplit\fP parameter specifies the maximum number
  273. of buffer windows that will be created automatically whenever you
  274. either edit more than one file, or use tags to edit a different file.
  275. .LP
  276. Undo works per buffer, as do marks; yank/put and redo (the \fB.\fP command)
  277. work over all buffers, i.e. you can delete from one buffer and put
  278. the text into a different buffer.
  279. .LP
  280. The \fBminrows\fP parameter specifies the minimum number of rows
  281. to which a window may be shrunk, including the status line.
  282. The default value is 2; 0 and 1 may also be useful.
  283. .\"---------------------------------------------------------------------------
  284. .KS
  285. .NH 2
  286. Named Buffers
  287. .LP
  288. As well as the normal named (conjugate) buffers, and the default one
  289. named \fB@\fP,
  290. several extra buffers named
  291. .B : ,
  292. .B / ,
  293. .B ?
  294. and
  295. .B !
  296. contain the last command lines entered for each of the command types.
  297. So for instance,
  298. .B @:
  299. will re-execute the last colon command, or you can insert
  300. it into your buffer, edit it and then re-execute it (e.g. with
  301. .B dd@@ ).
  302. .KE
  303. .\"---------------------------------------------------------------------------
  304. .KS
  305. .NH 2
  306. File Formats
  307. .LP
  308. \fBXvi\fP will handle different file formats, via the \fBformat\fP parameter,
  309. which may be set to e.g.
  310. .qB unix ,
  311. .qB msdos ,
  312. etc.
  313. This means you can edit \%MS-DOS files under UNIX, etc.
  314. .KE
  315. .\"---------------------------------------------------------------------------
  316. .KS
  317. .NH 2
  318. Regular Expressions
  319. .LP
  320. \fBVi\fP's \fBmagic\fP parameter is replaced by the \fBregextype\fP parameter,
  321. which can take the following values:
  322. .KE
  323. .IP \fBtags\fP 10
  324. only
  325. .B ^
  326. and
  327. .B $
  328. are significant (used for tags).
  329. .IP \fBgrep\fP 10
  330. like
  331. .B grep (1),
  332. but with
  333. .B \e<
  334. and
  335. .B \e\^>
  336. added.
  337. .IP \fBegrep\fP 10
  338. like
  339. .B egrep (1),
  340. but with
  341. .B \e<
  342. and
  343. .B \e\^>
  344. added.
  345. .LP
  346. The default is
  347. .B grep .
  348. .LP
  349. The \fBsections\fP and \fBparagraphs\fP parameters define
  350. .B egrep -style
  351. patterns to search for, rather than
  352. .B vi 's
  353. simplistic (and
  354. .B troff -dependent)
  355. character pairs.
  356. .LP
  357. The \fBsentences\fP parameter is also implemented in this fashion,
  358. but this is not completely satisfactory at the moment.
  359. .LP
  360. Note that it is possible to set or unset the \fBmagic\fP parameter
  361. as in \fBvi\fP; this will simply result in the \fBregextype\fP parameter
  362. being set as appropriate.
  363. .\"---------------------------------------------------------------------------
  364. .KS
  365. .NH 2
  366. Colour
  367. .LP
  368. \fBXvi\fP has a minimal amount of support for colours.
  369. Basically, there are considered to be four settable colours,
  370. each with a numeric parameter to say what its value is:
  371. .IP \fBcolour\fP 14
  372. colour used for text
  373. .IP \fBstatuscolour\fP 14
  374. colour used for status lines
  375. .IP \fBroscolour\fP 14
  376. as statuscolour, but for readonly files
  377. .IP \fBsystemcolour\fP 14
  378. colour used for system mode
  379. (i.e. subshells and after termination).
  380. .KE
  381. .LP
  382. The actual values of these parameters are system-dependent;
  383. on PC versions, they are hardware-dependent video attributes,
  384. while on UNIX they are indexes into the
  385. entries ``\fBc0\fP'' to ``\fBc9\fP''
  386. in the
  387. .B termcap (5)
  388. database,
  389. which are assumed to be colour-setting
  390. escape sequences if they are present.
  391. If they are not present,
  392. .qB so
  393. (begin standout mode)
  394. and
  395. .qB se
  396. (end standout mode)
  397. are used instead.
  398. Values of 0 and 1 give normal text, 2 to 9 give standout mode.
  399. .LP
  400. The default colour for the \fBroscolour\fP parameter will usually involve red
  401. if colours are available;
  402. this is intended to provide a warning to the user that writing the file may
  403. not be possible.
  404. .KS
  405. .LP
  406. The colour values may be entered in decimal, octal or hexadecimal form.
  407. This
  408. may be convenient for PC versions where the numbers actually
  409. represent colour bitmaps; for example, on \%MS-DOS,
  410. .DS
  411. .B
  412. :set co=0x1f
  413. .R
  414. .DE
  415. gives bright white text on a blue background.
  416. .KE
  417. .\"---------------------------------------------------------------------------
  418. .KS
  419. .NH 2
  420. Replace Mode
  421. .LP
  422. \fBXvi\fP's \fIreplace\fP mode (entered by the \fBR\fP command)
  423. acts more intelligently when you press the return key \(em
  424. it leaves the rest of the current line alone, and just starts
  425. replacing text on the next line, starting at the screen column
  426. where you first typed \fBR\fP.
  427. .KE
  428. .\"---------------------------------------------------------------------------
  429. .KS
  430. .NH 2
  431. Preserve
  432. .LP
  433. Rather than use \fBvi\fP's UNIX-specific method for preservation,
  434. \fBxvi\fP does periodic preservation of all files
  435. currently being edited into a temporary file in the same directory.
  436. \fBXvi\fP tries to do this when you are not typing, so that you won't
  437. notice the short delay when the temporary file is written out.
  438. Obviously, only changed files are preserved in this way, and the
  439. temporary file is normally removed
  440. once the real file has been successfully written.
  441. As an additional safety measure,
  442. when a file is explicitly saved
  443. and it appears not to have been preserved recently,
  444. it is normally preserved first.
  445. This ensures that,
  446. even if the operating system crashes while the
  447. real file is being created,
  448. there should always be at least one recent copy of it in the filesystem.
  449. The \fB:preserve\fP command is available as in \fBvi\fP to preserve
  450. a specific buffer manually.
  451. .KE
  452. .LP
  453. The level of safety provided by the preservation facility may be configured
  454. by changing the values of the
  455. .B preserve
  456. and
  457. .B preservetime
  458. parameters.
  459. The following values are available for
  460. .B preserve :
  461. .IP \fBunsafe\fP 10
  462. Never preserve any buffer before an explicit save.
  463. This can be useful on old, slow, floppy-only systems,
  464. but is not generally recommended.
  465. .IP \fBstandard\fP 10
  466. The default value.
  467. Only preserve a buffer before an explicit save if it appears not to have
  468. been preserved recently.
  469. .IP \fBsafe\fP 10
  470. Always preserve buffers before they are written.
  471. .IP \fBparanoid\fP 10
  472. As for \fBsafe\fP, but the preserve file is never removed,
  473. even after the file has been successfully written.
  474. .LP
  475. .nh
  476. In all cases,
  477. all modified buffers are preserved automatically after no user events
  478. have been received for
  479. .B preservetime
  480. seconds,
  481. if a minimum number of events (currently 60) have been received since the
  482. last automatic preservation.
  483. This behaviour can be more or less disabled by setting
  484. .B preservetime
  485. to a very high value.
  486. (For example,
  487. one of the authors sets it to 600 on the machine he uses at home,
  488. which is an 8088-based PC with no hard disk;
  489. by way of contrast,
  490. on the SparcStation IPX which he uses at work,
  491. he sets it to 2.)
  492. .LP
  493. The names given to preserve files are system-dependent,
  494. but are generally of the form \*Q\fIfilename\fP.tmp\*U,
  495. or \*Q\fIfilename\fP.001\*U to \*Q\fIfilename\fP.999\*U.
  496. If a preserve file already exists, it will not be overwritten;
  497. instead, a new filename will be generated.
  498. .LP
  499. The \fB\-r\fP command line option is not supported.
  500. .\"---------------------------------------------------------------------------
  501. .KS
  502. .NH 2
  503. Help
  504. .LP
  505. A primitive help facility is available; the command \fB:help\fP, also
  506. mapped to the HELP or F1 keys on many systems, simply creates a new
  507. buffer window onto a standard help file.
  508. The name of the file which is edited is given by the \fBhelpfile\fP
  509. string parameter;
  510. the default on Unix versions is
  511. \fB"/usr/lib/xvi.help"\fP.
  512. .KE
  513. .\"---------------------------------------------------------------------------
  514. .KS
  515. .NH 2
  516. Scrolling
  517. .LP
  518. The
  519. .B jumpscroll
  520. enumerated parameter
  521. controls
  522. the editor's
  523. behaviour when the cursor moves beyond the limits of
  524. the current window.
  525. If its value is
  526. .B off ,
  527. and the new position is still reasonably close to the current window,
  528. the window will be scrolled so that the new cursor position is at the
  529. top or bottom of it.
  530. Typically, the window will be scrolled one
  531. line at a time as the cursor is moved up or down.
  532. This behaviour may not always be desirable; for example,
  533. terminals without real scrolling regions
  534. may force the editor to do a lot of screen updating,
  535. possibly over a slow telephone line or overloaded network.
  536. Also, on LCD screens or other displays with a long image persistence,
  537. it may
  538. make the text more difficult to read.
  539. If
  540. .B jumpscroll
  541. is set to
  542. .B on ,
  543. scrolling behaviour is modified so that,
  544. whenever
  545. the cursor moves beyond the limits of the current window,
  546. the window is redrawn so as to place the cursor as centrally as possible
  547. in it; thus, the window appears to
  548. .I jump
  549. to the new position.
  550. The default value for
  551. .B jumpscroll
  552. is \fBauto\fP,
  553. which causes
  554. the editor to jump
  555. instead of scrolling only if it can't scroll the affected window
  556. efficiently.
  557. .LP
  558. In all cases,
  559. if the distance from the top or bottom of the window
  560. to the new position is more than half the window size,
  561. the editor will jump instead of scrolling.
  562. .KE
  563. .LP
  564. Explicit scroll commands (e.g. \fB^D\fP) are not affected by
  565. the \fBjumpscroll\fP parameter.
  566. .\"---------------------------------------------------------------------------
  567. .KS
  568. .NH 2
  569. 8-bit Characters
  570. .LP
  571. Characters with the top bit set may be displayed, although
  572. it is not yet possible to have null
  573. (\(fm\^\e\^0\^\(fm)
  574. bytes in a file buffer.
  575. How the characters are displayed varies between systems;
  576. on UNIX, they will be shown as an octal escape sequence,
  577. while on \%MS-DOS, OS/2 and QNX they will be shown as the actual
  578. character in the PC character set.
  579. This can be controlled by setting the \fBcchars\fP and \fBmchars\fP
  580. variables; if these parameters are set,
  581. control- and meta-characters (respectively) are shown directly,
  582. otherwise they are shown as some sequence of printable characters.
  583. .LP
  584. You can use the \fB^_\fP (control-underscore) command to flip the
  585. top bit of the character the cursor is on.
  586. This may be useful on systems where it is otherwise impossible
  587. to enter 8-bit characters.
  588. .LP
  589. Tabs are normally displayed as a series of spaces of the appropriate
  590. length (according to the \fBtabstops\fP parameter);
  591. setting \fBlist\fP mode will cause them to be displayed as a control
  592. character, as will unsetting the \fBtabs\fP parameter.
  593. How the tab character is displayed is then under the control of
  594. the \fBcchars\fP parameter.
  595. .KE
  596. .\"---------------------------------------------------------------------------
  597. .KS
  598. .NH 2
  599. Mouse Support
  600. .LP
  601. Some mouse support is available for micro-based systems and workstations.
  602. Clicking the mouse button on:
  603. .IP "any line outside current window"
  604. changes current window to the one indicated by the mouse
  605. (can be used instead of \fBg\fP).
  606. .IP "top line of any window"
  607. scrolls window downwards (same as \fB^Y\fP).
  608. .IP "bottom line of any window"
  609. scrolls window upwards (same as \fB^E\fP).
  610. .IP "status line of any window"
  611. shows current file and lines (same as \fB^G\fP).
  612. .IP "any text line of any window"
  613. moves text cursor as near as possible to mouse cursor.
  614. .LP
  615. Also,
  616. windows can be resized by \*Qdragging\*U the appropriate status line
  617. up or down with the mouse.
  618. .KE
  619. .\"---------------------------------------------------------------------------
  620. .KS
  621. .NH 2
  622. Miscellaneous
  623. .IP \(bu 5
  624. The \fB:wn\fP (write file and edit next) command is provided, as per PC-vi.
  625. .KE
  626. .IP \(bu 5
  627. There is no limit to the number or size of \fBmap\fPs which may be defined,
  628. nor is there any fixed limit to the number of lines in a buffer.
  629. .IP \(bu 5
  630. The \fBedit\fP parameter controls whether a buffer can be modified.
  631. This may be used, together with the
  632. .B readonly
  633. parameter,
  634. to implement a nicer version of
  635. .B view (1)
  636. than
  637. \fBvi\fP's version, since it won't fool you into thinking that editing
  638. the buffer is in any way safe.
  639. Be warned: once having set \fBnoedit\fP, it is not possible to do a
  640. \fB:set edit\fP.
  641. It's a one-way street.
  642. .IP \(bu 5
  643. The \fBtimeout\fP parameter is implemented as a numeric value,
  644. specifying the number of milliseconds after which to assume that
  645. no further input is available to continue with the parsing of a
  646. \fBmap\fP sequence.
  647. This replaces \fBvi\fP's boolean parameter of the same name.
  648. .IP \(bu 5
  649. The \fBvbell\fP parameter may be used to specify use of a visual,
  650. rather than audible, bell, if this is available.
  651. .IP \(bu  5
  652. The \fB:echo\fP command is available; it simply echoes its arguments,
  653. after expansion of % and # characters.
  654. .IP \(bu 5
  655. In insert and replace modes,
  656. .B ^A
  657. has the same meaning as
  658. .B ^@
  659. in vi, except that it
  660. works at any time,
  661. not just for the first character.
  662. Also, typing
  663. \fB^B\fP\fIx\fP,
  664. where
  665. .I x
  666. is the name of a conjugate buffer, inserts the contents of that
  667. buffer into the input stream at that point.
  668. The buffer named
  669. .B <
  670. always contains the last thing inserted,
  671. so that
  672. .B ^B<
  673. is the same as
  674. .B ^A .
  675. .\"===========================================================================
  676. .KS
  677. .NH 1
  678. Differences
  679. .IP \(bu 5
  680. Argument handling is somewhat different; for instance,
  681. .B \-R
  682. is not supported, but
  683. .qB "\-s\ parameter=value"
  684. is, which is much more useful anyway.
  685. .KE
  686. .IP \(bu 5
  687. The
  688. .B XVINIT
  689. environment variable is read instead of
  690. .B EXINIT .
  691. Whilst no files are sourced
  692. automatically,
  693. users who wish to have a startup file can arrange it very easily.
  694. .B sh (1)
  695. or
  696. .B ksh (1)
  697. users should add this line to their
  698. .B "$HOME/.profile" :
  699. .DS
  700. .B
  701. XVINIT=\(fmsource \fIxvi-startup-file\fP\|\(fm; export XVINIT
  702. .R
  703. .DE
  704. .B csh (1)
  705. users should add this to their
  706. .B "$HOME/.login" :
  707. .DS
  708. .B
  709. setenv XVINIT \(fmsource \fIxvi-startup-file\fP\|\(fm
  710. .R
  711. .DE
  712. and \%MS-DOS users should add this to their
  713. .B autoexec.bat :
  714. .DS
  715. .B
  716. set XVINIT=source \fIxvi-startup-file\fP
  717. .R
  718. .DE
  719. .IP \(bu 5
  720. The \fBtags\fP parameter can be used to specify multiple tags files;
  721. these can be separated by either
  722. .qB "\^\e\ \|"
  723. (backslash space) or
  724. .qB ","
  725. (comma).
  726. .IP \(bu 5
  727. Alternate files are handled slightly differently,
  728. owing to the presence of buffer and window handling.
  729. Essentially, when you close a buffer, its filename
  730. is remembered as the alternate file;
  731. when you invoke the \fB^^\fP or \fB:e #\fP commands,
  732. this filename is re-edited.
  733. Note that \fB^^\fP edits the alternate file in a new buffer window.
  734. .IP \(bu 5
  735. Hitting the escape key while in the command line does not terminate input;
  736. instead, it cancels input, returning the prompt to the beginning
  737. of the line.
  738. This applies to input for
  739. .B : ,
  740. .B / ,
  741. .B ?
  742. and
  743. .B ! .
  744. .IP \(bu 5
  745. Character-based yanks (or deletes) which span line boundaries are handled
  746. correctly (\fBvi\fP gets this wrong).
  747.