ELVIS.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:4k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH ELVIS 1
- .SH NAME
- elvis, ex, vi - The editor
- .SH SYNOPSIS
- fBelvisfP [fIflagsfP] [fB+fPfIcmdfP] [fIfilesfP...]
- .SH DESCRIPTION
- fBElvisfP is a text editor which emulates fBvifP/fBexfP.
- .PP
- On systems which pass the program name as an argument, such as Unix and Minix,
- you may also install fBelvisfP under the names "ex", "vi", "view", and "input".
- These extra names would normally be links to elvis;
- see the "ln" shell command.
- .PP
- When fBelvisfP is invoked as "vi",
- it behaves exactly as though it was invoked as "elvis".
- However, if you invoke fBelvisfP as "view",
- then the readonly option is set as though you had given it the "-R" flag.
- If you invoke fBelvisfP as "ex",
- then fBelvisfP will start up in the colon command mode
- instead of the visual command mode,
- as though you had given it the "-e" flag.
- If you invoke fBelvisfP as "input" or "edit",
- then fBelvisfP will start up in input mode,
- as though the "-i" flag was given.
- .SH OPTIONS
- .IP fB-rfP
- To the real vi, this flag means that a previous edit should be recovered.
- fBElvisfP, though, has a separate program, called fIelvrecfP(1), for recovering
- files.
- When you invoke fBelvisfP with -r, fBelvisfP will tell you to run fBelvrecfP.
- .IP fB-RfP
- This sets the "readonly" option,
- so you won't accidentally overwrite a file.
- .IP "fB-tfP fItagfP"
- This causes fBelvisfP to start editing at the given tag.
- .IP "fB-mfP [fIfilefP]"
- fBElvisfP will search through fIfilefP for something that looks like
- an error message from a compiler.
- It will then begin editing the source file that caused the error,
- with the cursor sitting on the line where the error was detected.
- If you don't explicitly name a fIfilefP, then "errlist" is assumed.
- .IP fB-efP
- fBElvisfP will start up in colon command mode.
- .IP fB-vfP
- fBElvisfP will start up in visual command mode.
- .IP fB-ifP
- fBElvisfP will start up in input mode.
- .IP "fB-wfR fIwinsizefR"
- Sets the "window" option's value to fIwinsizefR.
- .IP "fB+fPfIcommandfP or fB-cfP fIcommandfP"
- If you use the +fIcommandfP parameter,
- then after the first file is loaded
- fIcommandfP is executed as an EX command.
- A typical example would be "elvis +237 foo",
- which would cause fBelvisfP to start editing foo and
- then move directly to line 237.
- The "-c fIcommandfP" variant was added for UNIX SysV compatibility.
- .SH FILES
- .IP /tmp/elv*
- During editing,
- fBelvisfP stores text in a temporary file.
- For UNIX, this file will usually be stored in the /tmp directory,
- and the first three characters will be "elv".
- For other systems, the temporary files may be stored someplace else;
- see the version-specific section of the documentation.
- .IP tags
- This is the database used by the fB:tagsfP command and the fB-tfP option.
- It is usually created by the fBctagsfP(1) program.
- .IP ".exrc or elvis.rc"
- On UNIX-like systems, a file called ".exrc" in your home directory
- is executed as a series of fBexfR commands.
- A file by the same name may be executed in the current directory, too.
- On non-UNIX systems, ".exrc" is usually an invalid file name;
- there, the initialization file is called "elvis.rc" instead.
- .SH "SEE ALSO"
- .BR ctags (1),
- .BR ref (1),
- .BR virec (1),
- .BR elvis (9).
- .PP
- fIElvis - A Clone of Vi/ExfP, the complete fBelvisfP documentation.
- .SH BUGS
- There is no LISP support.
- Certain other features are missing, too.
- .PP
- Auto-indent mode is not quite compatible with the real vi.
- Among other things, 0^D and ^^D don't do what you might expect.
- .PP
- Long lines are displayed differently.
- The real vi wraps long lines onto multiple rows of the screen,
- but fBelvisfP scrolls sideways.
- .SH AUTHOR
- .nf
- Steve Kirkendall
- kirkenda@cs.pdx.edu
- .fi
- .PP
- Many other people have worked to port fBelvisfP to various operating systems.
- To see who deserves credit, run the fB:versionfP command from within fBelvisfP,
- or look in the system-specific section of the complete documentation.