<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[vim回到上次光标位置 ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Sun, 22 Sep 2013 03:02:42 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	每次vim 一个文件，光标都在最上面的位置，不是上次我编辑的位置了..<br/>进入vim后键入:<br/>&#039;0<br/>即回到当初你编辑的位置<br/>ctrl + o 回到光标回到上次位置<br/>ctrl+i，ctrl+o跳转位置,完全没看手册啊<br/><br/>try&nbsp;&nbsp;Ctrl+ o<br/>配合ctrl + ] 阅读代码时尤其便捷<br/>——————————————————————<br/>PS: 如果想把光标停止在指定的行, 这样<br/>vim +n urfile // n为行号<br/>如果要停留在行尾, 这样<br/>vim + urfile<br/>来自：http://bbs.chinaunix.net/forum.php?mod=viewthread&amp;tid=1024941&amp;page=1<br/>http://blog.longwin.com.tw/2012/09/vim-last-read-line-2012/<br/>http://bbs.chinaunix.net/thread-1271757-1-1.html<br/><br/><br/>vim-重新打开回到上次所编辑文件的位置：<br/>应用场景: <br/>在每次退出一份文件后再重新打开该文件时,希望光标停留在当时退出的地方；也就是说当我程序写到hello.c的第100列时突然有事必须关电脑了,那在我下次打开电脑以vim打开hello.c, 希望光标还是停留在第100列,怎么办?<br/><br/>解决方案就是在.vimrc里面加上这一行即可:<br/>au BufReadPost * if line(&quot;&#039;&#92;&quot;&quot;) &gt; 0&#124;if line(&quot;&#039;&#92;&quot;&quot;) &lt;= line(&quot;$&quot;)&#124;exe(&quot;norm &#039;&#92;&quot;&quot;)&#124;else&#124;exe &quot;norm $&quot;&#124;endif&#124;endif&nbsp;&nbsp;<br/><br/>google大神的礼物:　<br/>http://bbs.chinaunix.net/viewthread.php?tid=1024941&amp;page=1
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] vim回到上次光标位置 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>