📄 aee.1
字号:
inserting..IP "\fBnoover\fRstrike*\(dd" 22Causes characters to be inserted into line at current cursor position withoutreplacing existing characters (default)..IP \fBprint\fR 22Sends the contents of the current buffer to the printer. The command that is used can be specified in the \fIinit.ae\fR file, see section \fBInitializing aee From A File\fR..IP "\fBprintcommand\fR \(dg"Allows the setting of the print command (default: "lp")..IP \fBpwd\fR 22Display the current directory..IP "\fBquit\fR[!]\(dd" 22Quit the current edit session without writing a file. The optional exclamationmark has the same meaning as for the \fBexit\fR command..IP "\fBread\fR \fIfile\fR" 22Read a file into the current buffer after the cursor..IP \fBreseq\fRuence 22Renumber the lines..IP \fBsave\fR 22Save the contents of the main buffer to the file being edited..IP "\fBsho\fRw [gold] \fIkey\fR" 22Displays the function(s) assigned to the specified key..IP "\fBstatus\fR*\(dd" 22A status line is displayed on the bottom line of the screen..IP \fBnostat\fRus*\(dd" 22Turns off the status line (default)..IP "\fBstops\fR \fInumber\fR *" 22Tabs will be spaced every \fInumber\fR spaces, unless other tabs are set using the \fBtabs\fR command..IP "\fBtabs\fR [\fIstops ...\fR] *" 22Sets tabs to \fIstops\fR. After the last user defined tab stop, tabs are the normal sequence of every eight columns, or as set using the \fBstops\fR command. The first column is 0..IP "\fBunta\fRbs \fIstops ...\fR *" 22Removes the specified tab stops..IP \fBte\fRxt* 22Turns text mode (default) . Files read in while in text mode are checked whether they are UNIX files or Windows files. If carriage return characters are found immediately prededing a new-line character, the editor treats the file as a DOS file and discards the carriage-returns on read, and carriage-returns are inserted on file write. The menu may be used to toggle between DOS file mode and UNIX file mode. See also \fBbinary\fR..IP "\fBwind\fRows*\(dd" 22This command specifies whether or not buffers are displayed on the screen simultaneously. If \fBwindows\fR (default) is specified, then buffers exist on the screen together..IP "\fBnowind\fRows*\(dd" 22This command specifies that there is only one buffer on the screen at a time..IP "\fBwrite\fR \fIfile\fR" 22Write the current buffer out to the specified file..IP 0123456789 22Enter a number to go to the line corresponding to that number..IP "\fB+\fR or \fB-\fR \fInumber\fR \(dd" 22Moves forward or back the number of lines specified..IP "[<\fIinbuff\fR] [>\fIoutbuff\fR ] \fB!\fRcommand" 22Execute the command following the exclamation mark in the UNIX shell. The shell used is the one specified in the shell variable \fBSHELL\fR in the user's environment, or \fB/bin/sh\fR if \fBSHELL\fR is not defined. You may send data from the buffer \fIoutbuff\fR (or the current buffer if \fIoutbuff\fR is not specified) out to the shell by using the right angle bracket (>). You may read into \fIinbuff\fR (or the current buffer if \fIinbuff\fR is not specified) by using the left angle bracket (<) as shown. The data read in from thecommand will be placed after the current cursor location in the buffer.ad b.fi.sp\s-4* may be used in init file, see section \fBInitializing aee From A File\fR.br\(dg only used in initialization file.br\(dd may also be assigned to a key using the \fBdefine\fR command\s+1.sp.RE.\".\".\".SS Search and Replace.PP\fIaee\fR's search facility provides several abilities. The user may choose for the search to be case sensitive, or ignore the case (upper or lower) of a character (\fBnocase\fR is the default). The user may also choose \fBliteral\fR, or \fBnoliteral\fR (the default) modes for the search facility. The \fBliteral\fR mode interprets the search string literally, \fBnoliteral\fR means that some characters (called \fRmetacharacters\fR) have special meaning, as described below:.sp.KS.TScenter;l l.symbol meaning^ beginning of line$ end of line\\\\x interpret 'x' literally[abc] T{match a single character in the text to one in bracketsT}[a-z] T{match a single character in the text to one in range a-zT}[^abc] T{match a single character in the text that is not within the brackets after '^' ('^' means 'not')T}* T{match any sequence of characters, useful in middle of string with known beginning and end, but variable middleT}\. match any single character.TE.KE.sp.PPThe carat (^) within the square brackets ([]) means that the search will matchany characters \fInot\fR within the brackets. The carat \fImust\fR be the first character after the opening bracket..PPThe asterisk (*) may be useful when searching for a string to which you knowthe beginning and end, but not what characters (if any) or how many may bein the middle. The first character after the asterisk should not be ametacharacter (a character with special meaning)..PPThe replace facility uses the same modes as the search facility. The prompt for the replace operation shows the syntax for the input:.sp 2.RS 4/string1/string2/.RE.sp 2where the slash ('/') may be replaced by any character that is not in the search or replacement string, and "string1" is to be replaced by "string2". When in \fBnoliteral\fR mode, the search string may be placed in the replacement string by using the ampersand ('&'), like so:.sp 2.RS 4/old/abc&123/.RE.sp 2Where "old" will be inserted between "abc" and "123"..\".\".\".SS Recovery.PPIf for some reason an edit session is interrupted, it is possible to recover the work done in the session. This is accomplished via the information stored in the journal file, which is a record of the changes made to the text in the buffer while in the editor. To recover a session in which a file named \fIfoo\fR was being edited, use the command:.sp.nf.na.RSaee -r \fIfoo\fR.RE.ad b.fi.PPThis is only possible if the \fB-j\fR option was not used, since the \fB-j\fR option turns journaling off..PPIt is also possible to start \fIaee\fR with no arguments, and then to browse the journal files. This is accomplished through the menus. To perform this task, bring up the menu by pressing the \fBEsc\fR key, select \fIfile operations\fR, then select \fIrecover from journal\fR. You should then be presented with a list of files to recover..\".\".\".SS Key Definitions.PP The function keys and control sequences (alphabetic keys pressed with the control key) may be defined by the user to perform any of the functionsdescribed below. .PPThe user may assign more than one function to each key, as long as each one is separated by one or more spaces. The following describes the functions of the keys and how the user may redefine the keyboard during the edit session on the command line. The same syntax is used in the \fIinitialization file\fR..PPNote that the '^' is typed by the user in the following examples, and is \fBnot\fR generated by pressing the control key and letter, and that f2 is entered by typing an 'f' and then a '2'..spExamples:.br.na.nf.sp.RS \fBdefine ^b dl\fR.RE.ad b.fi.spwill define the key control b to have the function delete line..sp.na.nf.RS \fBdefine gold ^b udl\fR.RE.sp.ad b.fiassigns the function undelete line to GOLD control b..sp.nf.na.RS \fBdefine f2 /this is an inserted string/ cr\fR.RE.fi.ad b.spwill cause the string between the delimiters (/) to be inserted followed by a carriage-return whenever the function key f2 is pressed..PPIf you wish to have a key that deletes to the end of line without appendingthe next line to the end, you may make the following key definition:.sp.nf.na.RS \fBdefine f3 dl cr left\fR.RE.sp.fi.ad bThis set of functions will delete to the end of line and append the next to theend of the line, then insert a line at the cursor, and then move the cursor back to the end of the previous line, the position where you started. This mayof course be assigned to any valid key..sp.\".\".\".SS Symbols.PPThe following symbols, as well as the commands noted by (\(dd) in the list of commands may be assigned to keys using the \fBdefine\fR command..sp.RS 4.TSl l.Symbol Description_menu pop up menudl delete linedc delete characterdw delete wordund T{undelete last thing deleted, keeps last 128 things deletedT}udl undelete lineudc undelete characterudw undelete wordeol end of linebol begin of linebot begin of texteot end of textnp next pagepp previous pagenb next bufferpb previous buffergold goldil insert linepsrch search promptsrch searchprp replace promptrp replace fwd forward (search forward of cursor)rev reverse (search before cursor)al advance lineaw advance wordpw previous wordformat format paragraphmark mark textprefix T{mark text and place \fIbefore\fR existing text in paste bufferT}append T{mark text and place \fIafter\fR existing text in paste bufferT}cut cut marked textcopy copy marked textpst paste previously cut or copied textunmark T{unmark text, doesn't affect previous paste buffer contentsT}ac ascii charactermc match (), {}, [], or <>cmd commandup up arrowdown down arrowleft left arrowright right arrowrd redraw screenbck backspacecr carriage return/,. T{the first non-alpha character will act as a separator to allow for single line text insertion, the second occurrence of the same character will end the insertionT}.TE.RE.\".\".\".SS Initializing aee From A File.PP \fIaee\fR checks for a file named \fIinit.ae\fR in \fI/usr/local/lib\fR, .I .init.ae in the user's home directory, then for \fI.init.ae\fR in the current directory. (This file may be created manually or by using the menu entry '\fIsave editor config\fR' in the 'settings' menu.) If the file exists, it is read and initializes \fIaee\fR to the parameters as defined in the file. By having initialization files in multiple places, the user may specify settings for global use, and then supplement these with customization for the local directory. The parameters allowed in the \fIinit.ae\fR file are key definitions, turning off windowing, case sensitivity, literal searching, eight bit characters, as well as the ability to echo strings to the terminal (see the \fBCommands\fR section for the commands allowed in the initialization file). An example follows:.nf.na.sp.RS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -