﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-BoolKinG's Blog-随笔分类-Misc</title><link>http://www.cppblog.com/boolking/category/1730.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 21 May 2008 21:02:27 GMT</lastBuildDate><pubDate>Wed, 21 May 2008 21:02:27 GMT</pubDate><ttl>60</ttl><item><title>这难道就是今后的桌面？</title><link>http://www.cppblog.com/boolking/archive/2006/07/01/9259.html</link><dc:creator>BoolKinG</dc:creator><author>BoolKinG</author><pubDate>Sat, 01 Jul 2006 05:01:00 GMT</pubDate><guid>http://www.cppblog.com/boolking/archive/2006/07/01/9259.html</guid><wfw:comment>http://www.cppblog.com/boolking/comments/9259.html</wfw:comment><comments>http://www.cppblog.com/boolking/archive/2006/07/01/9259.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boolking/comments/commentRss/9259.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boolking/services/trackbacks/9259.html</trackback:ping><description><![CDATA[
		<p>
				<font color="#800080">
						<font color="#000000">BumpTop</font>
						<a href="http://bumptop.ca/">
								<br />http://bumptop.ca/</a>
						<br />
				</font>
				<br />
				<img src="http://honeybrown.ca/Pubs/moneyshot_sm.jpg" />
				<br />
				<br />看演示非常不错<br />对于我这种喜欢什么都放在windows桌面上的人是再合适不过的了，只用鼠标一拖，所有的东西都自动排好堆成一摞，而且查阅起来也非常方便。<br /><br />现在还没有可供测试的版本，希望很快可以用上<br /><br /></p>
<img src ="http://www.cppblog.com/boolking/aggbug/9259.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boolking/" target="_blank">BoolKinG</a> 2006-07-01 13:01 <a href="http://www.cppblog.com/boolking/archive/2006/07/01/9259.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>学习Vim的一点心得</title><link>http://www.cppblog.com/boolking/archive/2006/05/14/7137.html</link><dc:creator>BoolKinG</dc:creator><author>BoolKinG</author><pubDate>Sun, 14 May 2006 09:35:00 GMT</pubDate><guid>http://www.cppblog.com/boolking/archive/2006/05/14/7137.html</guid><wfw:comment>http://www.cppblog.com/boolking/comments/7137.html</wfw:comment><comments>http://www.cppblog.com/boolking/archive/2006/05/14/7137.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boolking/comments/commentRss/7137.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boolking/services/trackbacks/7137.html</trackback:ping><description><![CDATA[
		<p>现在的工作是在unix平台，平时是用UE的ftp功能来写代码的，有时候文件大了，传输就很慢，而且经常不是很稳定。<br />下定决心要学学Vim（现在应该没有人用原始的vi了吧），在经过二周的使用后，发现Vim实在是非常不错的一个editor，现在我在Windows上也装了一个Vim，使用起来颇为顺手，基本上已经替代了UE。<br /><br />下面介绍一些我在使用Vim的过程中得到的一些心得：<br />1. 在使用Vim之前一定要进行一些设置，否则你使用起来肯定会很不爽，下面是我的配置</p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #008080"> 1</span>
				<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">==============================================<br /></span>
				<span style="COLOR: #008080"> 2</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> General settings<br /></span>
				<span style="COLOR: #008080"> 3</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">==============================================<br /></span>
				<span style="COLOR: #008080"> 4</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080"> 5</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set nocp<br /></span>
				<span style="COLOR: #008080"> 6</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set ru<br /></span>
				<span style="COLOR: #008080"> 7</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 使用cindent<br /></span>
				<span style="COLOR: #008080"> 8</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set cin<br /></span>
				<span style="COLOR: #008080"> 9</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set cino</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">:0g0t0(sus<br /></span>
				<span style="COLOR: #008080">10</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">11</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set sm<br /></span>
				<span style="COLOR: #008080">12</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set ai<br /></span>
				<span style="COLOR: #008080">13</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 缩近<br /></span>
				<span style="COLOR: #008080">14</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set sw=4<br /></span>
				<span style="COLOR: #008080">15</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set ts=4<br /></span>
				<span style="COLOR: #008080">16</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 不展开tab为空格，反之set et<br /></span>
				<span style="COLOR: #008080">17</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set noet<br /></span>
				<span style="COLOR: #008080">18</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">19</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set lbr<br /></span>
				<span style="COLOR: #008080">20</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set hls<br /></span>
				<span style="COLOR: #008080">21</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set backspace</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">indent</span>
				<span style="COLOR: #000000">,</span>
				<span style="COLOR: #000000">eol</span>
				<span style="COLOR: #000000">,</span>
				<span style="COLOR: #000000">start<br /></span>
				<span style="COLOR: #008080">22</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set whichwrap</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">b</span>
				<span style="COLOR: #000000">,</span>
				<span style="COLOR: #000000">s</span>
				<span style="COLOR: #000000">,</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">,</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">,</span>
				<span style="FONT-WEIGHT: bold; COLOR: #800000">[</span>
				<span style="COLOR: #800000">,</span>
				<span style="FONT-WEIGHT: bold; COLOR: #800000">]</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">23</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set fo+</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">mB<br /></span>
				<span style="COLOR: #008080">24</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set selectmode</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">25</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set mousemodel</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">popup<br /></span>
				<span style="COLOR: #008080">26</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set keymodel</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">27</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set selection</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">inclusive<br /></span>
				<span style="COLOR: #008080">28</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set matchpairs+</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">&lt;:&gt;<br /></span>
				<span style="COLOR: #008080">29</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">30</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">==============================================<br /></span>
				<span style="COLOR: #008080">31</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> Cursor movement<br /></span>
				<span style="COLOR: #008080">32</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">==============================================<br /></span>
				<span style="COLOR: #008080">33</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />nnoremap &lt;Down&gt; gj<br /></span>
				<span style="COLOR: #008080">34</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />nnoremap &lt;Up&gt; gk<br /></span>
				<span style="COLOR: #008080">35</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />vnoremap &lt;Down&gt; gj<br /></span>
				<span style="COLOR: #008080">36</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />vnoremap &lt;Up&gt; gk<br /></span>
				<span style="COLOR: #008080">37</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />inoremap &lt;Down&gt; &lt;C-o&gt;gj<br /></span>
				<span style="COLOR: #008080">38</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />inoremap &lt;Up&gt; &lt;C-o&gt;gk<br /></span>
				<span style="COLOR: #008080">39</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">40</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />nnoremap &lt;End&gt; g$<br /></span>
				<span style="COLOR: #008080">41</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />nnoremap &lt;Home&gt; g0<br /></span>
				<span style="COLOR: #008080">42</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />vnoremap &lt;End&gt; g$<br /></span>
				<span style="COLOR: #008080">43</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />vnoremap &lt;Home&gt; g0<br /></span>
				<span style="COLOR: #008080">44</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />inoremap &lt;End&gt; &lt;C-o&gt;g$<br /></span>
				<span style="COLOR: #008080">45</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />inoremap &lt;Home&gt; &lt;C-o&gt;g0<br /></span>
				<span style="COLOR: #008080">46</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">47</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />nmap &lt;C-F4&gt; :confirm bd&lt;CR&gt;<br /></span>
				<span style="COLOR: #008080">48</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />vmap &lt;C-F4&gt; &lt;ESC&gt;:confirm bd&lt;Enter&gt;<br /></span>
				<span style="COLOR: #008080">49</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />omap &lt;C-F4&gt; &lt;ESC&gt;:confirm bd&lt;Enter&gt;<br /></span>
				<span style="COLOR: #008080">50</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />map! &lt;C-F4&gt; &lt;ESC&gt;:confirm bd&lt;Enter&gt;<br /></span>
				<span style="COLOR: #008080">51</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">52</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 打开语法高亮<br /></span>
				<span style="COLOR: #008080">53</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />syntax on<br /></span>
				<span style="COLOR: #008080">54</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 使用语法进行折叠<br /></span>
				<span style="COLOR: #008080">55</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set foldmethod=syntax<br /></span>
				<span style="COLOR: #008080">56</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">57</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />if (has(</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">gui_running</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">))<br /></span>
				<span style="COLOR: #008080">58</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />    set nowrap<br /></span>
				<span style="COLOR: #008080">59</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />    set guioptions+=b<br /></span>
				<span style="COLOR: #008080">60</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />    colo inkpot<br /></span>
				<span style="COLOR: #008080">61</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />else<br /></span>
				<span style="COLOR: #008080">62</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />    set wrap<br /></span>
				<span style="COLOR: #008080">63</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />    colo ron<br /></span>
				<span style="COLOR: #008080">64</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />endif<br /></span>
				<span style="COLOR: #008080">65</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">66</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 设置swap文件的目录<br /></span>
				<span style="COLOR: #008080">67</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set dir</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">D:\vim\tmp<br /></span>
				<span style="COLOR: #008080">68</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">设置备份文件的目录<br /></span>
				<span style="COLOR: #008080">69</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />set backupdir=D:\vim\bak<br /></span>
				<span style="COLOR: #008080">70</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">71</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> 设置leader的快捷键，原来的“\”太远了，而且位置还不固定<br /></span>
				<span style="COLOR: #008080">72</span>
				<span style="COLOR: #000000">
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />let mapleader</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">,</span>
				<span style="COLOR: #000000">"</span>
		</div>
		<p>这里是一些基本设置<br />如果有什么不太清楚的，可以在Vim里normal模式下<br />:h 关键字 <br />查看帮助<br /><br />2. Vim教程<br />推荐先看看Vim自带的Tutor（这可是位好老师）<br />用vimtutor启动Vim<br />或者在Vim里面用:h tutor来启动<br />中文教程我推荐李果正的《大家来学Vim》<br /><a href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html">这里</a>还有Vim的键位示意图，可以打出来随时查看哦<br /><br /> <br />3. Vim的插件<br />有几个插件强烈推荐<br />(1) A：在同名的cpp和h文件之间切换 <a href="http://www.vim.org/scripts/script.php?script_id=31">http://www.vim.org/scripts/script.php?script_id=31</a><a href="http://www.vim.org/"></a><br />(2) NERD_comments：超强的注释插件，支持很多语言的注释风格，按照上面的设置，只需要",cc"就可以添加注释了 <a href="http://www.vim.org/scripts/script.php?script_id=1218">http://www.vim.org/scripts/script.php?script_id=1218</a><br />(3) csupport：写C/C++代码必备 <a href="http://www.vim.org/scripts/script.php?script_id=213">http://www.vim.org/scripts/script.php?script_id=213</a><br />(4) LargeFile：再也不用担心打开大文件会慢了 <a href="http://www.vim.org/scripts/script.php?script_id=1506">http://www.vim.org/scripts/script.php?script_id=1506</a><br />(5) TipOfTheDay：多读读vim的tips会有很多收获的，记得要经常更新tips文件啊 <a href="http://www.vim.org/scripts/script.php?script_id=88">http://www.vim.org/scripts/script.php?script_id=88</a><br />(6) cppomnicomplete：提供C++中类/对象成员的补全（需要Vim7） <a href="http://www.vim.org/scripts/script.php?script_id=1520">http://www.vim.org/scripts/script.php?script_id=1520</a><br />(7) ColorSamplerPack：提供上百种颜色主题，必有一款适合你，不过大多数都是在GUI下才有相应的效果 <a href="http://www.vim.org/scripts/script.php?script_id=625">http://www.vim.org/scripts/script.php?script_id=625</a><br />(8) vimcdoc：汉化的vim帮助 <a href="http://vimcdoc.sourceforge.net/">http://vimcdoc.sourceforge.net/</a><br /><br />3. 在telnet中使用vim的颜色<br />如果是在linux中使用telnet，SecureCRT会自动使用合适的颜色来显示vim不同的颜色，但是如果在其他unix下就会无法显示正确的颜色，所有的东西都是同一种颜色。<br /><br />在.vimrc中加入（^[的输入方式是Ctrl-v然后输入Esc）：<br />if !has("gui_running")<br />set t_Co=8<br />set t_Sf=^[[3%p1%dm<br />set t_Sb=^[[4%p1%dm<br />endif<br />并在SecureCRT的模拟终端类型选择ANSI，并钩上ANSI Color，就可以显示不同的颜色了<br /><br />4. vim的自动补全功能<br />一般使用Ctrl+n就可以自动补全了，从Vim7后，C/C++的函数、变量或者是类的成员，使用Ctrl+x，Ctrl+o也可以自动补全。在安装了cppomnicomplete后，对象的成员也可以用Ctrl+x，Ctrl+o来补全<br /><br />5. 代码折叠<br />许多editor都支持代码折叠，Vim也不例外<br />常用的快捷键<br />zc 折叠代码<br />zo 打开折叠的代码<br />还有其他的快捷键可以查看帮助<br />:h fold<br /><br />6. 自动格式化代码<br />在Visual模式下，选中代码按=就可以了<br />Normal模式下，按=会格式化光标所在行<br /><br />7. 脚本支持<br />Vim不仅有内建的脚本功能，还支持Perl，Python，Tcl，Ruby和MzScheme这些流行的脚本语言编写Vim的扩展<br /><br />Vim的功能是不是很强大？<br />经过1年多的测试Vim 7.0也release了，还不快下载来试试<br /><a href="http://www.vim.org/">http://www.vim.org</a><br /><br />Happy Vimming!<br /><br />对于已经习惯了使用Vim但是要在Windows下编程的用户<br />我还推荐<br /><a href="http://www.viemu.com/">ViEmu</a>，可以在VisualStudio下模拟Vi的编辑操作<br />不过只有30天的试用期<img height="19" src="http://www.cppblog.com/Emoticons/sad_smile.gif" width="19" border="0" /></p>
<img src ="http://www.cppblog.com/boolking/aggbug/7137.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boolking/" target="_blank">BoolKinG</a> 2006-05-14 17:35 <a href="http://www.cppblog.com/boolking/archive/2006/05/14/7137.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VSS的又一个Internet解决方案SourceAnywhere</title><link>http://www.cppblog.com/boolking/archive/2006/05/14/7129.html</link><dc:creator>BoolKinG</dc:creator><author>BoolKinG</author><pubDate>Sun, 14 May 2006 06:23:00 GMT</pubDate><guid>http://www.cppblog.com/boolking/archive/2006/05/14/7129.html</guid><wfw:comment>http://www.cppblog.com/boolking/comments/7129.html</wfw:comment><comments>http://www.cppblog.com/boolking/archive/2006/05/14/7129.html#Feedback</comments><slash:comments>16</slash:comments><wfw:commentRss>http://www.cppblog.com/boolking/comments/commentRss/7129.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boolking/services/trackbacks/7129.html</trackback:ping><description><![CDATA[以下转自我在msn的blog<br /><br /><div>今天又看到一个和Source Offsite类似的软件：SourceAnywhere。不用装.net framework，对中文的支持也很好，早知道有这个东东，就不用浪费一个下午取搞定那个中文版的SOS了<img src="http://spaces.msn.com/rte/emoticons/smile_sad.gif" />。</div><div>不过这个东东和SOS实在是有点太像了，就连没有指定database之前不能启动服务都一模一样，不知道两者之间有什么关系<br /><br /></div><img src ="http://www.cppblog.com/boolking/aggbug/7129.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boolking/" target="_blank">BoolKinG</a> 2006-05-14 14:23 <a href="http://www.cppblog.com/boolking/archive/2006/05/14/7129.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>怀旧小游戏</title><link>http://www.cppblog.com/boolking/archive/2006/05/14/7127.html</link><dc:creator>BoolKinG</dc:creator><author>BoolKinG</author><pubDate>Sun, 14 May 2006 06:21:00 GMT</pubDate><guid>http://www.cppblog.com/boolking/archive/2006/05/14/7127.html</guid><wfw:comment>http://www.cppblog.com/boolking/comments/7127.html</wfw:comment><comments>http://www.cppblog.com/boolking/archive/2006/05/14/7127.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/boolking/comments/commentRss/7127.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boolking/services/trackbacks/7127.html</trackback:ping><description><![CDATA[以下转自我在msn的blog：<br /><br /><p>今天在bt上发现了一个怀旧小游戏合集，里面都是10几年前我们在电脑房（现在网吧的前身）里面dos下玩的游戏，虽然现在看来非常粗糙，但是曾经在电脑房里鏖战的日日夜夜却是难以磨灭的美好回忆。</p><p>下载下来发现有些游戏不能在xp下运行，推荐三个软件<a href="http://dosbox.sourceforge.net/"><font color="#003300">dosbox</font></a>、<a href="http://vdmsound.sourceforge.net/"><font color="#003300">VDMSound</font></a>和<a href="http://www.glidos.net/"><font color="#003300">glidos</font></a>，第一个是一个跨平台的dos模拟器，不想在VMWare里面装个Dos就试试它吧，不过还是有些游戏支持的不是太好；第二个是一个在xp的console下模拟声卡的东东；第三个是我强烈推荐的，可以在windows下运行需要glide（游戏龄超过10年的人都知道这是当年的3D硬件王者3dfx的编程接口，类似现在的Direct3D）的硬件加速游戏，很好的支持了古墓丽影1，就是非注册版在后面几关屏幕中间会出现一个很大的logo<img src="http://spaces.msn.com/rte/emoticons/smile_sad.gif" />（试试emule，会有意想不到的收获<img src="http://spaces.msn.com/rte/emoticons/smile_tongue.gif" />）。</p><p>实在不行就在VMWare里面装个dos来怀旧吧。<br /><br /></p><img src ="http://www.cppblog.com/boolking/aggbug/7127.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boolking/" target="_blank">BoolKinG</a> 2006-05-14 14:21 <a href="http://www.cppblog.com/boolking/archive/2006/05/14/7127.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>cppblog的第一篇blog</title><link>http://www.cppblog.com/boolking/archive/2006/05/14/7126.html</link><dc:creator>BoolKinG</dc:creator><author>BoolKinG</author><pubDate>Sun, 14 May 2006 06:14:00 GMT</pubDate><guid>http://www.cppblog.com/boolking/archive/2006/05/14/7126.html</guid><wfw:comment>http://www.cppblog.com/boolking/comments/7126.html</wfw:comment><comments>http://www.cppblog.com/boolking/archive/2006/05/14/7126.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/boolking/comments/commentRss/7126.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boolking/services/trackbacks/7126.html</trackback:ping><description><![CDATA[之前都是在msn写blog的，现在live.com被封，msn的慢的不行，限制太多，我的maxthon还经常被它弄的假死，因此换到cppblog。cppblog的确比msn快，而且用起来也顺手些<br /><br />以后以此为家，各位前辈也多多指教了<br /><br /><img src ="http://www.cppblog.com/boolking/aggbug/7126.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boolking/" target="_blank">BoolKinG</a> 2006-05-14 14:14 <a href="http://www.cppblog.com/boolking/archive/2006/05/14/7126.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>