?? ch08_07.htm
字號:
<html><head><title>Macros (UNIX in a Nutshell: System V Edition)</title><link rel="stylesheet" type="text/css" href="../style/style1.css" /><meta name="DC.Creator" content="Arnold Robbins" /><meta name="DC.Format" content="text/xml" scheme="MIME" /><meta name="DC.Language" content="en-US" /><meta name="DC.Publisher" content="O'Reilly & Associates, Inc." /><meta name="DC.Source" scheme="ISBN" content="1-56592-427-4" /><meta name="DC.Subject.Keyword" content="stuff" /><meta name="DC.Title" content="UNIX in a Nutshell: System V Edition" /><meta name="DC.Type" content="Text.Monograph" /></head><body bgcolor="#ffffff"><img src="gifs/smbanner.gif" usemap="#banner-map" border="0" alt="Book Home" /><map name="banner-map"><area shape="rect" coords="1,-2,616,66" href="index.htm" alt="Book Title" /><area shape="rect" coords="629,-11,726,25" href="jobjects/fsearch.htm" alt="Search this book" /></map><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch08_06.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228" /><td align="right" valign="top" width="228"><a href="ch08_08.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><h2 class="sect1">8.7. Macros</h2><table border="1" cellpadding="3"><tr><td><tt class="literal">:ab </tt><em class="replaceable"><tt>in out</em></td><td>Use <em class="emphasis">in</em> as abbreviation for <em class="emphasis">out</tt></em>.</td></tr><tr><td><tt class="literal">:unab </tt><em class="replaceable"><tt>in</em></td><td>Remove abbreviation for <em class="emphasis">in</tt></em>.<a name="IXT-8-123160" /></td></tr><tr><td><tt class="literal">:ab</tt></td><td>List abbreviations.</td></tr><tr><td><tt class="literal">:map </tt><em class="replaceable"><tt>c sequence</em></td><td>Map character <em class="emphasis">c</em> as <em class="emphasis">sequence</tt></em> of commands.</td></tr><tr><td><tt class="literal">:unmap </tt><em class="replaceable"><tt>c</em></td><td>Remove map for character <em class="emphasis">c</tt></em>.</td></tr><tr><td><tt class="literal">:map</tt></td><td>List characters that are mapped.</td></tr><tr><td><tt class="literal">:map! </tt><em class="replaceable"><tt>c sequence</em></td><td>Map character <em class="emphasis">c</em> to input mode <em class="emphasis">sequence</tt></em>.</td></tr><tr><td><tt class="literal">:unmap! </tt><em class="replaceable"><tt>c</tt></em></td><td><p>Remove input mode map (you may need to quote thecharacter with <tt class="literal">CTRL-V</tt>).</p></td></tr><tr><td><tt class="literal">:map!</tt></td><td>List characters that are mapped for input mode.</td></tr></table><p><p>The following characters are unused in command mode and can be mappedas user-defined commands:</p><dl><dt><i><em class="emphasis">Letters</em></tt></i></dt><dd><tt class="literal">g K q V v</tt></p></dd><dt><i><em class="emphasis">Control keys</em></tt></i></dt><dd><tt class="literal">^A ^K ^O ^W ^X</tt></p></dd><dt><i><em class="emphasis">Symbols</em></tt></i></dt><dd><tt class="literal">_ * \ =</tt></p></dd></dl><p>(Note: the = is used by <tt class="literal">vi</tt> if Lisp mode is set.Different versions of <tt class="literal">vi</tt> may use some of thesecharacters, so test them before using.)</p><hr width="684" align="left" /><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch08_06.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228"><a href="index.htm"><img src="../gifs/txthome.gif" alt="Home" border="0" /></a></td><td align="right" valign="top" width="228"><a href="ch08_08.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td align="left" valign="top" width="228">8.6. Interacting with Unix</td><td align="center" valign="top" width="228"><a href="index/index.htm"><img src="../gifs/index.gif" alt="Book Index" border="0" /></a></td><td align="right" valign="top" width="228">8.8. Miscellaneous Commands</td></tr></table></div><hr width="684" align="left" /><img src="../gifs/navbar.gif" usemap="#library-map" border="0" alt="Library Navigation Links" /><p><p><font size="-1"><a href="copyrght.htm">Copyright © 2003</a> O'Reilly & Associates. All rights reserved.</font></p><map name="library-map"><area shape="rect" coords="1,0,88,96" href="../index.htm"><area shape="rect" coords="90,0,165,96" href="../upt/index.htm"><area shape="rect" coords="168,1,253,107" href="../mac/index.htm"><area shape="rect" coords="255,0,335,97" href="../korn/index.htm"><area shape="rect" coords="337,0,415,109" href="../unixnut/index.htm"><area shape="rect" coords="417,0,512,122" href="../sedawk/index.htm"><area shape="rect" coords="514,0,605,105" href="../lunix/index.htm"><area shape="rect" coords="611,2,694,121" href="../vi/index.htm"></map></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -