⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jove.nr

📁 早期freebsd实现
💻 NR
字号:
.hy 0.TH JOVE 1 "12 February 1986".ad.SH NAMEjove - an interactive display-oriented text editor.SH SYNOPSIS.nfjove [-d directory] [-w] [-t tag] [+[n] file] [-p file] [files]jove -r.fi.SH DESCRIPTIONJOVE is Jonathan's Own Version of Emacs.  It is based on the original EMACSeditor written at MIT by Richard Stallman.  Although JOVE is meant to becompatible with EMACS, there are some major differences between the twoeditors and you shouldn't rely on their behaving identically..LPJOVE works on any reasonable display terminal that is described in the.I termcapfile (see TERMCAP(5) for more details).  When you start up JOVE, it checksto see whether you have your.I TERMenvironment variable set.  On most systems that will automatically be set upfor you, but if it's not JOVE will ask you what kind of terminal you areusing.  To avoid having to type this every time you run JOVE you can set your.I TERMenvironment variable yourself.  How you do this depends on which shell youare running.  If you are running the C Shell, as most of you are, you type.sp 1     % setenv TERM.I type.sp 1and with the Bourne Shell, you type.sp 1     $ TERM=.I type; export TERM.sp 1where.I typeis the name of the kind of terminal you are using (e.g., vt100).  Ifneither of these works get somebody to help you..SH INVOKING JOVEIf you run JOVE with no arguments you will be placed in an empty buffer,called.I Main.Otherwise, any arguments you supply are considered file names and each is"given" its own buffer.  Only the first file is actually read in--readingother files is deferred until you actually try to use the buffers they areattached to.  This is for efficiency's sake: most of the time, when you runJOVE on a big list of files, you end up editing only a few of them..LPThe names of all of the files specified on the command line are saved in abuffer, called.I *minibuf*.The mini-buffer is a special JOVE buffer that is used when JOVE is promptingfor some input to many commands (for example, when JOVE is prompting for afile name).  When you are being prompted for a file name, you can type C-N(that's Control-N) and C-P to cycle through the list of files that werespecified on the command line.  The file name will be inserted where you aretyping and then you can edit it as if you typed it in yourself..LPJOVE recognizes the following switches:.TP.I -dThe following argument is taken to be the name of the current directory.This is for systems that don't have a version of C shell that automaticallymaintains the.I CWDenvironment variable.  If.I -dis not specified on a system without a modified C shell, JOVE will have tofigure out the current directory itself, and that can be VERY slow.  Youcan simulate the modified C shell by putting the following lines in yourC shell initialization file (.cshrc):.nf.sp 1	alias cd        'cd \e!*; setenv CWD $cwd'	alias popd      'popd \e!*; setenv CWD $cwd'	alias pushd     'pushd \e!*; setenv CWD $cwd'.fi.TP.I +nReads the file, designated by the following argument, and positions point atthe.I n'thline instead of the (default) 1'st line.  This can be specified more thanonce but it doesn't make sense to use it twice on the same file; in thatcase the second one wins. If no numeric argument is given after the +,the point is positioned at the end of the file..TP.I -pParses the error messages in the file designated by the following argument.The error messages are assumed to be in a format similar to the C compiler,LINT, or GREP output..TP.I -tRuns the.I find-tag command on the string of characters immediately following the -t if there is one (as in -tTagname), or onthe following argument (as in -t Tagname) otherwise (see ctags(1))..TP.I -wDivides the window in two.  When this happens, either the same file isdisplayed in both windows, or the second file in the list is read in anddisplayed in its window..SH "RECOVERING BUFFERS AFTER A CRASH"The.I -roption of jove runs the JOVE recover program.  Use this when the systemcrashes, or JOVE crashes, or you accidently get logged out while in JOVE.If there are any buffers to be recovered, this will find them..LPRecover looks for JOVE buffers that are left around and areowned by you.  (You cannot recover other peoples' buffers, obviously.)If there were no buffers that were modified at the time of thecrash or there were but recover can't get its hands on them, you will beinformed with the message, "There is nothing to recover."  Otherwise,recover prints the date and time of the version of the buffers it has,and then waits for you type a command..LPTo get a list of the buffers recover knows about, use the.I listcommand.  This will list all the buffers and the files and the number oflines associated with them.  Next to each buffer is a number.  When you wantto recover a buffer, use the.I getcommand.  The syntax is.I get buffer filenamewhere.I bufferis either the buffer's name or the number at the beginning of the line.  Ifyou don't type the buffer name or the filename, recover will prompt youfor them..LPIf there are a lot of buffers and you want to recover all of them, use the.I recovercommand.  This will recover each buffer to the name of the buffer with ".#"prepended to the name (so that the original isn't over-written).  It asksfor each file and if you want to restore that buffer to that name you type"yes".  If you want to recover the file but to a different name, just typethe new name in.  If you type "no" recover will skip that file and go onto the next one..LPIf you want to look at a buffer before deciding to recover it, use the.I printcommand.  The syntax for this is.I print bufferwhere.I bufferagain is either its name or the number.  You can type ^C if you want toabort printing the file to the terminal, and recover will respond withan appropriate message..LPWhen you're done and have all the buffers you want, type the.I quitcommand to leave.  You will then be asked whether it's okay to delete thetmp files.  Most of the time that's okay and you should type "yes".  Whenyou say that, JOVE removes all traces of those buffers and you won't be ableto look at them again.  (If you recovered some buffers they will still bearound, so don't worry.)  So, if you're not sure whether you've gotten allthe buffers, you should answer "no" so that you'll be able to runrecover again at a later time (presumably after you've figured outwhich ones you want to save)..LPIf you type ^C at any time other than when you're printing a file to theterminal, recover will exit without a word.  If you do this but wish youhadn't, just type "jove -r" to the shell again, and you will be put backwith no loss..SH GETTING HELPOnce in JOVE, there are several commands available to get help.  To executeany JOVE command, you type "<ESC> X command-name" followed by <Return>.  Toget a list of all the JOVE commands you type "<ESC> X" followed by "?".  The.I describe-bindingscommand can be used to get a list containing each key, and its associatedcommand (that is, the command that gets executed when you type that key).If you want to save the list of bindings, you can set the jove variable.I send-typeout-to-bufferto ON (using the .I setcommand), and then execute the.I describe-bindingscommand.  This will create a buffer and put in it the bindings list itnormally would have printed on the screen.  Then you can save that buffer toa file and print it to use as a quick reference card.  (See VARIABLES below.).LPOnce you know the name of a command, you can find out what it does with the.I describe-commandcommand, which you can invoke quickly by typing "ESC ?".  The.I aproposcommand will give you a list of all the command with a specific string intheir names.  For example, if you want to know the names of all thecommands that are concerned with windows, you can run "apropos" with thekeyword.I window..LPIf you're not familar with the EMACS command set, it would be worth yourwhile to use run TEACHJOVE.  Do do that, just type "teachjove" to your shelland you will be placed in JOVE in a file which contains directions.  I highlyrecommend this for beginners; you may save yourself a lot of time andheadaches..SH KEY BINDINGS and VARIABLESYou can alter the key bindings in JOVE to fit your personal tastes.  Thatis, you can change what a key does every time you strike it.  For example,by default the C-N key is bound to the command.I next-lineand so when you type it you move down a line.  If you want to change abinding or add a new one, you use the.I bind-to-keycommand.  The syntax is "bind-to-key <command> key"..LPYou can also change the way JOVE behaves in little ways by changing thevalue of some variables with the.I setcommand.  The syntax is "set <variable> value", where value is a number or astring, or "on" or "off", depending on the context.  For example, if youwant JOVE to make backup files, you set the "make-backup-files" variable to"on".  To see the value of a variable, use the "print <variable>" command..SH INITIALIZATIONJOVE automatically reads commands from an initialization file in your HOMEdirectory, called ".joverc".  In this file you can place commands that youwould normally type in JOVE.  If you like to rearrange the key bindings andset some variables every time you get into JOVE, you should put them in yourinitialization file.  Here are a few lines from mine:.nf	set match-regular-expressions on	auto-execute-command auto-fill /tmp/Re\e|.*drft	bind-to-key i-search-forward ^\e	bind-to-key i-search-reverse ^R	bind-to-key find-tag-at-point ^[^T	bind-to-key scroll-down ^C	bind-to-key grow-window ^Xg	bind-to-key shrink-window ^Xs.fi(Note that the Control Characters can be either two character sequences(e.g. ^ and C together as ^C) or the actual control character.  If you wantto use an ^ by itself you must BackSlash it (e.g., bind-to-key grow-window^X\e^ binds grow-window to "^X^")..SH SOME MINOR DETAILSYou should type C-\e instead of C-S in many instances.  For example, the wayto search for a string is documented as being "C-S" but in reality youshould type "C-\e".  This is because C-S is the XOFF character (what getssent when you type the NO SCROLL key), and clearly that won't work.  The XONcharacter is "C-Q" (what gets sent when you type NO SCROLL again) which isdocumented as the way to do a quoted-insert.  The alternate key for this is"C-^" (typed as "C-`" on vt100's and its look-alikes).  If you want toenable C-S and C-Q and you know what you are doing, you can put the line:.nf	set allow-^S-and-^Q on.fiin your initialization file..LPIf your terminal has a metakey, JOVE will use it if you turn on the"meta-key" variable.  JOVE will automatically turn on "meta-key" if theMETAKEY environment variable exists.  This is useful for if you havedifferent terminals (e.g., one at home and one at work) and one has ametakey and the other doesn't..SH FILESSHAREDIR/jove.rc - system wide initialization file.sp 0~/.joverc - personal initialization file.sp 0TMPDIR - where temporary files are stored.sp 0SHAREDIR/teach-jove - the interactive tutorial.sp 0LIBDIR/portsrv - for running shells in windows (pdp11 only).SH SEE ALSO.nfed(1) - for a description of regular expressions.sp 0teachjove(1) - for an interactive JOVE tutorial..fi.SH DIAGNOSTICSJOVE diagnostics are meant to be self-explanatory, but you are advisedto seek help whenever you are confused.  You can easily lose a lot ofwork if you don't know EXACTLY what you are doing..SH BUGSLines can't be more than 1024 characters long..sp 1Searches can't cross line boundaries..SH AUTHORJonathan Payne

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -