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

📄 317-318.html

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

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Text Editors: vi and emacs</TITLE>

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

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

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

<!--IMPRINT=Sams//-->

<!--CHAPTER=16//-->

<!--PAGES=317-318//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="315-317.html">Previous</A></TD>

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

<TD><A HREF="../ch17/319-322.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading30"></A><FONT COLOR="#000077">Online Help in emacs</FONT></H4>

<P>One of the best features of the <TT>emacs</TT> editor is that if you ever get stuck or are just plain overwhelmed by it all, help is just a few keystrokes away&#151;and lots of it! If you need a short <TT>emacs</TT> tutorial, just enter Ctrl&#43;h t. If you need to find out what function a particular key supports, type Ctrl&#43;h k and then press the key. The help option has many different topics. Use Ctrl&#43;h i to load the info documentation reader and read about all the types of help available.</P>

<H4 ALIGN="LEFT"><A NAME="Heading31"></A><FONT COLOR="#000077">A Summary of Essential Commands</FONT></H4>

<P><TT>emacs</TT>, like the <TT>vi</TT> editor, has such a rich command set that we can cover only a portion of it in this chapter. Table 16.2 is a summary of the strictly essential commands that you need for basic editing in <TT>emacs</TT>. The <TT>emacs</TT> man page should be consulted for a more comprehensive description of the full <TT>emacs</TT> command set.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 16.2.</B> Essential <TT>emacs</TT> commands.

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="30%" ALIGN="LEFT">Command

<TH WIDTH="70%" ALIGN="LEFT">What it does

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TD>Ctrl&#43;b

<TD>Moves back one character

<TR>

<TD>Ctrl&#43;d

<TD>Deletes the current character

<TR>

<TD>Ctrl&#43;f

<TD>Moves forward one character

<TR>

<TD>Ctrl&#43;g

<TD>Cancels the current command

<TR>

<TD>Ctrl&#43;h

<TD>Enters <TT>emacs</TT> online help

<TR>

<TD>Ctrl&#43;n

<TD>Moves forward to the next line

<TR>

<TD>Ctrl&#43;p

<TD>Moves back to the previous line

<TR>

<TD>Ctrl&#43;s

<TD>Searches forward for a string

<TR>

<TD>Ctrl&#43;v

<TD>Scrolls forward one screen

<TR>

<TD>META&#43;v

<TD>Scrolls backward one screen

<TR>

<TD>Ctrl&#43;x u

<TD>Undoes the last edit

<TR>

<TD>Ctrl&#43;x Ctrl&#43;c

<TD>Exits <TT>emacs</TT>

<TR>

<TD>Ctrl&#43;x Ctrl&#43;s

<TD>Saves the buffer to a file

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<H3><A NAME="Heading32"></A><FONT COLOR="#000077">Summary</FONT></H3>

<P>There are many text editors available for the Linux system. Two of the most popular are <TT>vi</TT> (which is actually an alias to the <TT>elvis</TT> editor) and <TT>emacs</TT>. Both provide basic editing functions such as inserting and deleting text, reading and writing of external files, text searching, and copying and moving text. <TT>vi</TT> is a full-screen editor that has two modes: command mode and text mode. <TT>emacs</TT> is an extendable and powerful editor that is highly configurable to suit a variety of editing tasks (such as programming, document writing, and changing user or system files). From here, you can find related material to read. To learn more about</P>

<DL>

<DD><TT>groff</TT>, a text formatting utility, read Chapter 17, &#147;<TT>groff</TT>.&#148;

<DD>TeX and LaTeX, more flexible text editors and formatters, read Chapter 19, &#147;<TT>TeX</TT> and <TT>LaTeX</TT>.&#148;

<DD>Setting up your system to use the X windowing system, read Chapter 22, &#147;Installing and Configuring XFree86.&#148;

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="315-317.html">Previous</A></TD>

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

<TD><A HREF="../ch17/319-322.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 + -