<?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>某人的栖息地 &#187; vim</title>
	<atom:link href="http://www.ooso.net/tag/vim/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Thu, 19 Jan 2012 01:21:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>使用markdown格式写Todo list</title>
		<link>http://www.ooso.net/archives/615</link>
		<comments>http://www.ooso.net/archives/615#comments</comments>
		<pubDate>Mon, 26 Dec 2011 03:10:42 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=615</guid>
		<description><![CDATA[上周我完成了chrome的markdown-preview扩展的修改，使它支持markdown文件的实时预览功能。现在可以考虑用这个功能来做一些更酷的事情，比如说，写Todo list?
开始干

首先我找到了一个叫topmarks的markdown样式文件，这个样式文件能给出一个漂亮的Todo list样式，我把它合并到了 修改后的markdown preview插件

				<span class="readmore"><a href="http://www.ooso.net/archives/615" title="使用markdown格式写Todo list">阅读全文（436字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>上周我完成了<a href="http://www.ooso.net/archives/611">chrome的markdown-preview扩展的修改</a>，使它支持markdown文件的实时预览功能。现在可以考虑用这个功能来做一些更酷的事情，比如说，写Todo list?</p>
<h3>开始干</h3>
<ul>
<li>首先我找到了一个叫<a href="https://github.com/stuart36deg/TopMarks">topmarks的markdown样式文件</a>，这个样式文件能给出一个漂亮的Todo list样式，我把它合并到了 <a href="https://github.com/volca/markdown-preview">修改后的markdown preview插件</a></li>
<li>关注了一下markdown-preview原作者的github，他有计划增加一项功能，让用户可以自定义css文件，但是近期完成无望，所以我新增了一个topmarks的分支，采用新的样式</li>
<li>在chrome的扩展中重新加载插件</li>
</ul>
<h3>效果图</h3>
<p>如图，我采用vim编辑文件，右边摆上chrome浏览器预览，文件采用dropbox同步，保证我随时能更新这个文件。</p>
<p><img src="http://ww1.sinaimg.cn/large/72f2af1bgw1dofto6t2hfj.jpg" alt="效果图" /></p>
<h3>关于topmarks的补充说明</h3>
<p>topmarks样式采用了这些自定义标签</p>
<ul>
<li>&lt;t&gt; 新任务</li>
<li>&lt;d&gt; 已完成的任务</li>
<li>&lt;c&gt; 已取消的任务</li>
<li>http, ical, mailto, file链接有不同的图标</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/615/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>markdown文件的编辑以及实时预览</title>
		<link>http://www.ooso.net/archives/611</link>
		<comments>http://www.ooso.net/archives/611#comments</comments>
		<pubDate>Thu, 22 Dec 2011 08:54:20 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=611</guid>
		<description><![CDATA[之前看到有一款叫Mou的软件可以编辑markdown格式的文本内容并且实时预览，可是我比较喜欢用vim编辑器，所以就想着能不能用别的软件配合着来实现实时预览。
今天看到一个chrome的扩展叫markdown preview，它可以自动把md或markdown后缀的文本转换为html格式在chrome中查看，只是还欠缺一个自动刷新的功能。然后我看到它的源码已经放在github上，于是抓回来做了一些修改，加上了自动刷新的功能。
演示
尝试了一下在vim中编辑文件，然后在chrome中浏览，效果还不错，见下图：

				<span class="readmore"><a href="http://www.ooso.net/archives/611" title="markdown文件的编辑以及实时预览">阅读全文（645字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>之前看到有一款叫Mou的软件可以编辑markdown格式的文本内容并且实时预览，可是我比较喜欢用vim编辑器，所以就想着能不能用别的软件配合着来实现实时预览。</p>
<p>今天看到一个chrome的扩展叫<a href="https://chrome.google.com/webstore/detail/jmchmkecamhbiokiopfpnfgbidieafmd">markdown preview</a>，它可以自动把md或markdown后缀的文本转换为html格式在chrome中查看，只是还欠缺一个自动刷新的功能。然后我看到它的源码已经放在github上，于是抓回来做了一些修改，加上了自动刷新的功能。</p>
<h2>演示</h2>
<p>尝试了一下在vim中编辑文件，然后在chrome中浏览，效果还不错，见下图：</p>
<p><img src="http://ww1.sinaimg.cn/large/72f2af1bgw1dobg6hnkn0j.jpg" alt="效果图" /></p>
<h2>更改后的扩展</h2>
<p>我把修改后的markdown preview插件放在<a href="https://github.com/volca/markdown-preview">github上</a> ， 已经尝试向原作者发起pull requests，要试用的话需要按下面几步操作:</p>
<ol>
<li>把插件的代码clone回来 <code>git clone git://github.com/volca/markdown-preview.git</code></li>
<li>开启chrome扩展的开发者模式，具体位置在<strong>窗口 -> 扩展程序</strong>里</li>
<li>载入正在开发的扩展程序</li>
<li>将<strong>允许访问文件网址</strong>勾选上</li>
</ol>
<p>然后你就可以尝试用chrome浏览器打开markdown文件预览html，采用趁手的编辑器去修改它。</p>
<h2>BTW</h2>
<ul>
<li>chrome下的插件写起来比想像的要简单，写javascript就是了</li>
<li>现在这篇blog即是我用markdown格式写成的，用到了wordpress的<strong>markdown on save</strong>扩展。</li>
</ul>
<h2>Update</h2>
<ul>
<li>测试把文件放在dropbox的Public下，修改之后的效果能够立刻在共享链接里看到效果，很完美</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/611/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>php文档更新</title>
		<link>http://www.ooso.net/archives/548</link>
		<comments>http://www.ooso.net/archives/548#comments</comments>
		<pubDate>Sun, 26 Jun 2011 09:18:31 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=548</guid>
		<description><![CDATA[php.net最近更新了php文档，比较有用的是新增的pman工具。pman是一个命令行小工具，方便查看php函数的本地帮助文档，但是不包含php.net的评论数据。简单的试用心得如下:
安装pman
使用传说中的pear来安装pman
sudo pear install doc.php.net/pman

				<span class="readmore"><a href="http://www.ooso.net/archives/548" title="php文档更新">阅读全文（1075字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>php.net最近更新了<a href="/tag/php">php</a>文档，比较有用的是新增的pman工具。pman是一个命令行小工具，方便查看php函数的本地帮助文档，但是不包含php.net的评论数据。简单的试用心得如下:</p>
<h2>安装pman</h2>
<p>使用传说中的pear来安装pman</p>
<pre><code>sudo pear install doc.php.net/pman</code></pre>
<p>如果pear版本比较老，需要先升级pear才可以继续</p>
<pre><code>sudo pear upgrade pear</code></pre>
<h2>pman使用方法</h2>
<p>pman的使用方法很傻瓜，比如我们想查看strlen的帮助信息:</p>
<pre><code>pman strlen</code></pre>
<p>帮助文本的内容是彩色的，能和chm版本的php帮助文档媲美。pman的详细使用帮助如下</p>
<pre><code>#pman --help
man, version 1.6c

usage: man [-adfhktwW] [section] [-M path] [-P pager] [-S list]
	[-m system] [-p string] name ...

  a : find all matching entries
  c : do not use cat file
  d : print gobs of debugging information
  D : as for -d, but also display the pages
  f : same as whatis(1)
  h : print this help message
  k : same as apropos(1)
  K : search for a string in all pages
  t : use troff to format pages for printing
  w : print location of man page(s) that would be displayed
      (if no name given: print directories that would be searched)
  W : as for -w, but display filenames only

  C file   : use `file' as configuration file
  M path   : set search path for manual pages to `path'
  P pager  : use program `pager' to display pages
  S list   : colon separated section list
  m system : search for alternate system's man pages
  p string : string tells which preprocessors to run
               e - [n]eqn(1)   p - pic(1)    t - tbl(1)
               g - grap(1)     r - refer(1)  v - vgrind(1)</code></pre>
<p>还有一个好处是在vim里查看php帮助信息更方便了，结合完美</p>
<pre><code>:!pman strlen</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/548/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>用gvim编辑firefox的文本框内容</title>
		<link>http://www.ooso.net/archives/432</link>
		<comments>http://www.ooso.net/archives/432#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:28:08 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimperator]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=432</guid>
		<description><![CDATA[到目前为止，已经使用近两年vim，渐渐的对这玩意有一些依赖性。
平常用的是firefox浏览器，为了看上去比较酷或者在装A和装C之间徘徊，我又安装了vimperator插件，这样操作firefox就像用vim一样，干啥都得敲一些键盘命令，浏览网页的时候对鼠标不会太依赖，还可以方便的调整本本的位置比如放在腿上。
为了最大化的利用vim，我不厌其烦的在狗狗上爬来爬去，终于学到一招实用技巧——利用gvim编辑网页中的文本内容。简单的说，只要光标停留在目标网页的文本框里，就可以使用ctrl + i （&#60;C + i&#62;）快捷键biu的一下呼出gvim编辑文本。

				<span class="readmore"><a href="http://www.ooso.net/archives/432" title="用gvim编辑firefox的文本框内容">阅读全文（1091字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>到目前为止，已经使用近两年vim，渐渐的对这玩意有一些依赖性。</p>
<p>平常用的是firefox浏览器，为了看上去比较酷或者在装A和装C之间徘徊，我又安装了<a href="http://vimperator.mozdev.org">vimperator插件</a>，这样操作firefox就像用vim一样，干啥都得敲一些键盘命令，浏览网页的时候对鼠标不会太依赖，还可以方便的调整本本的位置比如放在腿上。</p>
<p>为了最大化的利用<a href="/?tag=vim">vim</a>，我不厌其烦的在狗狗上爬来爬去，终于学到一招实用技巧——利用gvim编辑网页中的文本内容。简单的说，只要光标停留在目标网页的文本框里，就可以使用ctrl + i （&lt;C + i&gt;）快捷键biu的一下呼出gvim编辑文本。</p>
<h2>设置过程笔记</h2>
<ul>
<li>安装vimperator插件</li>
<li>在firefox里输入伪vim命令
<pre><code>:set editor=gvim -f</code></pre>
</li>
<li>在系统的path环境变量中加入gvim.exe的路径，比如俺的是 <i>D:\Program Files\Vim\vim72</i>，很可能要重启电脑才能生效</li>
</ul>
<p>顺利的话就可以使用前文说到的快捷键了。</p>
<h2>优点</h2>
<ul>
<li>切换页面的时候，不会因为编辑焦点区域丢失导致保存内容失败</li>
<li>论坛中灌水的时候效率明显提升</li>
<li>写wiki或blog的时候得心应手</li>
</ul>
<h2>缺点</h2>
<ul>
<li>对vim的依赖程度会越来越高，不可自拔</li>
</ul>
<h2>本人的_vimperatorrc配置</h2>
<pre><code>autocmd LocationChange .* :js modes.passAllKeys = /mail\.google\.com/.test(buffer.URL) || /google\.com\/reader\//.test(buffer.URL)
set complete=sfl
set titlestring=hello
set wildoptions=auto

noremap &lt;C-V&gt; &lt;C-v&gt;
noremap &lt;C-Z&gt; &lt;C-z&gt;
noremap &lt;C-c&gt; &lt;C-v&gt;&lt;C-c&gt;
noremap &lt;C-a&gt; &lt;C-v&gt;&lt;C-a&gt;
cnoremap &lt;C-c&gt; &lt;C-v&gt;&lt;C-c&gt;
cnoremap &lt;C-v&gt; &lt;C-v&gt;&lt;C-v&gt;
cnoremap &lt;C-x&gt; &lt;C-v&gt;&lt;C-x&gt;
inoremap &lt;C-a&gt; &lt;C-v&gt;&lt;C-a&gt;
inoremap &lt;C-c&gt; &lt;C-v&gt;&lt;C-c&gt;
inoremap &lt;C-v&gt; &lt;C-v&gt;&lt;C-v&gt;
inoremap &lt;C-x&gt; &lt;C-v&gt;&lt;C-x&gt;
inoremap &lt;C-z&gt; &lt;C-v&gt;&lt;C-z&gt;
inoremap &lt;C-y&gt; &lt;C-v&gt;&lt;C-y&gt;

:style -name commandline-ime chrome://* #liberator-commandline-command input {ime-mode: inactive;}

set nextpattern=\s*下一页|下一张|下一篇|下一頁|下页|后页\s*,^\bnext\b,\bnext\b,\bsuivant\b,^&gt;$,^(&gt;&gt;|››|»)$,^(&gt;|»),(&gt;|»)$,\bmore\b
set previouspattern=\s*上一页|上一张|上一篇|上一頁|上页|前页\s*,^\bprev|previous\b, \bprev|previous\b,\bprécédent\b,^&lt;$,^(&lt;&lt;|‹‹|«)$,^(&lt;|«),(&lt;|«)$</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/432/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>bom头的影响</title>
		<link>http://www.ooso.net/archives/378</link>
		<comments>http://www.ooso.net/archives/378#comments</comments>
		<pubDate>Thu, 28 Feb 2008 12:16:30 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/378</guid>
		<description><![CDATA[前阵子有同事写了一段代码，在setcookie的时候出现下面错误。
Cannot modify header information &#8211; headers already sent by &#8230;.
这个错误非常之常见，如果在setcookie之前输出了任何文本内容，便会有上述错误提示。由于页面头部require了若干文件，一行行排查是很麻烦的事情，因此，我在页面顶部加上：
ob_start();

				<span class="readmore"><a href="http://www.ooso.net/archives/378" title="bom头的影响">阅读全文（410字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>前阵子有同事写了一段代码，在setcookie的时候出现下面错误。</p>
<blockquote><p>Cannot modify header information &#8211; headers already sent by &#8230;.</p></blockquote>
<p>这个错误非常之常见，如果在setcookie之前输出了任何文本内容，便会有上述错误提示。由于页面头部require了若干文件，一行行排查是很麻烦的事情，因此，我在页面顶部加上：</p>
<pre><code>ob_start();</code></pre>
<p>在setcookie之前加上代码：</p>
<pre><code>ob_get_clean();</code></pre>
<p>这是为了获取setcookie之前页面输出的内容。页面运行后，显示输出了一个空字符串，也就是说，setcookie之前没有任何输出。</p>
<p>继而用vim打开了源文件，发觉<a href="/index.php?tag=vim">vim</a>有打开bomb选项，怀疑因此给代码添加了隐藏的字符串，关闭之：</p>
<blockquote><p>set nobomb</p></blockquote>
<p>问题解决。</p>
<h3>BOM是什么意思?</h3>
<p>BOM是“Byte Order Mark”的缩写，用于标记文件的编码。并不是所有的文本编辑工具都能识别BOM标记</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/378/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用vim来写wordpress</title>
		<link>http://www.ooso.net/archives/278</link>
		<comments>http://www.ooso.net/archives/278#comments</comments>
		<pubDate>Mon, 21 Jan 2008 01:00:27 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/278</guid>
		<description><![CDATA[用vim习惯了之后，用别的编辑器写长一点的文本都没法适应，写wordpress更是如此。为此我郁闷了很长一段时间，直到前不久找到了一个新的宝贝 &#8212;- vimpress。这个东东可不是什么新的软件，它只不过是vim的一个plugin罢了。
只要装好vimpress，你就可以用它来列出或者发布blog。
目前这个插件有如下功能


				<span class="readmore"><a href="http://www.ooso.net/archives/278" title="用vim来写wordpress">阅读全文（552字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>用vim习惯了之后，用别的编辑器写长一点的文本都没法适应，写wordpress更是如此。为此我郁闷了很长一段时间，直到前不久找到了一个新的宝贝 &#8212;- <a href="http://www.vim.org/scripts/script.php?script_id=1953">vimpress</a>。这个东东可不是什么新的软件，它只不过是vim的一个<a href="/index.php?tag=plugin">plugin</a>罢了。</p>
<p>只要装好vimpress，你就可以用它来列出或者发布blog。</p>
<h2>目前这个插件有如下功能</h2>
<ul>
<li>获得文章列表</li>
<li>写新文章</li>
<li>编辑文章</li>
<li>现场保存 (yeah, no kidding)</li>
<li>支持分类</li>
<li>支持标签</li>
</ul>
<h2>vim命令清单</h2>
<ul>
<li> “:BlogList”<br />
      列出blog里的文章</li>
<li>
“:BlogNew”<br />
      写新文章</li>
<li>“:BlogOpen id”<br />
      打开一篇现有的文章进行编辑</li>
<li>“:BlogSend”<br />
      保存并发布文章</li>
</ul>
<h2>安装过程</h2>
<ul>
<li>将解压之后plugin和syntax目录复制到vimfiles目录下</li>
<li>修改plugin下的blog.vim进行配置，需要配置username,password以及xmlrpc.php的url</li>
<li>如果需要支持tag,可以设置enable_tags=1。</li>
<li>如果需要支持UTW tags,需要<a href="http://blog.circlesixdesign.com/download/utw-rpc-autotag/">另外下载一个vim插件utw-rpc-autotag</a></li>
</ul>
<p><a href="http://www.friggeri.net/projets/vimpress/">vimpress的主页</a></p>
<h2>发现的bug</h2>
<ul>
<li>如果标题中包含:号，那么:以后的字符会被截断</li>
<li>如果试图对草稿进行修改，那么发布后的博客没设定发布日期</li>
</ul>
<p>BTW:现在这篇blog就是我使用vimpress完成的:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/278/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>很爽的vim motion操作</title>
		<link>http://www.ooso.net/archives/336</link>
		<comments>http://www.ooso.net/archives/336#comments</comments>
		<pubDate>Fri, 22 Jun 2007 04:51:44 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/336</guid>
		<description><![CDATA[在“一组能让你爽出内伤的 Vim motion”里头看到一组这样的vim操作：
    * ci[ 删除一对 [] 中的所有字符并进入插入模式
    * ci( 删除一对 () 中的所有字符并进入插入模式
    * ci< 删除一对  中的所有字符并进入插入模式

				<span class="readmore"><a href="http://www.ooso.net/archives/336" title="很爽的vim motion操作">阅读全文（435字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在“<a href="http://www.rainux.org/2007/03/27/149">一组能让你爽出内伤的 Vim motion</a>”里头看到一组这样的<a href="index.php?tag=vim">vim</a>操作：</p>
<blockquote><p>    * ci[ 删除一对 [] 中的所有字符并进入插入模式<br />
    * ci( 删除一对 () 中的所有字符并进入插入模式<br />
    * ci< 删除一对 <> 中的所有字符并进入插入模式<br />
    * ci{ 删除一对 {} 中的所有字符并进入插入模式<br />
    * cit 删除一对 HTML/XML 的标签内部的所有字符并进入插入模式<br />
    * ci&#8221; ci&#8217; ci` 删除一对引号字符 (&#8221; 或 &#8216; 或 `) 中所有字符并进入插入模式</p></blockquote>
<p>使用了之后，用vim写php/html感觉效率高了很多。从上面的操作中进一步演化，还能有些实用的组合：</p>
<blockquote><p>    * vi[ 选择一对 [] 中的所有字符<br />
    * vi( 选择一对 () 中的所有字符<br />
    * vi< 选择一对 <> 中的所有字符<br />
    * vi{ 选择一对 {} 中的所有字符<br />
    * vit 选择一对 HTML/XML 的标签内部的所有字符<br />
    * vi&#8221; vi&#8217; vi` 选择一对引号字符 (&#8221; 或 &#8216; 或 `) 中所有字符</p></blockquote>
<p>如果在选择之后，再用zf组合把它们缩成一行(folder)，啊，大量的html就很好伺候了～～还有大段的php function，不在话下。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/336/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>vim 7.1跳出来了</title>
		<link>http://www.ooso.net/archives/292</link>
		<comments>http://www.ooso.net/archives/292#comments</comments>
		<pubDate>Sun, 13 May 2007 04:28:18 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/292</guid>
		<description><![CDATA[vim 7.1发布啦~~ 这个时候距上次vim 7.0的发布相隔了一年之久。这个版本有啥变化？还是老一套：
输入下面命令就知道了：
&#8220;:help version-7.1&#8243;.
Changes since 7.1a:

				<span class="readmore"><a href="http://www.ooso.net/archives/292" title="vim 7.1跳出来了">阅读全文（475字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ooso.net/index.php/archives/category/vim/">vim</a> 7.1发布啦~~ 这个时候距上次<a href="http://www.vim.org">vim</a> 7.0的发布相隔了一年之久。这个版本有啥变化？还是老一套：</p>
<p>输入下面命令就知道了：</p>
<blockquote><p>&#8220;:help version-7.1&#8243;.</p></blockquote>
<p>Changes since 7.1a:</p>
<blockquote><p>- Lots of spelling mistakes fixed.<br />
- Several runtime files updated.  Somehow people tend to send me updates<br />
  _after_ doing a release&#8230;<br />
- Bug in downloading a missing spell file fixed.  Could wipe out a<br />
  buffer with your text when downloading failed.<br />
- Building with MingW fixed (and now Win32s version also builds).<br />
- Editing compressed files didn&#8217;t work when folding enabled.</p></blockquote>
<p>更新的详细内容:<br />
<a href="http://tech.groups.yahoo.com/group/vimannounce/message/178" rel="nofollow">http://tech.groups.yahoo.com/group/vimannounce/message/178</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/292/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用vim查看ie的html源文件</title>
		<link>http://www.ooso.net/archives/206</link>
		<comments>http://www.ooso.net/archives/206#comments</comments>
		<pubDate>Fri, 28 Jul 2006 23:18:42 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[editplus]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/206</guid>
		<description><![CDATA[记得editplus有一个功能可以设置为ie浏览器的默认html源文件查看工具，这样查看源文件的时候是花花绿绿的有语法加亮的，对我这样眼神不太好的人说很方便。
vim也可以成为ie的默认源文件查看工具么
搜索的结果是，完全没问题，只要修改注册表就能解决问题
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]

				<span class="readmore"><a href="http://www.ooso.net/archives/206" title="用vim查看ie的html源文件">阅读全文（352字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>记得<a href="http://www.ooso.net/index.php/archives/category/editplus/">editplus</a>有一个功能可以设置为ie浏览器的默认html源文件查看工具，这样查看源文件的时候是花花绿绿的有语法加亮的，对我这样眼神不太好的人说很方便。</p>
<h3><a href="http://www.ooso.net/index.php/archives/category/vim/">vim</a>也可以成为ie的默认源文件查看工具么</h3>
<p>搜索的结果是，完全没问题，只要修改注册表就能解决问题</p>
<pre><code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]
@="C:\\vim\\vim60\\gvim.exe"</code></pre>
<p>见上面的注册表项，其中View Source Editor这一项，在某些机器上可能没有，手工添加就可以了。“C:\\vim\\vim60\\gvim.exe”这是你的gvim的真实安装路径。</p>
<p>BTW:我的环境是winxp + vim 7.0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim的php语法检查</title>
		<link>http://www.ooso.net/archives/197</link>
		<comments>http://www.ooso.net/archives/197#comments</comments>
		<pubDate>Fri, 14 Jul 2006 23:23:11 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[editplus]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/197</guid>
		<description><![CDATA[之前一直是editplus的忠实爱好者,对editplus的使用也是小有心得.自打转向到vim之后,费了很大劲才转换一些习惯,渐渐的脱离了editplus,可见一款趁手的编辑器还是粘性很强的.以前说到的editplus可以和zend studio自带的ZendCodeAnalyzer工具进行整合对php语法进行检测,相当方便.那么怎样用vim实现类似的功能呢?一番搜索,找到了答案:
map &#60;C-J&#62; :!php -l %&#60;CR&#62;
这样在vim里面就可以直接用ctrl+j,调用php解析器对当前文档进行语法检查了.当然如果php解析器不在你的路径下的话,那么应该写上全路径,象下面这样:

				<span class="readmore"><a href="http://www.ooso.net/archives/197" title="vim的php语法检查">阅读全文（453字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>之前一直是<a href="/?tag=editplus">editplus</a>的忠实爱好者,对editplus的使用也是小有心得.自打转向到vim之后,费了很大劲才转换一些习惯,渐渐的脱离了editplus,可见一款趁手的编辑器还是粘性很强的.以前说到的editplus可以和zend studio自带的ZendCodeAnalyzer工具进行整合对php语法进行检测,相当方便.那么怎样用vim实现类似的功能呢?一番搜索,找到了答案:</p>
<pre><code>map &lt;C-J&gt; :!php -l %&lt;CR&gt;</code></pre>
<p>这样在vim里面就可以直接用ctrl+j,调用php解析器对当前文档进行语法检查了.当然如果php解析器不在你的路径下的话,那么应该写上全路径,象下面这样:</p>
<pre><code>map &lt;C-J&gt; :!c:/php/php -l %&lt;CR&gt;</code></pre>
<p>PS:vim的语法美化功能也很方便,只要在程序的第一行,command模式下输入<strong>=:1,$</strong>,就可以把当前代码排列的井然有序.而editplus则需要另外的工具配合,也能做到这一点.</p>
<p>参考资料:<a href="http://www.vim.org/tips/tip.php?tip_id=692">http://www.vim.org/tips/tip.php?tip_id=692</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/197/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>vim的的代码折叠</title>
		<link>http://www.ooso.net/archives/183</link>
		<comments>http://www.ooso.net/archives/183#comments</comments>
		<pubDate>Tue, 23 May 2006 13:00:42 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/183</guid>
		<description><![CDATA[vim也是有代码折叠功能的，以前就知道，然而毕竟用的不多，这个功能基本上很少用。随着最近和gvim的亲密接触，对代码折叠功能逐渐熟悉起来。有一次打开一段php的代码 &#8212; 比如PEAR.php,发现里面的代码自动被折叠了，将代码展开后，可以看到只要代码两边有/*{{{*/和/*}}}*/，就会被自动折叠。仔细搜索配置，其中有一句是重点：
foldmethod=marker
这样vim就会自动搜索代码，将{{{和}}}之间的内容折叠起来，而且代码结尾有一段小注释也不是无用的废料：
/* vim600: sw=4 ts=4 fdm=marker syn=php

				<span class="readmore"><a href="http://www.ooso.net/archives/183" title="vim的的代码折叠">阅读全文（1133字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>vim也是有代码折叠功能的，以前就知道，然而毕竟用的不多，这个功能基本上很少用。随着最近和gvim的亲密接触，对代码折叠功能逐渐熟悉起来。有一次打开一段php的代码 &#8212; 比如<a href="http://pear.php.net">PEAR.php</a>,发现里面的代码自动被折叠了，将代码展开后，可以看到只要代码两边有/*{{{*/和/*}}}*/，就会被自动折叠。仔细搜索配置，其中有一句是重点：</p>
<p><strong>foldmethod=marker</strong></p>
<p>这样vim就会自动搜索代码，将{{{和}}}之间的内容折叠起来，而且代码结尾有一段小注释也不是无用的废料：</p>
<pre><code>/* vim600: sw=4 ts=4 fdm=marker syn=php
*/</code></pre>
<p>这段注释会被vim读取，并自动设置到环境变量里面。</p>
<p>关于代码折叠的用法，只要在vim中输入：<br />
:help zo<br />
就可以看到了不少相关的快捷键，需要一定的练习才可以得心应手:)</p>
<p>我的gvim配置内容又增加了：</p>
<pre><code>colo zellner
set guifont=Courier_New:h11:cANSI nobackup tabstop=4 shiftwidth=4 foldmethod=marker
au BufRead * simalt ~x
set langmenu=zh_CN.utf-8
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
set guifont=DejaVu\ Sans\ Mono:h12
source $VIMRUNTIME/../_vimrc
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
language messages zh_CN.utf-8
set helplang=cn
set iskeyword+=</code></pre>
<p>我的.vimrc</p>
<pre><code>set hlsearch ic ai wildmenu fileencodings=utf-8,gbk cindent tabstop=4 shiftwidth=4 foldmethod=marker nocompatible nopaste pastetoggle= &lt;f11&gt;
syn on</code></pre>
<p>pastetoggle=<f11>粘贴模式切换可以避免自动缩进的带来的格式影响</p>
<ul>
一点 vim相关小发现:</p>
<li><a href="http://www.google.com/reader/">google reader</a>的上一篇，下一篇快捷键分别是j,k,和vim的光标移动键一致，不知道是巧合还是有意为之，如果是后者，那么google reader的开发者想必也是vim的粉丝:)</li>
<li>使用firefox查看网页源代码时，按一下&#8221;/&#8221;,会显示搜索框，与vim的搜索一致，估计firefox的开发者也是vim爱好者:p</li>
</ul>
<p></f11></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/183/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>vim 7.0发布</title>
		<link>http://www.ooso.net/archives/179</link>
		<comments>http://www.ooso.net/archives/179#comments</comments>
		<pubDate>Tue, 09 May 2006 21:57:25 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/179</guid>
		<description><![CDATA[vim 7.0发布了.和vim 6.4比起来，有如下改动：

- Spell checking support for about 50 languages
- Intelligent completion for C, HTML, Ruby, Python, PHP, etc.

				<span class="readmore"><a href="http://www.ooso.net/archives/179" title="vim 7.0发布">阅读全文（802字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vim.org/">vim</a> 7.0发布了.和vim 6.4比起来，有如下改动：</p>
<ul>
- Spell checking support for about 50 languages<br />
- Intelligent completion for C, HTML, Ruby, Python, PHP, etc.<br />
- Tab pages, each containing multiple windows<br />
- Undo branches: never accidentally lose text again<br />
- Vim script supports Lists and Dictionaries (similar to Python)<br />
- Vim script profiling<br />
- Improved Unicode support<br />
- Highlighting of cursor line, cursor column and matching braces<br />
- Translated manual pages support.<br />
- Internal grep; works on all platforms, searches compressed files<br />
- Browsing remote directories, zip and tar archives<br />
- Printing multi-byte text</ul>
<p>其中我觉得比较重要的是Tab pages,可以在同一窗口打开多个文件，象firefox那样。虽然这个功能在其它文本编辑器上早已经很常见，但是出现在vim上好像还是第一次。<br />
在我安装的时候，它居然需要将以前老版本的vim全部删除（包括配置文件）。所以我不得不把以前的老配置文件给分离出来，将来也可以继续使用。</p>
<p>贴上我的vim配置：<br />
my.vim</p>
<pre><code>colo zellner
set guifont=Courier_New:h11:cANSI nobackup tabstop=4 shiftwidth=4
au BufRead * simalt ~x</code></pre>
<p>只要修改_vimrc加上一行就可以包含进来：</p>
<pre><code>source d:\my.vim</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/179/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

