<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>男单 618 &#187; vim</title>
	<atom:link href="http://www.ai7.org/wp/html/tag/vim/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ai7.org/wp</link>
	<description>生活象筒装的卫生纸，开始的时候怎么扯都不觉得在转，后来转的越来越快。</description>
	<lastBuildDate>Sun, 11 Dec 2011 12:22:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>一个新的支持latex的vim插件</title>
		<link>http://www.ai7.org/wp/html/925.html</link>
		<comments>http://www.ai7.org/wp/html/925.html#comments</comments>
		<pubDate>Fri, 01 Jul 2011 17:53:23 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[atp]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/925.html</guid>
		<description><![CDATA[Automatic (La)TeX Plugin for Vim (atp-vim)是一个新的支持LaTeX的插件。前些天刚发现时，bug还比较多，经常出错，现在的版本好多了。与latexsuite相比，有些新的功能很不错（毕竟06年以后latexsuite就没有更新过），推荐给喜欢LaTeX，VIM，Python的朋友。 完整的特性可以查阅官方的Feature List，或者手册。下面几条是我比较喜欢的。 正向查找。由vim中光标处直接跳至pdf相应位置处。 反向查找。由pdf跳转至vim相应源代码处。 清理中间文件。这个功能实现起来不难，但是有了总是方便一点，特别是对有洁癖的人。 补全命令也很丰富。 总的来说，值得一试。 ps. 目前最新的测试版是9.6.7。从SF的记录来看，最早的版本是今年3月份发布的，上来就是9.1。莫非现在流行大版本号？ 7月11日补充：如果源文件所在目录的路径中包含中文，则会出现很多问题，而且很诡异。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F646.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">reStructuredTEXT输出为LaTeX以及公式的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F899.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]LaTeX技巧503：LaTeX的符号查找技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a href="http://atp-vim.sourceforge.net/requirements.shtml">Automatic (La)TeX Plugin for Vim (atp-vim)</a>是一个新的支持LaTeX的插件。前些天刚发现时，bug还比较多，经常出错，现在的版本好多了。与latexsuite相比，有些新的功能很不错（毕竟06年以后latexsuite就没有更新过），推荐给喜欢LaTeX，VIM，Python的朋友。</p>
<p>完整的特性可以查阅官方的<a href="http://atp-vim.sourceforge.net/features.shtml">Feature List</a>，或者<a href="http://atp-vim.sourceforge.net/automatic-tex-plugin.html">手册</a>。下面几条是我比较喜欢的。</p>
<ul>
<li>正向查找。由vim中光标处直接跳至pdf相应位置处。</li>
<li>反向查找。由pdf跳转至vim相应源代码处。</li>
<li>清理中间文件。这个功能实现起来不难，但是有了总是方便一点，特别是对有洁癖的人。</li>
<li>补全命令也很丰富。</li>
</ul>
<p>总的来说，值得一试。</p>
<p>ps. 目前最新的测试版是9.6.7。从SF的记录来看，最早的版本是今年3月份发布的，上来就是9.1。莫非现在流行大版本号？</p>
<p>7月11日补充：如果源文件所在目录的路径中包含中文，则会出现很多问题，而且很诡异。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F646.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">reStructuredTEXT输出为LaTeX以及公式的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F899.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]LaTeX技巧503：LaTeX的符号查找技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/925.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim高手？请看vimgolf.com</title>
		<link>http://www.ai7.org/wp/html/827.html</link>
		<comments>http://www.ai7.org/wp/html/827.html#comments</comments>
		<pubDate>Thu, 30 Dec 2010 01:41:02 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimgolf]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=827</guid>
		<description><![CDATA[vimgolf是一个在线比试vim技巧的网站。来看看题目有多变态，比如这一题，原文是 1234567891011this line doesn’t have indentation this line is indented with two spaces this one has four this other one has two this one is indented with two spaces this line has a four spaces indentation this line needs six spaces this line needs six spaces too this line is back to four spaces this <a href="http://www.ai7.org/wp/html/827.html"> read more <span class="meta-nav">&#187;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a href="http://vimgolf.com">vimgolf</a>是一个在线比试vim技巧的网站。来看看题目有多变态，比如这一题，原文是</p>
<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">this line doesn’t have indentation<br />
this line <span style="color: #ff7700;font-weight:bold;">is</span> indented <span style="color: #ff7700;font-weight:bold;">with</span> two spaces<br />
this one has four<br />
this other one has two<br />
this one <span style="color: #ff7700;font-weight:bold;">is</span> indented <span style="color: #ff7700;font-weight:bold;">with</span> two spaces<br />
this line has a four spaces indentation<br />
this line needs six spaces<br />
this line needs six spaces too<br />
this line <span style="color: #ff7700;font-weight:bold;">is</span> back to four spaces<br />
this line <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #ff7700;font-weight:bold;">finally</span> indented <span style="color: #ff7700;font-weight:bold;">with</span> two spaces<br />
this final line <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #ff7700;font-weight:bold;">not</span> indented</div></td></tr></tbody></table></div>
<p>要求按每一行中的指定的空格数缩进，也就是格式化成这样：</p>
<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">this line doesn’t have indentation<br />
&nbsp; this line <span style="color: #ff7700;font-weight:bold;">is</span> indented <span style="color: #ff7700;font-weight:bold;">with</span> two spaces<br />
&nbsp; &nbsp; this one has four<br />
&nbsp; this other one has two<br />
&nbsp; this one <span style="color: #ff7700;font-weight:bold;">is</span> indented <span style="color: #ff7700;font-weight:bold;">with</span> two spaces<br />
&nbsp; &nbsp; this line has a four spaces indentation<br />
&nbsp; &nbsp; &nbsp; this line needs six spaces<br />
&nbsp; &nbsp; &nbsp; this line needs six spaces too<br />
&nbsp; &nbsp; this line <span style="color: #ff7700;font-weight:bold;">is</span> back to four spaces<br />
&nbsp; this line <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #ff7700;font-weight:bold;">finally</span> indented <span style="color: #ff7700;font-weight:bold;">with</span> two spaces<br />
this final line <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #ff7700;font-weight:bold;">not</span> indented</div></td></tr></tbody></table></div>
<p>目前已经有三位朋友提交了解答，按键最少的一位只用了25次按键就搞定了。<br />
如果你觉得你是vim高手，去挑战一下吧。</p>
<p>注：要提交结果，好象先要用twitter登录，得到一个数字ID，再用ruby装一个软件。我一直没装上，不知道是什么原因。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/827.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM中的批量编辑（转载）</title>
		<link>http://www.ai7.org/wp/html/821.html</link>
		<comments>http://www.ai7.org/wp/html/821.html#comments</comments>
		<pubDate>Mon, 13 Dec 2010 09:34:13 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=821</guid>
		<description><![CDATA[原文地址：VIM中的批量编辑 VIM 中实现对文件的批量是通过同时打开多个文件实现的，即对 args 的操作。 在命令行下，通过： gvim a.txt b.txt c.txt 就可以打开多个文件，或者在 GVIM 中： :args *.txt 也可以打开多个文件。 之后，可以通过 :ls 或 :args 或 :buffers 来查看当前的 buffers 列表。 现在，要同时处理这些 buffers 中的各个文件，使用 argdo 就可以了。 :argdo %s/teh/the/ge &#124; update argdo 后面跟命令就可以了，它的作用就是把后面的命令应用到 arg list 中的各个文件上。 e 这个 flag 是表示忽略错误，你不希望因为一个意外而让整个处理过程停下来吧。 update 这个命令是当文件发化变化时保存文件，就和 write 一样。这里不用它，难道你想之后手动挨个保存这些文件？<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://zys-free.com/wordpress/?p=221">VIM中的批量编辑</a></p>
<p>VIM 中实现对文件的批量是通过同时打开多个文件实现的，即对 args 的操作。</p>
<p>在命令行下，通过：</p>
<pre> gvim a.txt b.txt c.txt</pre>
<p>就可以打开多个文件，或者在 GVIM 中：</p>
<pre> <span>:</span>args *.txt</pre>
<p>也可以打开多个文件。</p>
<p>之后，可以通过 <tt>:ls</tt> 或 <tt>:args</tt> 或 <tt>:buffers</tt> 来查看当前的 <tt>buffers</tt> 列表。</p>
<p>现在，要同时处理这些 <tt>buffers</tt> 中的各个文件，使用 <tt>argdo</tt> 就可以了。</p>
<pre> <span>:</span><span>argdo</span> %s<span>/teh/</span><span>the</span>/ge <span>|</span> <span>update</span></pre>
<p><tt>argdo</tt> 后面跟命令就可以了，它的作用就是把后面的命令应用到 <tt>arg list</tt> 中的各个文件上。</p>
<p><tt>e</tt> 这个 <tt>flag</tt> 是表示忽略错误，你不希望因为一个意外而让整个处理过程停下来吧。</p>
<p><tt>update</tt> 这个命令是当文件发化变化时保存文件，就和 <tt>write</tt> 一样。这里不用它，难道你想之后手动挨个保存这些文件？</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/821.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM编辑文件实例</title>
		<link>http://www.ai7.org/wp/html/617.html</link>
		<comments>http://www.ai7.org/wp/html/617.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 17:15:33 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=617</guid>
		<description><![CDATA[假设有以下文件 1234567 甲甲大学 张三 李四 王五 2222222 乙乙大学 张三三 李四四 王五五 3333333 丙丙大学 张三四 李四五 王五六 …… 简单讲，每个队的信息被分成了5行，报名号、学校、队员1、队员2、队员3。我们主要的工作是要删除多余的回车符，将每一队的信息集中到一行。 删除多余的空白：“:%s/ //g”； 因为总共是1430行，也就是286个组，这个数记下来，下面要用。 合并每组的5行：在normal模式下，光标停在报名号这一行，直接输入“5J”，注意，是大写的J，也就是shift+j。可以看到，每一组的5行信息已经合并成一行了，并且以空格分隔。其中，5表示执行后面的命令5次，J表示合并两行。这一步是基础，并不需要，按“u”，退回到第2步的状态，并按“gg”，将光标停在第一行。 录制宏：开始录制以a为名字的宏，“qa”，之后依次按下面的键，“5Jjq”，其中5J的作用已经解释了，j跳到第二行，q结束录制宏。 这时候你的光标应该在第二行，并且是normal模式，依次按下面的键，“285@a”，其中@就是shift+2，@a的意思是执行宏a，也就是执行@a共285次。这时，每组的信息已经集中到一行了。 其实我们的任务基本上已经完成了，下面是先转成csv格式，再导入Excel，还是直接转成html表格，都是很容易的事情了。下面的命令就不再解释了。 :%s/ /&#60;\td&#62;&#60;td&#62;/g :%s/^/&#60;tr&#62;&#60;td&#62;/g :%s/$/&#60;\/td&#62;&#60;\/tr&#62;/g 文件最前面加上&#60;html&#62;&#60;body&#62;&#60;table&#62;，文件最后面加上&#60;/table&#62;&#60;/body&#62;&#60;/html&#62;，大功告成。（表格加线，加标题这些自己看着办吧） btw： 当你不了解一种工具（特别是像VIM这种强悍的工具）时，你可能根本想不到活儿还可以这么干，而且干的这么漂亮。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>假设有以下文件</p>
<p>1234567<br />
甲甲大学<br />
张三<br />
李四<br />
王五<br />
2222222<br />
乙乙大学<br />
张三三<br />
李四四<br />
王五五<br />
3333333<br />
丙丙大学<br />
张三四<br />
李四五<br />
王五六<br />
……</p>
<p>简单讲，每个队的信息被分成了5行，报名号、学校、队员1、队员2、队员3。我们主要的工作是要删除多余的回车符，将每一队的信息集中到一行。</p>
<ol>
<li>删除多余的空白：“:%s/ //g”；</li>
<li>因为总共是1430行，也就是286个组，这个数记下来，下面要用。</li>
<li>合并每组的5行：在normal模式下，光标停在报名号这一行，直接输入“5J”，注意，是大写的J，也就是shift+j。可以看到，每一组的5行信息已经合并成一行了，并且以空格分隔。其中，5表示执行后面的命令5次，J表示合并两行。这一步是基础，并不需要，按“u”，退回到第2步的状态，并按“gg”，将光标停在第一行。</li>
<li>录制宏：开始录制以a为名字的宏，“qa”，之后依次按下面的键，“5Jjq”，其中5J的作用已经解释了，j跳到第二行，q结束录制宏。</li>
<li>这时候你的光标应该在第二行，并且是normal模式，依次按下面的键，“285@a”，其中@就是shift+2，@a的意思是执行宏a，也就是执行@a共285次。这时，每组的信息已经集中到一行了。</li>
<li>其实我们的任务基本上已经完成了，下面是先转成csv格式，再导入Excel，还是直接转成html表格，都是很容易的事情了。下面的命令就不再解释了。</li>
<li>:%s/ /&lt;\td&gt;&lt;td&gt;/g</li>
<li>:%s/^/&lt;tr&gt;&lt;td&gt;/g</li>
<li>:%s/$/&lt;\/td&gt;&lt;\/tr&gt;/g</li>
<li>文件最前面加上&lt;html&gt;&lt;body&gt;&lt;table&gt;，文件最后面加上&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;，大功告成。（表格加线，加标题这些自己看着办吧）</li>
</ol>
<p>btw：</p>
<p>当你不了解一种工具（特别是像VIM这种强悍的工具）时，你可能根本想不到活儿还可以这么干，而且干的这么漂亮。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/617.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM快捷键：J</title>
		<link>http://www.ai7.org/wp/html/592.html</link>
		<comments>http://www.ai7.org/wp/html/592.html#comments</comments>
		<pubDate>Sat, 14 Nov 2009 13:31:53 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=592</guid>
		<description><![CDATA[Normal模式下按J，可将下一行合并到当前行最后。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Normal模式下按J，可将下一行合并到当前行最后。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/592.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>几个值得深入学习的工具</title>
		<link>http://www.ai7.org/wp/html/571.html</link>
		<comments>http://www.ai7.org/wp/html/571.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 14:22:09 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[正则表达式]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/571.html</guid>
		<description><![CDATA[正则表达式 VIM LaTeX Python Linux<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F899.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]LaTeX技巧503：LaTeX的符号查找技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<ol>
<li>正则表达式</li>
<li>VIM</li>
<li>LaTeX</li>
<li>Python</li>
<li>Linux</li>
</ol>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=8f2737d1-bda7-8133-ba26-4d050d98b32a" /></div>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F925.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个新的支持latex的vim插件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F899.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F571.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]LaTeX技巧503：LaTeX的符号查找技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/571.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VIM 技巧汇总（置顶）</title>
		<link>http://www.ai7.org/wp/html/177.html</link>
		<comments>http://www.ai7.org/wp/html/177.html#comments</comments>
		<pubDate>Wed, 21 Feb 2007 13:04:03 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=177</guid>
		<description><![CDATA[Vim是用出来的。 07年02年21日： 跳转至指定行号：命令模式，123gg，跳转至123行。（2010-2-15: 或者:123） 从当前行向下移动指定行数：命令模式，10回车，从当前行向下移10行。 07年03年5日： 复制当前行：yy 复制当前行开始的3行：3yy 粘贴：p 在当前行替换：:s/原文/替换文本 全局替换：:%s/原文/替换文本 在指定的范围内替换：:100,123s/原文/替换文本 07年3月15日（未知的，但是想用的）： 在行首、行尾添加指定字符串、序号等（PSPad的功能）：:%s/^/text /g（在行首添加“text ”）；:%s/$/ text/g（在行尾添加“ te从当前行以下10行按字母顺序排序：:.,+10!sortxt”）（070328） 删除行间冗余空格（PSPad的功能）：等待高人 删除冗余空行（PSPad的功能）：等待高人 行排序，并删除重复的行（UltraEdit的功能）：等待高人:sort u 列模式下多行插入（UltraEdit的功能）：等待高人 07年3月28日： 将指定字符替换为回车：:%s/;/\r/g 将一列变为两列：:1,$ s/.*/&#38; &#38;/g 07年3月30日： 匹配各种括号（C，C++源程序中，还可以匹配几种成对的语句）：在normal模式下% 07年4月24日： 按字符选择：normal模式下，v 按行选择：normal模式下，V 07年7月27日： 行排序：:sort 从当前行以下10行按字母顺序排序：:.,+10!sort 10年12月1日： 行排序并且删除重复的行：:sort u 删除所有包含yourflagword的行：:g/yourflagword/d 两行合并为一行，并以空格分开：normal模式下，按J 两行合并为一行，不要空，紧挨着：normal模式下，按gJ 多行合并为一行：normal模式下，先选中，再按J或gJ（两者的区别同上） 11年1月18日： 只保留包含yourflagword的行，而删除其他行：:v/yourflagword/d 11年2月27日： 改为小写：gu 改为大写：gU 大小写互换：~ 11年7月17日： 设置保存文件编码：:set fenc=utf-8，将以utf-8格式保存文件<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span id="more-177"></span><br />
Vim是用出来的。</p>
<p>07年02年21日：</p>
<ul>
<li>跳转至指定行号：命令模式，123gg，跳转至123行。（2010-2-15: 或者:123）</li>
<li>从当前行向下移动指定行数：命令模式，10回车，从当前行向下移10行。</li>
</ul>
<p>07年03年5日：</p>
<ul>
<li>复制当前行：yy</li>
<li>复制当前行开始的3行：3yy</li>
<li>粘贴：p</li>
<li>在当前行替换：:s/原文/替换文本</li>
<li>全局替换：:%s/原文/替换文本</li>
<li>在指定的范围内替换：:100,123s/原文/替换文本</li>
</ul>
<p>07年3月15日（未知的，但是想用的）：</p>
<ul>
<li>在行首、行尾添加指定字符串、序号等（PSPad的功能）：:%s/^/text /g（在行首添加“text ”）；:%s/$/ text/g（在行尾添加“ te从当前行以下10行按字母顺序排序：:.,+10!sortxt”）（070328）</li>
<li>删除行间冗余空格（PSPad的功能）：等待高人</li>
<li>删除冗余空行（PSPad的功能）：等待高人</li>
<li>行排序，并删除重复的行（UltraEdit的功能）：<del datetime="2010-05-13T16:18:28+00:00">等待高人</del>:sort u</li>
<li>列模式下多行插入（UltraEdit的功能）：等待高人</li>
</ul>
<p>07年3月28日：</p>
<ul>
<li>将指定字符替换为回车：:%s/;/\r/g</li>
<li>将一列变为两列：:1,$ s/.*/&amp; &amp;/g</li>
</ul>
<p>07年3月30日：</p>
<ul>
<li>匹配各种括号（C，C++源程序中，还可以匹配几种成对的语句）：在normal模式下%</li>
</ul>
<p>07年4月24日：</p>
<ul>
<li>按字符选择：normal模式下，v</li>
<li>按行选择：normal模式下，V</li>
</ul>
<p>07年7月27日：</p>
<ul>
<li>行排序：:sort</li>
<li>从当前行以下10行按字母顺序排序：:.,+10!sort</li>
</ul>
<p>10年12月1日：</p>
<ul>
<li>行排序并且删除重复的行：:sort u</li>
<li>删除所有包含yourflagword的行：:g/yourflagword/d</li>
<li>两行合并为一行，并以空格分开：normal模式下，按J</li>
<li>两行合并为一行，不要空，紧挨着：normal模式下，按gJ</li>
<li>多行合并为一行：normal模式下，先选中，再按J或gJ（两者的区别同上）</li>
</ul>
<p>11年1月18日：</p>
<ul>
<li>只保留包含yourflagword的行，而删除其他行：:v/yourflagword/d</li>
</ul>
<p>11年2月27日：</p>
<ul>
<li>改为小写：gu</li>
<li>改为大写：gU</li>
<li>大小写互换：~</li>
</ul>
<p>11年7月17日：</p>
<ul>
<li>设置保存文件编码：:set fenc=utf-8，将以utf-8格式保存文件</li>
</ul>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F592.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM快捷键：J</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F617.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM编辑文件实例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F821.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIM中的批量编辑（转载）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F827.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F177.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vim高手？请看vimgolf.com</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/177.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

