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

📄 elle.9

📁 操作系统设计与实现源码
💻 9
📖 第 1 页 / 共 2 页
字号:
.CD "elle \(en ELLE Looks Like Emacs".SX "elle \fIfile\fR [\fIfile2\fR]".FL "\fR(none)".EY "elle file.c" "Start the editor".PP\fIELLE\fR (ELLE Looks Like Emacs) is an Emacs clone for .MX .  ELLE is not full Emacs but it has about 80 commands and is quite fast..SP 0.5.SS "Key bindings".SP 0.5.PP\fIMined\fR only has a small number of commands.  All of them are either ofthe form CTRL-x or are on the numeric keypad.  Emacs, in contrast, has somany commands, that not only are all the CTRL-x commands used up, but soare all the ESC x (escape followed by x; escape is not a shift character,like CTRL).  Even this is not enough, so CTRL-X is used as a prefix foradditional commands.  Thus CTRL-X CTRL-L is a command, and so is CTRL-X K.Note that what is conventionally written as CTRL-X K really means CTRL-X k.In some contexts it is traditional to write CTRL-X as ^X.Please note that they mean the same thing..PPAs a result, many Emacs commands need three or four key strokes to execute.  Some people think 3-4 key strokes is too many.For this reason, Emacs and ELLE allow users to assign their own key bindings.In ELLE this is done with \*(OQuser profiles.\*(CQ  A user profile is a file listingwhich function is invoked by which key stroke.  The user profile is thencompiled by a program called ellec into binary form.  When ELLE starts upit checks to see if a file .ellepro.b1 exists in $HOME.  If it does, thisfile is read in and overrides the default bindings.  .PPA user profile that simulates the \fImined\fR commands fairlywell is provided.  Its installation is described later.  If you have never used Emacs, it is suggested that you use the \fImined\fR profile.  If you normally use Emacs, thendo not install the \fImined\fR profile.  You can also make your own using\fIellec\fR.There is no Mock Lisp..PPELLE has a character-oriented view of the world, not a line orientedview, like \fIed\fR.  It does not have magic characters for searching.However, you can use line feed in search patterns.  For example, to find a line consisting of the three characters\*(OQfoo\*(CQ all by themselves on a line, using the minedbindings (see below), use the pattern: CTRL-\\ CTRL-J f o o CTRL-\\ CTRL-J.The CTRL-\ means to interpret the next character literally, in this case itis CTRL-J, which is line feed.  You can also search for patterns involving multiple lines.  For example, to find a line ending in an \*(OQx\*(CQ followed by aline beginning with a \*(OQy\*(CQ, use as pattern: x CTRL-\ CTRL-J y..SS "Mined Key Bindings".PPThese are the key bindings if the binary user profile, \fI.ellepro.b1\fR,is installed in $HOME.  The ESCAPE key followed by a number followed by acommand causes that command to be executed \*(OQnumber\*(CQ times.  This appliesboth to control characters and insertable characters.  CTRL-X refers to a\*(OQcontrol character.\*(CQ  ESC x refers to an escape character followed by x.In other words, ^X is a synonym for CTRL-X.^X Y refers to CTRL-X followed by y.  To abort the current command and goback to the main loop of the editor, type CTRL-G, rather than CTRL-\\..PPOnly a few commands are of the form CTRL-X Y.  All of these are alsobound to CTRL-X CTRL-Y, so you can hold down CTRL and then hit X Y, orrelease control after the X, as you prefer..PPThe key bindings that are not listed should not be used.Some of them actually do things.For example, the ANSI escape codes ESC [ x are bound to ^X Y for a variety of y..PPSome commands work on regions.A region is defined as the text between the most recently set mark and the cursor..SP 0.5.SS "Mined Commands".SP 0.5.PPIf the \fImined\fR profile,.I .ellepro.b1 is installed in your home directory, the following commands will work..sp.in +1.75i.ta +1.25i.ti -1.5i\fBCURSOR MOTION\fR.ti -1.25iarrows	Move the cursor in the indicated direction.ti -1.25iCTRL-A	Move cursor to start of current line.ti -1.25iCTRL-Z	Move cursor to end of current line.ti -1.25iCTRL-F	Move cursor forward word .ti -1.25iCTRL-B	Move cursor backward to start of previous word .sp.ti -1.5i\fBSCREEN MOTION\fR.ti -1.25iHome key	Move to first character of the file.ti -1.25iEnd key	Move to last character of the file.ti -1.25iPgUp key	Scroll window up 22 lines (closer to start of the file).ti -1.25iPgDn key	Scroll window down 22 lines (closer to end of the file).ti -1.25iCTRL-U	Scroll window up 1 line.ti -1.25iCTRL-D	Scroll window down 1 line.ti -1.25iESC ,	Move to top of screen.ti -1.25iCTRL-_	Move to bottom of screen.sp.ti -1.5i\fBMODIFYING TEXT\fR.ti -1.25iDEL key	Delete the character under the cursor.ti -1.25iBacksp	Delete the character to left of the cursor.ti -1.25iCTRL-N	Delete the next word.ti -1.25iCTRL-P	Delete the previous word.ti -1.25iCTRL-T	Delete tail of line (all characters from cursor to end of line).ti -1.25iCTRL-O	Open up the line (insert line feed and back up).ti -1.25iESC G	Get and insert a file at the cursor position (CTRL-G in mined).sp.ti -1.5i\fBREGIONS\fR.ti -1.25iCTRL-^	Set mark at current position for use with CTRL-C and CTRL-K.ti -1.25iCTRL-C	Copy the text between the mark and the cursor into the buffer.ti -1.25iCTRL-K	Delete text between mark and cursor; also copy it to the buffer.ti -1.25iCTRL-Y	Yank contents of the buffer out and insert it at the cursor.sp.ti -1.5i\fBMISCELLANEOUS\fR.ti -1.25inumeric +	Search forward (prompts for expression).ti -1.25inumeric \(mi	Search backward (prompts for expression).ti -1.25iCTRL-]	ESC n CTRL-[ goes to line n (slightly different syntax than mined).ti -1.25iCTRL-R	Global replace pattern with string (from cursor to end).ti -1.25iCTRL-L	Replace pattern with string within the current line only.ti -1.25iCTRL-W	Write the edited file back to the disk.ti -1.25iCTRL-S	Fork off a shell (use CTRL-D to get back to the editor).ti -1.25iCTRL-G	Abort whatever the editor was doing and wait for command (CTRL-\).ti -1.25iCTRL-E	Redraw screen with cursor line positioned in the middle.ti -1.25iCTRL-V	Visit (edit) a new file.ti -1.25iCTRL-Q	Write buffer to a file.ti -1.25iESC X	Exit the editor.SP 0.5.in -1.75i.SS "Non-Mined Commands".LP.SP 0.5.in +1.75i.ta +1.25i.ti -1.5i\fBCURSOR MOTION\fR.ti -1.25iESC P	Forward paragraph (a paragraph is a line beginning with a dot).ti -1.25iESC ]	Backward paragraph.ti -1.25iESC .	Indent this line as much as the previous one.sp.ti -1.5i\fBMODIFYING TEXT\fR.ti -1.25iCTRL-\\	Insert the next character (used for inserting control characters).ti -1.25iESC T	Transpose characters.ti -1.25iESC W	Transpose words.ti -1.25iESC =	Delete white space (horizontal space).ti -1.25iESC |	Delete blank lines (vertical space).sp.ti -1.5i\fBREGIONS\fR.ti -1.25iESC M	Mark current paragraph.ti -1.25iESC ^	Exchange cursor and mark.ti -1.25iESC Y	Yank back the next-to-the-last kill (CTRL-Y yanks the last one).ti -1.25iESC A	Append next kill to kill buffer.sp.ti -1.5i\fBKEYBOARD MACROS\fR.ti -1.25iESC /	Start Keyboard Macro.ti -1.25iESC \\	End Keyboard Macro.ti -1.25iESC *	View Keyboard Macro (the PrtSc key on the numeric pad is also a *).ti -1.25iESC E	Execute Keyboard Macro.sp.ti -1.5i\fBWINDOW MANAGEMENT\fR.ti -1.25i^X 1	Enter one window mode.ti -1.25i^X 2	Enter two window mode.ti -1.25i^X L	Make the current window larger.ti -1.25i^X P	Make the window more petit/petite (Yes, Virginia, they are English).ti -1.25i^X N	Next window.ti -1.25i^X W	New window.sp.ti -1.5i\fBBUFFER MANAGEMENT\fR.ti -1.25inumeric 5	Display the list of current files and buffers.ti -1.25iESC B	Select a buffer.ti -1.25iESC S	Select an existing buffer.ti -1.25iESC N	Mark a buffer as NOT modified (even if it really is).sp.ti -1.5i\fBUPPER AND LOW CASE MANIPULATION\fR.ti -1.25iESC I	Set first character of word to upper case.ti -1.25iESC C	Capitalize current word.ti -1.25iESC O	Make current word ordinary (i.e., lower case).ti -1.25iESC U	Set entire region between mark and cursor to upper case.ti -1.25iESC L	Set entire region between mark and cursor to lower case.sp.ti -1.5i\fBMISCELLANEOUS\fR.ti -1.25iESC F	Find file and read it into its own buffer.ti -1.25iESC Z	Incremental search.ti -1.25iESC Q	Like CTRL-R, but queries at each occurrence (type ? for options).ti -1.25iESC R	Reset the user profile from a file.ti -1.25iESC H	Help (ELLE prompts for the 1 or 2 character command to describe).ti -1.25iESC ;	Insert a comment in a C program (generates /* */ for you).ti -1.25i^X X	Exit the editor (same as ESC X and CTRL-X CTRL-X).in -1.75i

⌨️ 快捷键说明

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