﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-我的编程乐园-随笔分类-Vim</title><link>http://www.cppblog.com/deercoder/category/17866.html</link><description>&lt;P&gt;&lt;FONT style="FONT-SIZE: 20px" color=#ff0000&gt;积累，坚持！&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="FONT-SIZE: 20px" color=#ff0000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------我是一只IT小小鸟&lt;/FONT&gt;&lt;/P&gt;</description><language>zh-cn</language><lastBuildDate>Sun, 30 Oct 2011 22:00:10 GMT</lastBuildDate><pubDate>Sun, 30 Oct 2011 22:00:10 GMT</pubDate><ttl>60</ttl><item><title>Vim学习笔记(二)</title><link>http://www.cppblog.com/deercoder/archive/2011/10/30/159367.html</link><dc:creator>刘畅</dc:creator><author>刘畅</author><pubDate>Sun, 30 Oct 2011 12:27:00 GMT</pubDate><guid>http://www.cppblog.com/deercoder/archive/2011/10/30/159367.html</guid><wfw:comment>http://www.cppblog.com/deercoder/comments/159367.html</wfw:comment><comments>http://www.cppblog.com/deercoder/archive/2011/10/30/159367.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/deercoder/comments/commentRss/159367.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/deercoder/services/trackbacks/159367.html</trackback:ping><description><![CDATA[<div><br />在前面一篇blog（<a id="viewpost1_TitleUrl" href="../archive/2011/10/05/157573.html">Vim学习笔记</a>）中介绍VIM的使用用法后，该文章达到了历史性的最高访问量。在上面的那篇文章中，介绍了VIM的基本用法，基本上是个人在联系Vimtutor这个教程之后对不熟悉的指令的总结。但是，随着学习的深入，发现掌握这些基本的命令还远远不够，虽然网上有大批的资料可以下载学习，但是迫于没有一种类似于入门级别的教程，所以还是希望有相关的从最常用最基本的知识讲起的教程。目前看来，《<a href="http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/" target="_blank">Learn Vim Progressively</a>》这篇文章应该是比较好的入门级教材了吧，而酷壳则进行了翻译，网址在这里<a href="http://coolshell.cn/articles/5426.html" title="简明 Vim 练级攻略">简明 Vim 练级攻略</a>（http://coolshell.cn/articles/5426.html）。以下是我的学习笔记：<br /><br />1. 插入：<br />a: 在光标之后插入<br />o: 在当前行后面插入一个新行<br />O: 在当前行前面插入一个新行<br />cw: 替换从光标到后一个单词结尾的字符。<br /><br />2. 移动：<br /><br />0: 移动到行头<br />^: 到本行第一个不是blank的字符。（blank字符即空格，tab，换行和回车）<br />$: 到本行行尾<br />g_: 到本行最后一个不是blank字符的位置<br />/pattern: 搜索pattern的字符串。（搜索多个按n回到下一个）<br /><br />3. 拷贝：<br /><br />P：在当前位置之前拷贝（将缓冲区内的内容拷贝过来）<br />p: 在当前位置之后拷贝<br />yy: 拷贝当前行。(在某行使用之后，相当于拷贝了该行，然后到指定位置，使用P命令粘贴到指定的位置)<br /><br /><br />4.Undo/Redo<br /><br />u : undo<br />Ctrl + r : redo <br /><br />5. 打开保存<br />e&lt;path/file&gt; : 打开一个文件<br />w: 保存<br />saveas&lt;path/file&gt;: 另存为某个地方<br />x,wq: 保存（x表示仅需要保存时保存，wq则是保存）<br />ZZ：不需要输入前面的冒号即可保存，此时会退出。（不同于前面的冒号+回车）<br />bn, bp: 同时打开多个文件的话，使用这个来切换到上一个或者下一个文件。<br /><br />6. 更好<br />.: 输入一个点号会重复执行上次的命令<br />N&lt;command&gt;: 重复执行command命令N次。(比如2dd表示删除两行，3p表示粘贴三次)<br /><br />7. 更强<br />NG: 到第N行（比如3G，表示跳转到第三行）另外可以使用:137跳转到137行（感觉更方便）<br />gg: 跳转到第一行(相当于1G，或者:1)<br />G: 跳转到最后一行<br />单词的移动：<br />w： 到下一个单词的开始<br />e： 到下一个单词的结尾<br />（如果认为分号也是一个单词的话，使用E/W）<br />比如：x = (name_1, vision_3); 后面的这个分号就要注意。<br /><br />%: 匹配括号，先移动光标到一个括号处，然后在命令模式下输入%，即可跳转到匹配的括号。<br />*：匹配光标到当前所在的单词。（向下匹配）(匹配就是知道相同的单词，比如在当前行有5个单词test，那么按*就会寻找并跳转到下一个单词test的起始之处)<br />#：匹配光标到当前所在单词（向上匹配）<br /><br /><br />8. 更快<br />一定要记住光标的移动。<br />eg：0y$：现跳转到第一行，然后拷贝，拷贝到行末，<br />类似的，ye：开始拷贝，拷贝到笨蛋次的最后一个（e其实就是end）<br />y2/foo：拷贝两个foo直接的字符串（这种用法很奇特，前面没有讲到）<br /><br />还有很多时间并不一定你就一定要按y才会拷贝，下面的命令也会被拷贝：<br />d (删除 )<br />v (可视化的选择)<br />gU (变大写)<br />gu (变小写)<br />等等<br /><br />9.Vim超能力<br />fa: 到下一个为a的字符处。同理，fs到下一个为s的字符处<br />t,：到逗号前的第一个字符处。同理，ta就是到a前的第一个字符出。<br />3fa：在当前行查找第三个出现的a<br />F和T：作用和f与t一样，只是相反的方向。<br />dt": 删除所有的内容，知道遇到了双引号，类似的可以换成其他的如dt+任意字符。<br /><br />==========================以下内容为以前没接触的，重点回顾===================<br />1. 区域选择<br />&lt;action&gt;a&lt;object&gt; or &lt;action&gt;i&lt;object&gt;<br />&lt;action&gt; 可以是任何命令，如d（删除）,y(拷贝)，v(可视化模式选择).<br />&lt;object&gt;可以是：w表示一个单词，s表示一个句子，p一个段落。也可以是特殊字符比如）,}等等。<br /><br />对于(map (+)("foo")),光标在第一个o的位置。<br />则：vi" ----对应的是&lt;action&gt;i&lt;object&gt;这种情况，v表示模式选择，然后i表示的是不包括这个特殊字符，所以是从第一个o所在的包含在"符号中的。<br />其他的类似，不同的是a是要包括内容的。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vi" &#8594; 会选择 foo.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; va" &#8594; 会选择 "foo".<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vi) &#8594; 会选择 "foo".<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; va) &#8594; 会选择("foo").<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v2i) &#8594; 会选择 map (+) ("foo")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v2a) &#8594; 会选择 (map (+) ("foo"))<br /><br /><br />块操作<br />块操作，典型的操作： 0 &lt;C-v&gt; &lt;C-d&gt; I-- [ESC]<br />Windows下面是Ctrl+q而不是Ctrl+v开始块操作。<br />做法是：<br />1. 先移动光标到某个地方。<br />2. Ctrl+V开始块操作。<br />3. 选择块的范围（此时可以用hjkl，或者%，或者Ctrl+d等等）<br />4. I-- Esc（选择对应的操作，这里是插入ii，所以现I表示插入，然后--，但是这样只是对最开始的那个起作用，要应用到所有的块，需要使用Esc键）<br /><br />自动提示&lt;Ctrl+n&gt; &lt;Ctrl+p&gt;<br />所谓的自动提示：实际上是Vim对用户近期输入的单词进行统计记忆的结果，它的这个自动提示，是当你近期输入某个单词后，再次输入的时候，如果输入首单词，使用该快捷键就能匹配相应单词，从而自动补全。<br />如输入下面的两个单词：<br />LaTeX<br />XeLaText<br />然后在输入下面的这个，只输入首单词，在利用C+n组合，就会自动补齐。<br />XeLaText LaTeX<br /><br />宏录制：<br />qa把你的操作记录在寄存器a内<br />然后@a就会重复这个被记录的宏<br />@@用来重复自己的一个宏（要指定某一个特定的就要用@xx，其中xx即前面保存的名）<br /><br />qaYp&lt;C-a&gt;q&#8594;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qa 开始录制<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yp 复制行.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;C-a&gt; 增加1.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q 停止录制.<br />&nbsp;&nbsp;&nbsp; @a &#8594; 在1下面写下 2<br />&nbsp;&nbsp;&nbsp; @@ &#8594; 在2 正面写下3<br />&nbsp;&nbsp;&nbsp; 现在做 100@@ 会创建新的100行，并把数据增加到 103.<br /><br /><br />可视化选择v，V，Ctrl+V（这个在前面有讲到）<br />首先的工作自然是使用这个工具来选择了，随便哪一种都可以。<br />其次选择后就是对该模块进行操作，编辑了。可以有<br />J : 把所有行都连接起来<br />&lt; or &gt; : 左右缩进<br />=：自动完成缩进（原始动画中就是这个效果，看了半天发现缩进变化了）<br /><br />如何在所有选中行的末尾都加入一个东东呢？<br />就和在前面加入--的那个例子一样，先选中模块，然后跳到末尾$,然后加入的话是A，加入某个就是输入字符串了，应用到所有模块的部分就是按下Esc即可。<br /><br /><br />分屏split和vsplit<br />:split: 创建分配（vsplit则是创建垂直分屏）<br />C-w&lt;Direction&gt;： Direction可以是hjkl或者方向键，用来不同屏幕切换<br />C-w_或者C-w|: 用来最大化尺寸。<br />C-w+或者C-w-: 增加尺寸。<br /><br />分屏的使用：<br />1.使用大写的O参数来垂直分屏。vim -On file1 file2<br />2. 使用小写的o参数来水平分屏。 vim -on file1 file2<br />3. 上下分割，并打开一个新文件。 :sp filename<br />4. 左右分割，并打开一个新文件。 :vsp filename<br />5. 屏幕之间的移动：Ctrl + W + (h, j, k, l)(不同参数表示移动的方向)<br />&nbsp;&nbsp; 比如Ctrl + W + h表示向左边的屏幕移动。<br />6. 屏幕尺寸的变化。<br />&nbsp;&nbsp; Ctrl + W + : 表示增加高度。<br />&nbsp;&nbsp; Ctrl + W - : 表示减少高度<br />&nbsp;&nbsp; Ctrl + w = : 使得所有的屏幕有相同的高度<br />7. 具体的更加详细的内容见help文档或者http://coolshell.cn/articles/1679.html<br />&nbsp;&nbsp; (注，酷壳上的部分命令可能由于版本原因已失效，应该有新的快捷键代替)<br /><br />VIM还有更多的功能需要学习，关键是在使用中不断加深练习，还有强大的扩展插件，另外在浏览器中也有相应的扩展，可谓功能强大。后续会继续学习，并做好笔记以及时总结学习所得。<br /><br /><br /></div><img src ="http://www.cppblog.com/deercoder/aggbug/159367.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/deercoder/" target="_blank">刘畅</a> 2011-10-30 20:27 <a href="http://www.cppblog.com/deercoder/archive/2011/10/30/159367.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Chrome神器Vimium快捷键学习记录</title><link>http://www.cppblog.com/deercoder/archive/2011/10/22/158886.html</link><dc:creator>刘畅</dc:creator><author>刘畅</author><pubDate>Sat, 22 Oct 2011 12:25:00 GMT</pubDate><guid>http://www.cppblog.com/deercoder/archive/2011/10/22/158886.html</guid><wfw:comment>http://www.cppblog.com/deercoder/comments/158886.html</wfw:comment><comments>http://www.cppblog.com/deercoder/archive/2011/10/22/158886.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cppblog.com/deercoder/comments/commentRss/158886.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/deercoder/services/trackbacks/158886.html</trackback:ping><description><![CDATA[今天下午折腾了一下Chrome下面的一个插件Vimium的使用，顿时发现该插件功能强大，能够满足减少鼠标的使用。至于为何要使用这个插件，源于我手腕上的伤一直没有好，使用鼠标的时候有轻微的疼痛。而且，由于我一般都是在SNS网站上停留，在人人和微博比较多，所以实际上发现每次看完一个一个页面都要点下一页的感觉很不爽，而同时最近在学习Vim，所以想到如果能够实现几个简单的快捷键，那么会相当方便。为此Google之，发现了这个给力的插件，以下为我的学习笔记。<br /><br />Vimium使用快捷键总结<br /><br /><div align="center"><img src="http://www.cppblog.com/images/cppblog_com/deercoder/Vimium-help-graphic.png" height="432" hspace="0" vspace="0" width="501" /><br /></div><br /><style type="text/css"><!--
		@page { margin: 0.79in }
		TD P { margin-bottom: 0in }
		P { margin-bottom: 0.08in }
	--></style><p style="margin-bottom: 0in"></p><table dir="LTR" cellpadding="2" cellspacing="0" width="320" align="LEFT"><colgroup><col width="55" /><col width="9" /><col width="244" /></colgroup><tbody><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>j,
			&lt;c-e&gt;</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			down</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>k,
			&lt;c-y&gt;</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			up</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>h</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			left</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>l</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			right</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>gg</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			to the top of the page</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>G</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			to the bottom of the page</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>zH</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			all the way to the left</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>zL</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			all the way to the right</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>d</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			a page down</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>u</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Scroll
			a page up</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>r</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Reload
			the page</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>gs</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">View
			page source</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>yy</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Copy
			the current URL to the clipboard</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>yf</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Copy
			a link URL to the clipboard</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>gu</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Go
			up the URL hierarchy</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>i</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Enter
			insert mode</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>gi</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Focus
			the first (or n-th) text box on the page</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>f</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Open
			a link in the current tab</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>F</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Open
			a link in a new tab</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>&lt;a-f&gt;</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Open
			multiple links in a new tab</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>b</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Open
			a bookmark in the current tab</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>B</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Open
			a bookmark in a new tab</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>[[</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Follow
			the link labeled previous or &lt;</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>]]</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#555555"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Follow
			the link labeled next or &gt;</font></font></font></p></td></tr><tr><td style="border: none; padding: 0in" width="55"><p style="border: none; padding: 0in" align="RIGHT"><font color="#2f508e"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1"><b>gf</b></font></font></font></p></td><td style="border: none; padding: 0in" width="9"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">:</font></font></font></p></td><td style="border: none; padding: 0in" width="244"><p style="border: none; padding: 0in"><font color="#000000"><font face="Liberation Serif, serif"><font style="font-size: 8pt" size="1">Cycle
			forward to the next frame on the page</font></font></font></p></td></tr></tbody></table><font color="#FF0000">j: 向下移动。<br />k：向上移动。（不明白默认的&lt;c-y&gt;表示是啥用法，使用了c-y这三个键没有效果）<br />h：向左移动。<br />l：向右移动。</font><br />zH：一直移动到左部。<br />zL:一直移动到右部。<br /><font color="#FF0000">gg：跳转到页面的顶部。<br />G：跳转到页面的底部。<br />d：向下翻页（相当于PageDown被按下了）<br />u：向上翻页（相当于PageUp被按下了）<br />r：重新载入该页（相当于F5刷新页面）</font><br />gs：查看页面源代码<br /><font color="#FF0000">yy：拷贝当前页面的URL到剪贴板<br />yf：拷贝某一个URL到剪贴板（实际上是相当于输入了f，然后出现很多编码的URL，选择某个之后，相当于拷贝了某个，因为一个页面中可能有很多超链接）</font><br /><font color="#FF0000">gu：跳转到父页面（比如http://www.douban.com/group/vim/，输入后跳转到父页面即http://www.douban.com/group/，所以不同于H的快捷键是回到上个历史页面）</font><br /><br /><font color="#FF0000">i：输入模式（如果发现命令不起作用，可能是进入输入模式了，此时按Esc回到命令模式）<br />gi：将焦点集中到第一个输入框（输入gNi则焦点集中到第N个输入框）<br />f：在当前的页面打开一个新的链接。<br />F：在新的页面打开一个新的链接。</font><br />&lt;a-f&gt;:在当前页面打开多个链接（没感觉使用到了多个标签，不过表示的是输入af）<br /><font color="#FF0000">b：在当前页打开一个书签。（输入部分网址会自动进行搜索）<br />B：在新的标签页打开一个书签</font><br />gf：循环到当前页面的下一个框层（可能跟页面制作有关，目前没用到）<br /><br /><font color="#FF0000">查找模式：（和Vim相似）<br />/ : 查找<br />n: 向下查找匹配内容<br />N：向上查找匹配内容<br /><br />导航历史：<br />H：回退上一个历史页面（相当于浏览器中的向左箭头）<br />L：回到下一个历史页面（相当于浏览器的向右箭头）<br /><br />标签页操作：<br />K，gt：跳转到右边的一个标签页<br />J，gT：跳转到左边的一个标签页<br />t：创建一个新的标签页<br />x：关闭当前的标签页<br />X：恢复刚刚关闭的标签页<br />？：显示命令的帮助提示（再按一次关闭）</font><br />(红色为常用的命令)<br /><br />另外，在当前的标签页直接输入一个新的网址，按F6就OK了。这个基本的快捷键都不会，搜了半天才搞定，汗～<br />发现学习一个新的东西也不是很费时间，而且能够提高效率，看来还是要折腾啊，年轻不折腾就会退步，就像工作以后就没心思倒腾了一样，退步不少啊！<br /><br />附linuxToy的部分说明（http://linuxtoy.org/archives/vimium.html）：<br />Vimium 用法<br />页面浏览<br />j、k、h、l：向下/上/左/右滚动 <br />gg 和 G：移至页顶/页底 <br />Ctrl + d 和 Ctrl + u：下/上翻页 <br />zi 和 zo：放大/缩小 <br />历史<br />H：后退 <br />L：前进 <br />标签页<br />t：打开新标签 <br />d：关闭标签 <br />u：还原标签 <br />J/K：下/上一个标签 <br />Hint 模式<br />f/F：进入 Hint 模式，后者会在新标签页中打开链接 <br /><br /><img src ="http://www.cppblog.com/deercoder/aggbug/158886.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/deercoder/" target="_blank">刘畅</a> 2011-10-22 20:25 <a href="http://www.cppblog.com/deercoder/archive/2011/10/22/158886.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Vim学习笔记</title><link>http://www.cppblog.com/deercoder/archive/2011/10/05/157573.html</link><dc:creator>刘畅</dc:creator><author>刘畅</author><pubDate>Wed, 05 Oct 2011 09:53:00 GMT</pubDate><guid>http://www.cppblog.com/deercoder/archive/2011/10/05/157573.html</guid><wfw:comment>http://www.cppblog.com/deercoder/comments/157573.html</wfw:comment><comments>http://www.cppblog.com/deercoder/archive/2011/10/05/157573.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/deercoder/comments/commentRss/157573.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/deercoder/services/trackbacks/157573.html</trackback:ping><description><![CDATA[最近在学习Vimtutor中的相关内容，Vim的使用博大精深，很多命令一旦不使用就会忘记，下面把其中的没有使用到的相关命令做一个简单的总结，供以后复习使用。至于常见的保存，插入等等命令，则不予记录，在以后的使用中加深练习即可。<br /><div>&nbsp;<br />1. Type&nbsp; 0&nbsp; (zero) to move to the start of the line.<br />&nbsp;Type&nbsp; 2w&nbsp; to move the cursor two words forward.<br />&nbsp;Type&nbsp; 3e&nbsp; to move the cursor to the end of the third word forward.<br /><br />2. Type&nbsp; x&nbsp; to delete the first unwanted character.<br />&nbsp;Type&nbsp; rx&nbsp; to replace the character at the cursor with&nbsp; x <br />&nbsp;<br />3. To change until the end of a word, type&nbsp; ce (ce + 修正的单词)<br />&nbsp;<br />4. C就类似于d。de,dw,d$都对应着ce,cw,c$<br />&nbsp;<br />5. Type CTRL-G to show your location in the file and the file status.<br />&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp; G&nbsp; to move to a line in the file. <br />&nbsp;&nbsp;&nbsp; &nbsp;<br />6. Press&nbsp; G&nbsp; to move you to the bottom of the file.<br />&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp; gg&nbsp; to move you to the start of the file.<br /><br />7. Type&nbsp; /&nbsp; followed by a phrase to search for the phrase.<br />&nbsp;<br />8. To search for the same phrase again, simply type&nbsp; n .<br />&nbsp;&nbsp;&nbsp;&nbsp; To search for the same phrase in the opposite direction, type&nbsp; N&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />9. To search for a phrase in the backward direction, use&nbsp; ?&nbsp; instead of&nbsp; /&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />10. To go back to where you came from press&nbsp; CTRL-O&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />11. 匹配使用%，放置在一个括号下面，然后输入%，就会跳转到另外一个上面。&nbsp;&nbsp; &nbsp;<br /><br />12.&nbsp; type&nbsp;&nbsp; :#,#s/old/new/g&nbsp;&nbsp;&nbsp; where #,# are the line numbers of the range<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; of lines where the substitution is to be done. （两行之间的所有文本）<br />&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp; :%s/old/new/g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to change every occurrence in the whole file.（不提示，但是是整个文件）<br />&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp; :%s/old/new/gc&nbsp;&nbsp;&nbsp;&nbsp; to find every occurrence in the whole file,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with a prompt whether to substitute or not.（提示是否代替）<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />13.g表示取代该行所有的。<br />&nbsp;比如:s/thee/the/g表示取代该行中所有的thee为the。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />14. CTRL-G&nbsp; displays your location in the file and the file status.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; G&nbsp; moves to the end of the file.<br />&nbsp;&nbsp;&nbsp;&nbsp; number&nbsp; G&nbsp; moves to that line number.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gg&nbsp; moves to the first line.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />15. ：！ 运行执行外部程序。（冒号是必须的，命令模式都必须的，比如：w表示保存） (外部命令如ls，pwd需要使用！，而内部命令则是直接：w等等，不需要使用！)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />16. 输入v进入视觉模式，此时鼠标向下会选中部分文字，然后可以对选中的文字操作。<br />比如：w TEST则会把选中的保存位文本。<br />:d则会删除选中的文本。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />17. 插入一个文件的部分内容，使用：r FILENAME即可插入一个文件到该行。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;<br />18. 在下方新建一个空行，使用o，<br />&nbsp;在上方新建一个空行，使用O。（命令模式下）&nbsp;&nbsp;&nbsp; （输入命令后会进入插入模式）<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />NOTE:&nbsp; a, i and A all go to the same Insert mode, the only difference is where<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the characters are inserted.（a是在光标后，A是在行末尾，i则是光标处）<br /><br />19. e跳转一个单词。e.g: 2e表示跳转两个单词，比向右键更快捷。<br />&nbsp;&nbsp;&nbsp; G跳转行。e.g: 721G表示跳转到第721行<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />20. 替换：<br />R：替换位多个字母<br />r：替换位单个字母&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />21. Move the cursor to the end of the next line:&nbsp; j$<br />&nbsp;<br />&nbsp; <br />22. Use the&nbsp; y&nbsp; operator to copy text and&nbsp; p&nbsp; to paste it <br /><br />NOTE: you can also use&nbsp; y&nbsp; as an operator;&nbsp; yw&nbsp; yanks one word.<br /><br />&nbsp;<br />23. Set the 'ic' (Ignore case) option by entering:&nbsp;&nbsp; :set ic（包含大小写匹配的都显示出来，比如Ignore，IGNORE）<br />&nbsp;&nbsp;&nbsp; Set the 'hlsearch' and 'incsearch' options:&nbsp; :set hls is（高亮显示）<br /><br /><br />（set option）<br />24. Typing ":set xxx" sets the option "xxx".&nbsp; Some options are:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ic' 'ignorecase'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ignore upper/lower case when searching<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'is' 'incsearch'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; show partial matches for a search phrase<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'hls' 'hlsearch'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; highlight all matching phrases<br />&nbsp;&nbsp;&nbsp;&nbsp; You can either use the long or the short option name.<br /><br />25. Prepend "no" to switch an option off:&nbsp;&nbsp; :set noic<br />&nbsp; <br />&nbsp; &nbsp;<br />26. 在命令模式下，输入e然后按TAB键，会自动出现很多相关的命令（以e开头的命令）。（第一个相关的）<br />按Ctrl + D能够出现所有以他开头的命令。&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</div><img src ="http://www.cppblog.com/deercoder/aggbug/157573.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/deercoder/" target="_blank">刘畅</a> 2011-10-05 17:53 <a href="http://www.cppblog.com/deercoder/archive/2011/10/05/157573.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>