<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Vim 问题求助</title>
	<atom:link href="http://linuxtoy.org/archives/vim-problem.html/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxtoy.org/archives/vim-problem.html</link>
	<description>LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神，可以点击顶部导航 Contact 按钮进行投稿。</description>
	<lastBuildDate>Fri, 25 May 2012 11:27:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: shily</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-167183</link>
		<dc:creator>shily</dc:creator>
		<pubDate>Wed, 18 Aug 2010 09:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-167183</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-150950&quot; rel=&quot;nofollow&quot;&gt;owwbu&lt;/a&gt;: 我的ubuntu不知道什么原因也是权限的问题&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-150950" rel="nofollow">owwbu</a>: 我的ubuntu不知道什么原因也是权限的问题</p>]]></content:encoded>
	</item>
	<item>
		<title>By: L_kernel</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151253</link>
		<dc:creator>L_kernel</dc:creator>
		<pubDate>Wed, 07 Apr 2010 05:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151253</guid>
		<description>&lt;p&gt;Ubuntu和Fedora还有CentOS似乎都没有碰到过这种情况。&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ubuntu和Fedora还有CentOS似乎都没有碰到过这种情况。</p>]]></content:encoded>
	</item>
	<item>
		<title>By: maxint</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151222</link>
		<dc:creator>maxint</dc:creator>
		<pubDate>Wed, 07 Apr 2010 02:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151222</guid>
		<description>&lt;p&gt;悲剧，代码都在一块了。。。
临时放这好了：http://maxint.tiddlyspot.com/index.html#Vimrc&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>悲剧，代码都在一块了。。。
临时放这好了：http://maxint.tiddlyspot.com/index.html#Vimrc</p>]]></content:encoded>
	</item>
	<item>
		<title>By: maxint</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151221</link>
		<dc:creator>maxint</dc:creator>
		<pubDate>Wed, 07 Apr 2010 02:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151221</guid>
		<description>&lt;p&gt;默认可以可能是因为用的是vim的推荐vimrc（在vim可执行文件目录下），我的配置就这样的&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;pre&gt;
&quot;-------------------------------------------------------------------------------
&quot; When editing a file, always jump to the last known cursor position.
&quot; Don&#039;t do it when the position is invalid or when inside an event handler
&quot; (happens when dropping a file on gvim).
&quot;-------------------------------------------------------------------------------
fun! SetCursorPosition()
    if &amp;filetype !~ &#039;commit\c&#039;
        if line(&quot;&#039;\&quot;&quot;) &gt; 0 &amp;&amp; line(&quot;&#039;\&quot;&quot;) &lt;= line(&quot;$&quot;)
            exe &quot;normal! g`\&quot;&quot;
            normal! zz
        endif
    end
endfun
&quot;jump to last cursor position when opening a file
&quot;dont do it when writing a commit log entry
au BufReadPost * call SetCursorPosition()
&lt;/pre&gt;
&lt;/code&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>默认可以可能是因为用的是vim的推荐vimrc（在vim可执行文件目录下），我的配置就这样的</p>

<p><code>
<pre>
"-------------------------------------------------------------------------------
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
"-------------------------------------------------------------------------------
fun! SetCursorPosition()
    if &amp;filetype !~ 'commit\c'
        if line("'\"") &gt; 0 &amp;&amp; line("'\"") &lt;= line("$")
            exe "normal! g`\""
            normal! zz
        endif
    end
endfun
"jump to last cursor position when opening a file
"dont do it when writing a commit log entry
au BufReadPost * call SetCursorPosition()
</pre>
</code></p>]]></content:encoded>
	</item>
	<item>
		<title>By: zhengjian</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151208</link>
		<dc:creator>zhengjian</dc:creator>
		<pubDate>Wed, 07 Apr 2010 01:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151208</guid>
		<description>&lt;p&gt;第二个问题的解答：&lt;/p&gt;

&lt;p&gt;使用插件：
http://hi.baidu.com/drdr/blog/item/5559830ab80a6534b0351dd1.html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>第二个问题的解答：</p>

<p>使用插件：
<a href="http://hi.baidu.com/drdr/blog/item/5559830ab80a6534b0351dd1.html" rel="nofollow">http://hi.baidu.com/drdr/blog/item/5559830ab80a6534b0351dd1.html</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: superjet</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151091</link>
		<dc:creator>superjet</dc:creator>
		<pubDate>Tue, 06 Apr 2010 14:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151091</guid>
		<description>&lt;p&gt;emacs里 Menu: Options-&gt;Save Place in Files Between Sessions 重新打开后光标自动回到原先的位置&lt;/p&gt;

&lt;p&gt;当然别的象启用desktop-save-mode之类要远比这个更实用&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>emacs里 Menu: Options-&gt;Save Place in Files Between Sessions 重新打开后光标自动回到原先的位置</p>

<p>当然别的象启用desktop-save-mode之类要远比这个更实用</p>]]></content:encoded>
	</item>
	<item>
		<title>By: i</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151083</link>
		<dc:creator>i</dc:creator>
		<pubDate>Tue, 06 Apr 2010 13:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151083</guid>
		<description>&lt;p&gt;这个体现了vim用户真是多啊，看楼上的emacs问题会表现得怎么样。&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>这个体现了vim用户真是多啊，看楼上的emacs问题会表现得怎么样。</p>]]></content:encoded>
	</item>
	<item>
		<title>By: firefoxmmx</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151080</link>
		<dc:creator>firefoxmmx</dc:creator>
		<pubDate>Tue, 06 Apr 2010 13:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151080</guid>
		<description>&lt;p&gt;原来这里也可以发问～下次我也来好了。。
跪求EMACS高手赐教， 在下推特@firefoxmmx ， 刚从VIM转过来很多东西还不知道应该怎么弄～&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>原来这里也可以发问～下次我也来好了。。
跪求EMACS高手赐教， 在下推特@firefoxmmx ， 刚从VIM转过来很多东西还不知道应该怎么弄～</p>]]></content:encoded>
	</item>
	<item>
		<title>By: dutor</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151005</link>
		<dc:creator>dutor</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151005</guid>
		<description>&lt;p&gt;map &lt;C-j&gt; /&lt;^&lt;cr&gt;v/\^&gt;/e&lt;cr&gt;&lt;C-g&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>map &lt;C-j&gt; /&lt;^&lt;cr&gt;v/\^&gt;/e&lt;cr&gt;&lt;C-g&gt;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: dutor</title>
		<link>http://linuxtoy.org/archives/vim-problem.html#comment-151004</link>
		<dc:creator>dutor</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/vim-problem.html#comment-151004</guid>
		<description>&lt;p&gt;群众的力量是强大的，谢谢大家！&lt;br /&gt;
我使用的UB，刚才我在/etc/vim/vimrc中找到这么几行：&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;/pre&gt;
&quot; Uncomment the following to have Vim jump to the last position when
&quot; reopening a file
&quot;if has(&quot;autocmd&quot;)
&quot;  au BufReadPost * if line(&quot;&#039;\&quot;&quot;) &gt; 1 &amp;&amp; line(&quot;&#039;\&quot;&quot;) &lt;= line(&quot;$&quot;) &#124; exe &quot;normal! g&#039;\&quot;&quot; &#124; endif
&quot;endif
&lt;/pre&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;把这几行的注释去掉就OK了。以前从没仔细看过etc下的vimrc:-)&lt;/p&gt;

&lt;p&gt;第二个问题，lilydjwg一语言中，原来那是Select Mode。我的是这么map的：
map  /&lt;^v/\^&gt;/e
我的placeholder: 
再次谢谢大家，谢谢LinuxTOY!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>群众的力量是强大的，谢谢大家！<br />
我使用的UB，刚才我在/etc/vim/vimrc中找到这么几行：</p>

<p><code>

" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
"  au BufReadPost * if line("'\"") &gt; 1 &amp;&amp; line("'\"") &lt;= line("$") | exe "normal! g'\"" | endif
"endif

</code></p>

<p>把这几行的注释去掉就OK了。以前从没仔细看过etc下的vimrc:-)</p>

<p>第二个问题，lilydjwg一语言中，原来那是Select Mode。我的是这么map的：
map  /&lt;^v/\^&gt;/e
我的placeholder: 
再次谢谢大家，谢谢LinuxTOY!</p>]]></content:encoded>
	</item>
</channel>
</rss>

