📄 jove.1
字号:
.\" Copyright (c) 1986, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)jove.1 8.1 (Berkeley) 6/8/93.\".\" ditroff -ms.de IQ\\fI\\$1\\fP...de dc.NH 2\\$1.if '\\$2'(variable)' (variable).if !'\\$2'(variable)' (\\$2).LP...nr LL 6.5i.nr LT 6.5i.EH 'USD:14-%''JOVE Manual for UNIX Users'.OH 'JOVE Manual for UNIX Users''USD:14-%'.LP.TLJOVE Manual for UNIX Users.AUJonathan Payne(revised for 4.3BSD by Doug Kingston and Mark Seiden).AI.AB no.AE.NH 1Introduction.XS \n(PN\*(SN Introduction.XE.LP\s-2JOVE\s0*.FS*\s-2JOVE\s0 stands for Jonathan's Own Version of Emacs..FEis an advanced, self-documenting, customizable real-time display editor.It (and this tutorial introduction) are based on the original EMACS editor and user manual written at M.I.T. by Richard Stallman+..FS+Although \s-2JOVE\s0 is meant to be compatible with EMACS,and indeed many of the basic commands are very similar,there are some major differences between the two editors,and you should not rely on their behaving identically..FE.LP\s-2JOVE\s0 is considered a.I display editor because normally the text beingedited is visible on the screen and is updated automatically as youtype your commands..LPIt's considered a.I real-time editor because the display is updated veryfrequently, usually after each character or pair of characters you type.This minimizes the amount of information you must keep in yourhead as you edit..LP\s-2JOVE\s0 is .I advanced because it provides facilities that go beyondsimple insertion and deletion:filling of text;automatic indentations of programs;view more than one file at once;and dealing in terms of characters, words, lines, sentences and paragraphs.It is much easierto type one command meaning "go to the end of the paragraph" than tofind the desired spot with repetition of simpler commands..LP.I Self-documenting means that at almost any time you can easilyfind out what a command does,or to find all the commands that pertain to a topic..LP.I Customizablemeans that you can change the definition of \s-2JOVE\s0 commandsin little ways.For example, you can rearrange the command set;if you prefer to use arrow keys for the four basic cursor motion commands(up, down, left and right), you can.Another sort of customization iswriting new commands by combining built in commands..NH 1The Organization of the Screen.XS \n(PN\*(SN The Organization of the Screen.XE.LP\s-2JOVE\s0 divides the screen up into several sections.The biggest of these sections is used to display the text you are editing.The terminal's cursor shows the position of \fIpoint\fP,the location at which editing takes place.While the cursor appears to point \fIat\fP a character,point should be thought of as between characters;it points \fIbefore\fP the character that the cursor appears on top of.Terminals have only one cursor,and when output is in progress it must appear where the typing is being done.This doesn't mean that point is moving;it is only that \s-2JOVE\s0 has no way ofshowing you the location of point except when the terminal is idle..LPThe lines of the screen are usually available for displaying text butsometimes are pre-empted by typeout from certain commands (such as alisting of all the editor commands).Most of the time,output from commands like these is only desired for a short period of time,usually just long enough to glance at it.When you have finished looking at the output,you can type Space to make your text reappear.(Usually a Space that you type inserts itself, but when there is typeout onthe screen, it does nothing but get rid of that).Any other command executes normally,.I afterredrawing your text..NH 2The Message Line.XS \n(PN 5n\*(SN The Message Line.XE.LPThe bottom line on the screen, called the\fImessage line\fP,is reserved for printing messages and for accepting input from the user,such as filenames or search strings.When\s-2JOVE\s0 prompts for input,the cursor will temporarily appear on the bottom line, waiting for youto type a string.When you have finished typing your input, you cantype a Return to send it to \s-2JOVE\s0.If you change your mind about running the command that is waiting for input,you can type Control-G to abort,and you can continue with your editing..LPWhen \s-2JOVE\s0 is prompting for a filename,all the usual editing facilities can be used to fix typos and such;in addition, \s-2JOVE\s0 has the following extra functions:.IP "^N"Insert the next filename from the argument list..IP "^P"Insert the previous filename from the argument list..IP "^R"Insert the full pathname of the file in the current buffer..LPSometimes you will see \fB--more--\fP on the message line.This happens when typeout from a command is too long to fit in the screen.It means that if you type a Space the next screenful of typeout will beprinted.If you are not interested,typing anything but a Space will cause the rest of the output to be discarded.Typing C-G will discard the output and print \fIAborted\fP where the \fB--more--\fP was.Typing any other command will discard the rest of the output andalso execute the command..LPThe message line and the list of filenames from the shell command thatinvoked \s-2JOVE\s0 are kept in a special buffer called\fIMinibuf\fP that can be edited like any other buffer..NH 2The Mode Line.XS \n(PN 5n\*(SN The Mode Line.XE.LPAt the bottom of the screen, but above the message line, is the\fImode line\fP. The mode line format looks like this:.DS I\fBJOVE (major minor) Buffer: bufr "file" *\fP.DE\fImajor\fP is the name of the current \fImajor mode\fP.At any time, \s-2JOVE\s0 can be in only one major mode at a time.Currently there are only four major modes: \fIFundamental\fP,\fIText\fP, \fILisp\fP and \fIC\fP..LP\fIminor\fP is a list of the minor modes that are turned on.\fBAbbrev\fP means that \fIWord Abbrev\fP mode is on;\fBAI\fP means that \fIAuto Indent\fP mode is on;\fBFill\fP means that \fIAuto Fill\fP mode is on;\fBOvrWt\fP means that \fIOver Write\fP mode is on.\fBDef\fP means that you are in the process of defining a keyboard macro.This is not really a mode,but it's useful to be reminded about it.The meanings of these modes are described later in this document..LP\fIbufr\fP is the name of the currently selected \fIbuffer\fP.Each buffer has its own name and holds a file being edited;this is how \s-2JOVE\s0 can hold several files at once.But at any given time you are editing only one of them,the \fIselected\fP buffer.When we speak of what some command does to "the buffer",we are talking about the currently selected buffer.Multiple buffers makes it easy to switch around between several files,and then it is very useful thatthe mode line tells you which one you are editing at any time. (Youwill see later that it is possible to divide thescreen into multiple \fIwindows\fP, each showing a different buffer. If youdo this, there is a mode line beneath each window.).LP\fIfile\fP is the name of the file that you are editing.This is the default filename for commands that expect a filename as input..LPThe asterisk at the end of the mode line means that there are changes inthe buffer that have not been saved in the file.If the file has not been changed since it was read in or saved,there is no asterisk..NH 1Command Input Conventions.XS \n(PN\*(SN Command Input Conventions.XE.LP.NH 2Notational Conventions for ASCII Characters.XS \n(PN 5n\*(SN Notational Conventions for ASCII Characters.XE.LPIn this manual,"Control" characters(that is, characters that are typed with the Control keyand some other key at the same time)are represented by "C-" followed by another character.Thus,C-A is the character you get when you type A with the Control key(sometimes labeled CTRL) down.Most control characters when present in the \s-2JOVE\s0buffer are displayed with a caret; thus, ^A for C-A.Rubout (or DEL) is displayed as ^?, escape as ^[..NH 2Command and Filename Completion.XS \n(PN 5n\*(SN Command and Filename Completion.XE.LPWhen you are typing the name of a \s-2JOVE\s0 command, you need type onlyenough letters to make the name unambiguous. At any point in the course oftyping the name, you can type question mark (?) to see a list of all thecommands whose names begin with the characters you've already typed; you cantype Space to have \s-2JOVE\s0 supply as many characters as it can; or youcan type Return to complete the command if there is only one possibility.For example, if you have typed the letters "\fIau\fP" and you then type aquestion mark, you will see the list.DS I auto-execute-command auto-execute-macro auto-fill-mode auto-indent-mode.DEIf you type a Return at this point, \s-2JOVE\s0 will complain by ringingthe bell, because the letters you've typed do not unambiguously specify asingle command. But if you type Space, \s-2JOVE\s0 will supply thecharacters "\fIto-\fP" because all commands that begin "\fIau\fP" alsobegin "\fIauto-\fP". You could then type the letter "\fIf\fP" followedby either Space or Return, and \s-2JOVE\s0 would complete the entirecommand..LPWhenever \s-2JOVE\s0 is prompting you for a filename,say in the \fIfind-file\fP command,you also need only type enough of the name to make it unambiguous withrespect to files that already exist. In this case, question mark andSpace work just as they do in command completion, but Return alwaysaccepts the name just as you've typed it, because you might want tocreate a new file with a name similar to that of an existing file..NH 1Commands and Variables.XS \n(PN\*(SN Commands and Variables.XE.LP\s-2JOVE\s0 is composed of \fIcommands\fPwhich have long names such as\fInext-line\fP.Then \fIkeys\fP such as C-N are connected tocommands through the \fIcommand dispatch table\fP.When we say that C-N moves the cursor down a line,we are glossing over a distinction which is unimportant for ordinary use,but essential for simple customization:it is the command \fInext-line\fP which knows how to move a down line,and C-N moves down a line because it is connected to that command.The name for this connection is a \fIbinding\fP; we say that the keyC-N \fIis bound to\fP the command \fInext-line\fP..LPNot all commands are bound to keys. To invoke a command that isn't boundto a key, you can type the sequence ESC X, which is bound to the command\fIexecute-named-command\fP. You will then be able to type the name ofwhatever command you want to execute on the message line..LPSometimes the description of a command will say"to change this, set the variable \fImumble\-foo\fP".A variable is a name used to remember a value.\s-2JOVE\s0 contains variables which are there so that you can changethem if you want to customize.The variable's value is examined by some command,and changing that value makes the command behave differently.Until you are interesting in customizing \s-2JOVE\s0,you can ignore this information..NH 2Prefix Characters.XS \n(PN 5n\*(SN Prefix Characters.XE.LPBecause there are more command names than keys,\s-2JOVE\s0 provides\fIprefix characters\fP to increase the number of commands that canbe invoked quickly and easily.When you type a prefix character \s-2JOVE\s0 will waitfor another character before deciding what to do.If you wait more than a second or so,\s-2JOVE\s0 will print the prefix character on themessage line as a reminder and leave the cursor down there until you type your nextcharacter.There are two prefix characters built into \s-2JOVE\s0:Escape and Control-X.How the next character is interpreted depends on whichprefix character you typed.For example,if you type Escape followed by B you'll run \fIbackward-word\fP,but if you type Control-X followed by B you'll run \fIselect-buffer\fP.Elsewhere in this manual, the Escape key is indicated as "ESC", which isalso what \s-2JOVE\s0 displays on the message line for Escape..NH 2Help.XS \n(PN\*(SN Help.XE.LPTo get a list of keys and their associated commands,you type ESC X \fIdescribe-bindings\fP.If you want to describe a single key,ESC X \fIdescribe-key\fP will work. A description of anindividual command is available by using ESC X \fIdescribe-command\fP,and descriptions of variables by using ESC X \fIdescribe-variable\fP.If you can't remember the name of the thing you want to know about,ESC X \fIapropos\fP will tell you if a command or variable has a givenstring in its name. For example, ESC X \fIapropos describe\fP willlist the names of the four describe commands mentioned briefly in thissection..NH 1Basic Editing Commands.XS \n(PN\*(SN Basic Editing Commands.XE.LP.NH 2Inserting Text.XS \n(PN 5n\*(SN Inserting Text.XE.LPTo insert printing characters into the text you are editing,just type them.All printing characters you type are inserted into the text atthe cursor (that is, at \fIpoint\fP),and the cursor moves forward.Any characters after the cursor move forward too.If the text in the buffer is FOOBAR,with the cursor before the B,then if you type XX,you get FOOXXBAR,with the cursor still before the B..LPTo correct text you have just inserted,you can use Rubout.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -