📄 jove.2
字号:
.\" 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.2 8.1 (Berkeley) 6/8/93.\".NH 1Commands for English Text.XS \n(PN\*(SN Commands for English Text.XE.LP\s-2JOVE\s0 has many commands that work on the basic units of English text:words, sentences and paragraphs..NH 2Word Commands.XS \n(PN 5n\*(SN Word Commands.XE.LP\s-2JOVE\s0 has commands for moving over or operating on words.By convention,they are all ESC commands..IP "ESC F" 20nMove Forward over a word..IP "ESC B" 20nMove Backward over a word..IP "ESC D" 20nKill forward to the end of a word..IP "ESC Rubout" 20nKill backward to the beginning of a word..LPNotice how these commands form a group that parallels the character-based commands,C-F,C-B,C-D,and Rubout..LPThe commands ESC F and ESC B move forward and backward over words.They are thus analogous to Control-F and Control-B,which move over single characters.Like their Control- analogues,ESC F and ESC B move several words if given an argument.ESC F with a negative argument moves backward like ESC B,and ESC B with a negative argument moves forward.Forward motion stops right after the last letter of the word,while backward motion stops right before the first letter..LPIt is easy to kill a word at a time.ESC D kills the word after point.To be precise,it kills everything from point to the place ESC F would move to.Thus,if point is in the middle of a word,only the part after point is killed.If some punctuation comes after point,and before the next word,it is killed along with the word.If you wish to kill only the next word but not the punctuation,simply do ESC F to get to the end,and kill the word backwards with ESC Rubout.ESC D takes arguments just like ESC F..LPESC Rubout kills the word before point.It kills everything from point back to where ESC B would move to.If point is after the space in "FOO, BAR",then "FOO, " is killed.If you wish to kill just "FOO",then do a ESC B and a ESC D instead of a ESC Rubout..NH 2Sentence Commands.XS \n(PN 5n\*(SN Sentence Commands.XE.LPThe \s-2JOVE\s0 commands for manipulating sentences and paragraphs aremostly ESC commands,so as to resemble the word-handling commands..IP "ESC A" 20nMove back to the beginning of the sentence..IP "ESC E" 20nMove forward to the end of the sentence..IP "ESC K" 20nKill forward to the end of the sentence..IP "C-X Rubout" 20nKill back to the beginning of the sentence..LPThe commands ESC A and ESC E move to the beginning and end of thecurrent sentence,respectively.They were chosen to resembleControl-A and Control-E,which move to the beginning and end of a line.Unlike them,ESC A and ESC E if repeated or given numeric argumentsmove over successive sentences.\s-2JOVE\s0 considers a sentence to end wherever there is a ".","?", or "!" followed by the end of a lineor by one or more spaces.Neither ESC A nor ESC E moves past theend of the line or spaces which delimit the sentence..LPJust as C-A and C-E have a kill command,C-K,to go with them,so ESC A and ESC E have a corresponding kill command ESC K which kills frompoint to the end of the sentence.With minus one as an argument itkills back to the beginning of the sentence.Positive arguments serve as a repeat count..LPThere is a special command,C-X Rubout for killing back to the beginning of a sentence,because this is useful when you change yourmind in the middle of composing text..NH 2Paragraph Commands.XS \n(PN 5n\*(SN Paragraph Commands.XE.LPThe \s-2JOVE\s0 commands for handling paragraphs are.IP "ESC [" 20nMove back to previous paragraph beginning..IP "ESC ]" 20nMove forward to next paragraph end..LPESC [ moves to the beginning of the current or previous paragraph, whileESC ] moves to the end of the current or next paragraph. Paragraphs aredelimited by lines of differing indent, or lines with text formattercommands, or blank lines. \s-2JOVE\s0 knows how to deal with most indentedparagraphs correctly, although it can get confused by one- or two-lineparagraphs delimited only by indentation..NH 2Text Indentation Commands.XS \n(PN 5n\*(SN Text Indentation Commands.XE.LP.IP "Tab" 20nIndent "appropriately" in a mode-dependent fashion..IP "LineFeed" 20nIs the same as Return,except it copies the indent of the line you just left..IP "ESC M" 20nMoves to the line's first non-blank character..LP.LPThe way to request indentation is with the Tab command.Its precise effect depends on the major mode.In \fIText\fP mode,it indents to the next tab stop.In \fIC\fP mode,it indents to the "right" position for C programs..LPTo move over the indentation on a line,do ESC M (\fIfirst-non-blank\fP).This command,given anywhere on a line,positions the cursor at the first non-blank, non-tab character on the line..NH 2Text Filling.XS \n(PN 5n\*(SN Text Filling.XE.LP\fIAuto Fill\fP mode causes text to be \fIfilled\fP(broken up into lines that fit in a specified width)automatically as you type it in.If you alter existing text so that it is no longer properly filled,\s-2JOVE\s0 can fill it again if you ask..LPEntering \fIAuto Fill\fP mode is done with ESC X \fIauto-fill-mode\fP.From then on,lines are broken automatically at spaces when they get longer than thedesired width.To leave \fIAuto Fill\fP mode,once again execute ESC X \fIauto-fill-mode\fP.When \fIAuto Fill\fP mode is in effect,the word \fBFill\fP appears in the mode line..LPIf you edit the middle of a paragraph,it may no longer correctly be filled.To refill a paragraph,use the command ESC J (\fIfill-paragraph\fP).It causes the paragraph that point is inside to be filled.All the line breaks are removed and new ones inserted where necessary..LPThe maximum line width for filling is in the variable \fIright-margin\fP.Both ESC J and auto-fill make sure that no line exceeds this width.The value of \fIright-margin\fP is initially 72..LPNormally ESC J figures out the indent of the paragraph and uses that sameindent when filling. If you want to change the indent of a paragraph youset \fIleft-margin\fP to the new position and type C-U\ ESC\ J.\fIfill-paragraph\fP, when supplied a numeric argument, uses the value of\fIleft-margin\fP..LPIf you know where you want to set the right margin but you don't know theactual value, move to where you want to set the value and use the\fIright-margin-here\fP command. \fIleft-margin-here\fP does the samefor the \fIleft-margin\fP variable..NH 2Case Conversion Commands.XS \n(PN 5n\*(SN Case Conversion Commands.XE.LP.IP "ESC L" 15nConvert following word to lower case..IP "ESC U" 15nConvert following word to upper case..IP "ESC C" 15nCapitalize the following word..LP.LPThe word conversion commands are most useful.ESC L converts the word after point to lower case,moving past it.Thus,successive ESC L's convert successive words.ESC U converts to all capitals instead,while ESC C puts the first letter of the word into upper case and therest into lower case.All these commands convert several words at once if given an argument.They are especially convenient forconverting a large amount of text from all upper case to mixed case,because you can move through the test using ESC L,ESC U or ESC C on each word as appropriate..LPWhen given a negative argument,the word case conversion commands apply tothe appropriate number of words before point,but do not move point.This is convenient when you have just typed a word in the wrong case.You can give the case conversion command and continue typing..LPIf a word case conversion command is given in the middle of a word,it applies only to the part of the word which follows the cursor,treating it as a whole word..LPThe other case conversion functions are \fIcase-region-upper\fP and\fIcase-region-lower\fP,which convert everything between point and mark to the specified case.Point and mark remain unchanged..NH 2Commands for Fixing Typos.XS \n(PN 5n\*(SN Commands for Fixing Typos.XE.LPIn this section we describe the commands that are especially usefulfor the times when you catch a mistake on your text after you have made it,or change your mind while composing text on line..IP "Rubout" 25nDelete last character..IP "ESC Rubout" 25nKill last word..IP "C-X Rubout" 25nKill to beginning of sentence..IP "C-T" 25nTranspose two characters..IP "C-X C-T" 25nTranspose two lines..IP "ESC Minus ESC L" 25nConvert last word to lower case..IP "ESC Minus ESC U" 25nConvert last word to upper case..IP "ESC Minus ESC C" 25nConvert last word to lower case with capital initial..LP.NH 2Killing Your Mistakes.XS \n(PN 5n\*(SN Killing Your Mistakes.XE.LPThe Rubout command is the most important correction command.When used among printing (self-inserting) characters,it can be thought of as canceling the last character typed..LPWhen your mistake is longer than a couple of characters,it might be more convenient to use ESC Rubout or C-X Rubout.ESC Rubout kills back to the start of the last word,and C-X Rubout kills back to the start of the last sentence.C-X Rubout is particularly useful whenyou are thinking of what to write as you type it,in case you change your mind about phrasing.ESC Rubout and C-X Rubout save the killed text for C-Y and ESC Y to retrieve..LPESC Rubout is often useful even when you have typed only a fewcharacters wrong,if you know you are confused in your typing and aren't sure what you typed.At such a time,you cannot correct withRubout except by looking at the screen to see what you did.It requires less thought to kill the whole word and start over again,especially if the system is heavily loaded..LPIf you were typing a command or command parameters, C-G will abort thecommand with no further processing..NH 2Transposition.XS \n(PN 5n\*(SN Transposition.XE.LPThe common error of transposing two characters can be fixedwith the C-T (\fItranspose-characters\fP) command.Normally,C-T transposes the two characters on either side of the cursorand moves the cursor forward one character. Repeating the commandseveral times "drags" a character to the right.(Remember that \fIpoint\fP is considered to be between two characters,even though the visible cursor in your terminal is on only one of them.)When given at the end of a line,rather than switching the last character of the line with the line separator,which would be useless,C-T transposes the last two characters on the line.So,if you catch your transposition error right away,you can fix it with just a C-T.If you don't catch it so fast,you must move the cursor back to between the two characters..LPTo transpose two lines,use the C-X C-T (\fItranspose-lines\fP) command. The line containing thecursor is exchanged with the line above it; the cursor is left at thebeginning of the line following its original position..NH 2Checking and Correcting Spelling.XS \n(PN 5n\*(SN Checking and Correcting Spelling.XE.LPWhen you write a paper,you should correct its spelling at some point close to finishing it.To correct the entire buffer,do ESC X \fIspell-buffer\fP.This invokes the.UX.I spellprogram,which prints a list of all the misspelled words.\s-2JOVE\s0 catches the list and places it in a\s-2JOVE\s0 buffer called \fBSpell\fP.You are given an opportunity to delete from that buffer any words thataren't really errors;then \s-2JOVE\s0 looks up each misspelled word andremembers where it is in the buffer being corrected.Then you can go forward to each misspelled word with C-X C-N (\fInext-error\fP)and backward with C-X C-P (\fIprevious-error\fP).See the section entitled \fIError Message Parsing\fP..NH 1File Handling.XS \n(PN\*(SN File Handling.XE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -