<?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>评论：vi/vim使用进阶: 使用会话和viminfo</title>
	<atom:link href="http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/feed/" rel="self" type="application/rss+xml" />
	<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/</link>
	<description>关注Linux, Scala, Java, 开源软件和嵌入式系统</description>
	<lastBuildDate>Sat, 04 Sep 2010 01:43:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-4235</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Fri, 30 Jul 2010 05:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-4235</guid>
		<description>&lt;a href=&quot;#comment-4232&quot; rel=&quot;nofollow&quot;&gt;@dexinmeng &lt;/a&gt; 
在source命令后加回车：

source Session.vim&lt;cr&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-4232" rel="nofollow">@dexinmeng </a><br />
在source命令后加回车：</p>
<p>source Session.vim&lt;cr&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：dexinmeng</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-4232</link>
		<dc:creator>dexinmeng</dc:creator>
		<pubDate>Fri, 30 Jul 2010 04:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-4232</guid>
		<description>楼主，为什么每次用vim打开一个文件之后(假设文件名为data.txt)总会出现下面的语句：
$ vi data.txt 
&quot;data.txt&quot; 5L, 27C
Press ENTER or type command to continue

我的.vimrc设置如下：
&quot;在vim退出前自动保存session
autocmd VimLeave * mksession! Session.vim

&quot;在vim打开时自动打开session
if filereadable(&quot;Session.vim&quot;)
    source Session.vim
endif</description>
		<content:encoded><![CDATA[<p>楼主，为什么每次用vim打开一个文件之后(假设文件名为data.txt)总会出现下面的语句：<br />
$ vi data.txt<br />
&#8220;data.txt&#8221; 5L, 27C<br />
Press ENTER or type command to continue</p>
<p>我的.vimrc设置如下：<br />
&#8220;在vim退出前自动保存session<br />
autocmd VimLeave * mksession! Session.vim</p>
<p>&#8220;在vim打开时自动打开session<br />
if filereadable(&#8220;Session.vim&#8221;)<br />
    source Session.vim<br />
endif</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-3279</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Thu, 24 Jun 2010 04:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-3279</guid>
		<description>&lt;a href=&quot;#comment-3160&quot; rel=&quot;nofollow&quot;&gt;@dedekd &lt;/a&gt; 
是的，要记住，通过插件动态生成的窗口，mksession是保存不下来的，还要由插件再次动态生成</description>
		<content:encoded><![CDATA[<p><a href="#comment-3160" rel="nofollow">@dedekd </a><br />
是的，要记住，通过插件动态生成的窗口，mksession是保存不下来的，还要由插件再次动态生成</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-3278</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Thu, 24 Jun 2010 04:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-3278</guid>
		<description>&lt;a href=&quot;#comment-3137&quot; rel=&quot;nofollow&quot;&gt;@dedekd &lt;/a&gt; 
这是因为我们设置了这一选项：

:set sessionoptions+=sesdir</description>
		<content:encoded><![CDATA[<p><a href="#comment-3137" rel="nofollow">@dedekd </a><br />
这是因为我们设置了这一选项：</p>
<p>:set sessionoptions+=sesdir</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：dedekd</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-3160</link>
		<dc:creator>dedekd</dc:creator>
		<pubDate>Sun, 20 Jun 2010 01:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-3160</guid>
		<description>:NERDTreeToggle [ &#124; ]             *:NERDTreeToggle*
原来可以用这句快速恢复nerdtree，没看帮助....</description>
		<content:encoded><![CDATA[<p>:NERDTreeToggle [ | ]             *:NERDTreeToggle*<br />
原来可以用这句快速恢复nerdtree，没看帮助&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：dedekd</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-3137</link>
		<dc:creator>dedekd</dc:creator>
		<pubDate>Fri, 18 Jun 2010 13:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-3137</guid>
		<description>好像是当so session时，session在什么位置，pwd就指向了被so的session的位置</description>
		<content:encoded><![CDATA[<p>好像是当so session时，session在什么位置，pwd就指向了被so的session的位置</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：dedekd</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-3136</link>
		<dc:creator>dedekd</dc:creator>
		<pubDate>Fri, 18 Jun 2010 11:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-3136</guid>
		<description>我的session保存在了~/home/xxx下面</description>
		<content:encoded><![CDATA[<p>我的session保存在了~/home/xxx下面</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：dedekd</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-3133</link>
		<dc:creator>dedekd</dc:creator>
		<pubDate>Fri, 18 Jun 2010 11:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-3133</guid>
		<description>您好，博主，我保存了session，当恢复session后，原来buffers内的文件的确都恢复出来了，但是我发现当前文件所在目录没有自动恢复，仍然还是默认的~/home/xxx，不是当前文件所在的目录~/home/xxx/src，请问是不是我操作会有问题，还是mksession命令是不能保存文件所在目录的信息？
我在.vimrc中已经设置了
set sessionoptions-=curdir
set sessionoptions+=sesdir</description>
		<content:encoded><![CDATA[<p>您好，博主，我保存了session，当恢复session后，原来buffers内的文件的确都恢复出来了，但是我发现当前文件所在目录没有自动恢复，仍然还是默认的~/home/xxx，不是当前文件所在的目录~/home/xxx/src，请问是不是我操作会有问题，还是mksession命令是不能保存文件所在目录的信息？<br />
我在.vimrc中已经设置了<br />
set sessionoptions-=curdir<br />
set sessionoptions+=sesdir</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：LX</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-1906</link>
		<dc:creator>LX</dc:creator>
		<pubDate>Mon, 01 Feb 2010 07:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-1906</guid>
		<description>呃。。原来是动态窗口导致的
把miniBuf关掉后再mksession就OK了</description>
		<content:encoded><![CDATA[<p>呃。。原来是动态窗口导致的<br />
把miniBuf关掉后再mksession就OK了</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：LX</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-session-file-and-viminfo/#comment-1905</link>
		<dc:creator>LX</dc:creator>
		<pubDate>Mon, 01 Feb 2010 05:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=48#comment-1905</guid>
		<description>请教一下Easwy,为啥我重新打开vim执行source的时候，会出现多个
&quot;-MiniBufExplorer-&quot;[New File]
&quot;-MiniBufExplorer-&quot;[Not edited]--No lines in buffer--
Press Enter or type command to continue
按回车后会显示3栏，顶上是miniBuffer,显示不正常，空白，中间和下面是两个一样的正常文件（同一个文件）
背景：安装了MiniBufExplorer,Lookupfile
mksession后会这样

miniBuff和lookupfile配置如下
&quot;miniBuffExpl by LX
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1 
&quot;mksession by LX
map  mks :mksession! C:\My Dropbox\vim\lx.vim
map  sou :source c:\My Dropbox\vim\lx.vim
map  wv :wviminfo c:\My Dropbox\vim\lx.viminfo
map  rv :rviminfo c:\My Dropbox\vim\lx.viminfo
map  vimrc :e c:\My Dropbox\vim\_vimrc
autocmd! bufwritepost _vimrc source c:\My Dropbox\vim\_vimrc</description>
		<content:encoded><![CDATA[<p>请教一下Easwy,为啥我重新打开vim执行source的时候，会出现多个<br />
&#8220;-MiniBufExplorer-&#8221;[New File]<br />
&#8220;-MiniBufExplorer-&#8221;[Not edited]&#8211;No lines in buffer&#8211;<br />
Press Enter or type command to continue<br />
按回车后会显示3栏，顶上是miniBuffer,显示不正常，空白，中间和下面是两个一样的正常文件（同一个文件）<br />
背景：安装了MiniBufExplorer,Lookupfile<br />
mksession后会这样</p>
<p>miniBuff和lookupfile配置如下<br />
&#8220;miniBuffExpl by LX<br />
let g:miniBufExplMapWindowNavVim = 1<br />
let g:miniBufExplMapWindowNavArrows = 1<br />
let g:miniBufExplMapCTabSwitchBufs = 1<br />
let g:miniBufExplModSelTarget = 1<br />
&#8220;mksession by LX<br />
map  mks :mksession! C:\My Dropbox\vim\lx.vim<br />
map  sou :source c:\My Dropbox\vim\lx.vim<br />
map  wv :wviminfo c:\My Dropbox\vim\lx.viminfo<br />
map  rv :rviminfo c:\My Dropbox\vim\lx.viminfo<br />
map  vimrc :e c:\My Dropbox\vim\_vimrc<br />
autocmd! bufwritepost _vimrc source c:\My Dropbox\vim\_vimrc</p>
]]></content:encoded>
	</item>
</channel>
</rss>
