source: trunk/minix/man/man1/elvis.1@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 3.9 KB
Line 
1.TH ELVIS 1
2.SH NAME
3elvis, ex, vi \- The editor
4.SH SYNOPSIS
5\fBelvis\fP [\fIflags\fP] [\fB+\fP\fIcmd\fP] [\fIfiles\fP...]
6.SH DESCRIPTION
7\fBElvis\fP is a text editor which emulates \fBvi\fP/\fBex\fP.
8.PP
9On systems which pass the program name as an argument, such as UNIX and MINIX 3,
10you may also install \fBelvis\fP under the names "ex", "vi", "view", and "input".
11These extra names would normally be links to elvis;
12see the "ln" shell command.
13.PP
14When \fBelvis\fP is invoked as "vi",
15it behaves exactly as though it was invoked as "elvis".
16However, if you invoke \fBelvis\fP as "view",
17then the readonly option is set as though you had given it the "-R" flag.
18If you invoke \fBelvis\fP as "ex",
19then \fBelvis\fP will start up in the colon command mode
20instead of the visual command mode,
21as though you had given it the "-e" flag.
22If you invoke \fBelvis\fP as "input" or "edit",
23then \fBelvis\fP will start up in input mode,
24as though the "-i" flag was given.
25.SH OPTIONS
26.IP \fB-r\fP
27To the real vi, this flag means that a previous edit should be recovered.
28\fBElvis\fP, though, has a separate program, called \fIelvrec\fP(1), for recovering
29files.
30When you invoke \fBelvis\fP with -r, \fBelvis\fP will tell you to run \fBelvrec\fP.
31.IP \fB-R\fP
32This sets the "readonly" option,
33so you won't accidentally overwrite a file.
34.IP "\fB-t\fP \fItag\fP"
35This causes \fBelvis\fP to start editing at the given tag.
36.IP "\fB-m\fP [\fIfile\fP]"
37\fBElvis\fP will search through \fIfile\fP for something that looks like
38an error message from a compiler.
39It will then begin editing the source file that caused the error,
40with the cursor sitting on the line where the error was detected.
41If you don't explicitly name a \fIfile\fP, then "errlist" is assumed.
42.IP \fB-e\fP
43\fBElvis\fP will start up in colon command mode.
44.IP \fB-v\fP
45\fBElvis\fP will start up in visual command mode.
46.IP \fB-i\fP
47\fBElvis\fP will start up in input mode.
48.IP "\fB-w\fR \fIwinsize\fR"
49Sets the "window" option's value to \fIwinsize\fR.
50.IP "\fB+\fP\fIcommand\fP or \fB-c\fP \fIcommand\fP"
51If you use the +\fIcommand\fP parameter,
52then after the first file is loaded
53\fIcommand\fP is executed as an EX command.
54A typical example would be "elvis +237 foo",
55which would cause \fBelvis\fP to start editing foo and
56then move directly to line 237.
57The "-c \fIcommand\fP" variant was added for UNIX SysV compatibility.
58.SH FILES
59.IP /tmp/elv*
60During editing,
61\fBelvis\fP stores text in a temporary file.
62For UNIX, this file will usually be stored in the /tmp directory,
63and the first three characters will be "elv".
64For other systems, the temporary files may be stored someplace else;
65see the version-specific section of the documentation.
66.IP tags
67This is the database used by the \fB:tags\fP command and the \fB-t\fP option.
68It is usually created by the \fBctags\fP(1) program.
69.IP ".exrc or elvis.rc"
70On UNIX-like systems, a file called ".exrc" in your home directory
71is executed as a series of \fBex\fR commands.
72A file by the same name may be executed in the current directory, too.
73On non-UNIX systems, ".exrc" is usually an invalid file name;
74there, the initialization file is called "elvis.rc" instead.
75.SH "SEE ALSO"
76.BR ctags (1),
77.BR ref (1),
78.BR elvrec (1),
79.BR elvis (9).
80.PP
81\fIElvis - A Clone of Vi/Ex\fP, the complete \fBelvis\fP documentation.
82.SH BUGS
83There is no LISP support.
84Certain other features are missing, too.
85.PP
86Auto-indent mode is not quite compatible with the real vi.
87Among other things, 0^D and ^^D don't do what you might expect.
88.PP
89Long lines are displayed differently.
90The real vi wraps long lines onto multiple rows of the screen,
91but \fBelvis\fP scrolls sideways.
92.SH AUTHOR
93.nf
94Steve Kirkendall
95kirkenda@cs.pdx.edu
96.fi
97.PP
98Many other people have worked to port \fBelvis\fP to various operating systems.
99To see who deserves credit, run the \fB:version\fP command from within \fBelvis\fP,
100or look in the system-specific section of the complete documentation.
101.\" ref to virec chnaged to elvrec -- ASW 2004-12-13
Note: See TracBrowser for help on using the repository browser.