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

📄 555-557.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Using the emacs Editor</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=28//-->

<!--PAGES=555-557//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="553-554.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="557-558.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading16"></A><FONT COLOR="#000077">Basic Command Summary</FONT></H3>

<P>Table 28.4 gives a brief listing of the major commands provided by <TT>emacs</TT>. &lt;Esc&gt;&lt;c&gt; means to press and release the <I>meta key</I>&#151;usually the &lt;Esc&gt; key on a PC keyboard, although on some keyboards you can use the &lt;Alt&gt; key and then press the following &lt;c&gt; key. &lt;Ctrl-c&gt; means to press the &lt;Ctrl&gt; key and the &lt;c&gt; key at the same time. Remember, pressing &lt;Ctrl-g&gt; at any time stops the currently executing command.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 28.4</B> Basic <TT>emacs</TT> Commands

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="35%" ALIGN="LEFT">Key Sequence

<TH WIDTH="65%" ALIGN="LEFT">Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><B>Saving to Disk</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-s&gt;

<TD>Saves current buffer to disk

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-w&gt;

<TD>Writes current buffer to disk, asking for a new filename

<TR>

<TD>&lt;Ctrl-x&gt;&lt;n&gt;

<TD>Changes filename of current buffer

<TR>

<TD>&lt;Esc&gt;&lt;z&gt;

<TD>Writes all changed buffers to disk and exits <TT>emacs</TT>

<TR>

<TD COLSPAN="2">&nbsp;

<TR>

<TD><B>Reading from Disk</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-f&gt;

<TD>Finds file, reads into a new buffer created from filename

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-r&gt;

<TD>Reads file into current buffer, erasing previous contents

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-i&gt;

<TD>Inserts file into the current buffer at the cursor&#146;s location

<TR>

<TD COLSPAN="2">&nbsp;

<TR>

<TD><B>Moving the Cursor</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl-f&gt;

<TD>Moves forward one character

<TR>

<TD>&lt;Ctrl-b&gt;

<TD>Moves backward one character

<TR>

<TD>&lt;Ctrl-a&gt;

<TD>Moves to front of current line

<TR>

<TD>&lt;Ctrl-e&gt;

<TD>Moves to end of current line

<TR>

<TD>&lt;Ctrl-n&gt;

<TD>Moves to next line

<TR>

<TD>&lt;Ctrl-p&gt;

<TD>Moves to previous line

<TR>

<TD>&lt;Esc&gt;&lt;f&gt;

<TD>Moves forward a word

<TR>

<TD>&lt;Esc&gt;&lt;b&gt;

<TD>Moves backward a word

<TR>

<TD>&lt;Esc&gt;&lt;a&gt;

<TD>Goes to a line

<TR>

<TD>&lt;Esc&gt;&lt;Shift-.&gt;

<TD>Moves to beginning of buffer

<TR>

<TD>&lt;Esc&gt;&lt;Shift-,&gt;

<TD>Moves to end of buffer

<TR>

<TD COLSPAN="2">&nbsp;

<TR>

<TD><B>Deleting and Inserting</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl-d&gt;

<TD>Deletes next character

<TR>

<TD>&lt;Ctrl-c&gt;

<TD>Inserts a space

<TR>

<TD>&lt;Esc&gt;&lt;d&gt;

<TD>Deletes next word

<TR>

<TD>&lt;Ctrl-k&gt;

<TD>Deletes to end of current line

<TR>

<TD>&lt;Return&gt;

<TD>Inserts a new line

<TR>

<TD>&lt;Ctrl-j&gt;

<TD>Inserts a new line and indent

<TR>

<TD>&lt;Ctrl-o&gt;

<TD>Opens a new line

<TR>

<TD>&lt;Ctrl-w&gt;

<TD>Deletes region between mark and cursor

<TR>

<TD>&lt;Esc&gt;&lt;w&gt;

<TD>Copies region to kill buffer

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-o&gt;

<TD>Deletes lines around cursor

<TR>

<TD COLSPAN="2">&nbsp;

<TR>

<TD><B>Searching and Replacing</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl-s&gt;

<TD>Searches forward from current position

<TR>

<TD>&lt;Ctrl-r&gt;

<TD>Reverses search from current position

<TR>

<TD>&lt;Ctrl-x&gt;&lt;s&gt;

<TD>Repeats search forward

<TR>

<TD>&lt;Ctrl-x&gt;&lt;r&gt;

<TD>Repeats search in reverse

<TR>

<TD VALIGN="TOP">&lt;Esc&gt;&lt;r&gt;

<TD>Replaces all instances of first typed string in mini-buffer with second typed string, ending each string with &lt;Esc&gt;

<TR>

<TD VALIGN="TOP">&lt;Esc&gt;&lt;Ctrl-r&gt;

<TD>Queries before performing the replacement.<BR>Answer in the mini-buffer with one of the following:<BR>&lt;Ctrl-g&gt;: Cancels operation<BR>&lt;!&gt;: Replaces the rest<BR>&lt;?&gt;: Gets a list of options<BR>&lt;.&gt;: Exits to where command was initiated<BR>&lt;y&gt; or Spacebar: Replaces and continues with replace operation<BR>&lt;n&gt;: Doesn&#146;t replace but continues with replace operation

<TR>

<TD COLSPAN="2">&nbsp;

<TR>

<TD><B>Marked Text</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl&gt;&lt;Spacebar&gt;

<TD>Sets mark at current cursor position

<TR>

<TD>&lt;Ctrl-x&gt;&lt;Ctrl-x&gt;

<TD>Exchanges mark and cursor

<TR>

<TD>&lt;Ctrl-w&gt;

<TD>Deletes the marked region

<TR>

<TD>&lt;Esc-w&gt;

<TD>Copies marked region to kill buffer

<TR>

<TD>&lt;Ctrl-y&gt;

<TD>Inserts the kill buffer at the current cursor position

<TR>

<TD COLSPAN="2">&nbsp;

<TR>

<TD><B>Buffers</B>

<TD>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>&lt;Ctrl-x&gt;&lt;b&gt;

<TD>Switches to another buffer

<TR>

<TD>&lt;Ctrl-x&gt;&lt;x&gt;

<TD>Switches to next buffer in buffer list

<TR>

<TD>&lt;Esc&gt;&lt;Ctrl-n&gt;

<TD>Changes name of current buffer

<TR>

<TD>&lt;Ctrl-x&gt;&lt;k&gt;

<TD>Deletes a non-displayed buffer

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="553-554.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="557-558.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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