<?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 做 PHP 开发环境]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 14 Oct 2008 03:19:56 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	vim的配置文件在哪里 <br/>当我们使用Vim时, 你需要知道一系列的配置文件. 这些配置文件的位置依赖于Vim的安装位置和你所使用的操作系统. <br/>通常, 有三个配置文件, 你是必须知道在哪里能找到的. <br/>vimrc <br/>这是Vim最主要的配置文件. 它有两个版本, 全局版本(global)和用户版本(personal)). <br/>全局vimrc文件放在你安装Vim的目录中. 你可以打开vim, 在普通模式下输入下面的命令来找出这个目录的位置 <br/>:echo $VIM<br/>结果应该是这样的: <br/>Linux: /usr/share/vim/vimrc<br/>Windows: c:&#92;program files&#92;vim&#92;vimrc<br/>用户版本的vimrc文件放在你的主目录下. 主目录的位置依赖于你的操作系统. Vim最初是为Unix及类Unix操作系统提供的, 所以用户版本的vimrc文件都是通过在文件名的最前面加一个点来设置成隐藏文件. 这是在类Unix上设置隐藏文件的方法, 但不适用于Microsoft Windows. 所以呢, vimrc文件与操作系统有关. 应该是这样的: <br/>Linux: /home/kim/.vimrc<br/>Windows: c:&#92;documents and settings&#92;kim&#92;_vimrc<br/>不管怎么改用户版的vimrc文件, 其中的设置内容都是覆盖在全局vimrc文件中设置的内容. 这就意味着你可以不需要去改变全局vimrc文件来进行配置Vim. <br/>你可以在Vim的普通模式下输入下面的命令, 来找出Vim认为的你的系统的主目录的位置: <br/>:echo $HOME<br/>vimrc文件包含的是ex (vi的前身) 命令, 一条命令一行. 并且vimrc文件也是增加Vim配置信息的默认方式. <br/>你的vimrc可以将其他的文件 (包含着配置信息) 作为外部资源. 在vimrc文件里, 你可用以source命令来实现: <br/>&nbsp;&nbsp;&nbsp;&nbsp;source /path/to/external/file<br/>这样可以使你的vimrc文件保持整洁, 并且你的设置会更加的结构 (更多的关于如何保持vimrc文件整洁的内容请参考附录B) . <br/><br/>===============================<br/><br/>&lt;h1 style=&quot;margin: 17pt 0cm 7.8pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;VIM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;做&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;PHP&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;PHP&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;开发环境&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;作者：廖宇雷&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;虽然&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;本质上只是一个编辑器。但只要配合一些适当的插件，&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;也能变成一个全功能的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;IDE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;。笔者使用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;已经有挺长一段时间了，经过反复的试验，配置了一个高效的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;PHP&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;开发环境，实为居家旅行、谋财害命、杀人越货必备之良品。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h2 style=&quot;margin: 13pt 0cm 7.8pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;%B0%B2%D7%B0&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;安装&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Cambria&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;鉴于大多数读者都是使用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;Windows&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;Windows&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;环境，所以本文就以&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;Windows&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;作为运行环境。不过由于&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;出色的跨平台特性，配置文件只需简单修改就可以在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;Linux&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;Linux&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;版本的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中使用。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目前&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的最新版本是&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;7.2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;，如果没有特别原因建议安装最新的版本。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;下载地址：&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://www.vim.org/download.php#pc&quot;&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;http://www.vim.org/download.php#pc&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载文件：&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;ftp://ftp.vim.org/pub/vim/pc/gvim72.exe&quot;&gt;&lt;span style=&quot;color: #800080; font-family: Calibri&quot;&gt;ftp://ftp.vim.org/pub/vim/pc/gvim72.exe&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;安装时&lt;/span&gt;&lt;span class=&quot;MsoIntenseEmphasis&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd&quot;&gt;不要装到带有空格、中文的目录中&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;，其他保持默认即可。笔者的安装目录是&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;c:&#92;apps&#92;office&#92;vim&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;，后文也以此为准。为了叙述方便，笔者用&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;$VIM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;来表示&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的安装目录。例如您的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;安装在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;d:&#92;vim&#92;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中，那&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;就代表&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;d:&#92;vim&#92;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h2 style=&quot;margin: 13pt 0cm 7.8pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;开始配置&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Cambria&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;我们对&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的配置分为几个步骤。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;修改&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;后自动生效&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;打开&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;$VIM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录，可以看到其中有一个&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件，用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;打开此文件，删除所有内容后，在最后插入两行：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; autoload _vimrc&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;autocmd! bufwritepost _vimrc source %&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;上述命令让我们通过&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;编辑&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件并保存时，可以自动载入&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件，使得我们对&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的定制可以立即生效（无需重启&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;）。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;使&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中文化&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;顶部增加下列文本：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; disable VI&#039;s compatible mode..&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set nocompatible&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; set encoding=utf-8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set fileencodings=ucs-bom,utf-8,gbk,default,latin1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; use chinese help&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set helplang=cn&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;上述&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;%B4%FA%C2%EB&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;代码&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;的作用是禁用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vi&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;兼容模式（原始的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vi&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;功能太少了，没必要考虑兼容）、按照&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;utf-8&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;、&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;gbk&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的顺序来检测文件编码，并设置帮助为中文。不过设置&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;set helplang=cn&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;并不能马上看到中文帮助，我们还得下载中文帮助文件。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;下载地址：&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://vimcdoc.sourceforge.net/&quot;&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;http://vimcdoc.sourceforge.net/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载文件：&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vimcdoc-1.6.0.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt; text-align: left&quot; class=&quot;MsoNormal&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;得到中文帮助文件压缩包后，将压缩包中&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;doc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;子目录的所有文件复制到&lt;/span&gt;&lt;span class=&quot;MsoSubtleReference&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #c0504d; font-family: Verdana&quot;&gt;$VIM&#92;vimfiles&#92;doc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录中。此时再输入&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;:help&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;命令就可以看到中文帮助了。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-align: center&quot; class=&quot;MsoNormal&quot; align=&quot;center&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中文帮助还是&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;7.1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;版的，不过不影响我们使用。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;设置字体&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;选择&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;菜单的&amp;ldquo;编辑&amp;rdquo;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&amp;ldquo;选择字体&amp;rdquo;，就可以为&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;指定喜欢的显示字体了。笔者使用的是&lt;/span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;span&gt;Consolas&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;字体，大小设置为&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;9pt&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;。这个设置显示代码非常漂亮，不过中文就有点变形了。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;设置好后，输入命令&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;:set guifont&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;可以查看到当前的字体设置，将该设置写入&lt;/span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;span&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot;set gui options&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;if has(&amp;quot;gui_running&amp;quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;color: #244061&quot;&gt;&lt;span style=&quot;font-family: Consolas&quot;&gt;&lt;span&gt; &lt;/span&gt;set guifont=Consolas:h9&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;endif&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;上述代码中的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;if &amp;hellip; endif&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;是一个条件判断结构。指示只有当我们使用图形界面版的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;时才设置字体。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;为编辑&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;PHP&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;代码进行基本设置&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;现在用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;打开&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;.php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件看上去是很难看的，别说代码高亮，连行号都没有显示。所以还要给&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;添加以下内容：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Enable syntax highlight&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;syntax enable&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Show line number&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set nu&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; show matching bracets&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set showmatch&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Basic editing options&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set expandtab&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set shiftwidth=2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;au FileType html,python,vim,javascript setl shiftwidth=2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;au FileType html,python,vim,javascript setl tabstop=2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;au FileType java,php setl shiftwidth=4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;au FileType java,php setl tabstop=4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set smarttab&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set lbr&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set tw=0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot;Auto indent&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set ai&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Smart indet&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set si&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; C-style indeting&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set cindent&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Wrap lines&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set wrap&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;上述设置启用了格式化高亮、行号显示，以及括号匹配、自动缩进等编辑功能，对于大多数情况都可以获得理想的编辑体验。不过此时对&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;.php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件的支持还不完善，需要下载专门的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;插件。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;下载地址：&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://www.vim.org/scripts/script.php?script_id=1571&quot;&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;http://www.vim.org/scripts/script.php?script_id=1571&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载文件：&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;php.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;将其中的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;php.vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;复制到&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&#92;vimfiles&#92;syntax&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录中即可。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;设置喜欢的配色方案&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;默认的配色方案相信没几个人会喜欢，可以通过下面的网址查看配色方案并下载（有几百个哦）。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载网址：&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-c.html&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-c.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;这个网址列出了&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;300&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;多个配色方案以及实际的显示效果，点击方案名称即可下载到一个&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;.vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件。将该文件放入&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&#92;vimfiles&#92;colors&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录，然后在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中添加：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; set color schema&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;colorscheme oceandeep&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;这两行代码需要加到&lt;/span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;span&gt;if has(&amp;quot;gui_running&amp;quot;) &amp;hellip; endif&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;代码块中，例如：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;if has(&amp;quot;gui_running&amp;quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;color: #244061&quot;&gt;&lt;span style=&quot;font-family: Consolas&quot;&gt;&lt;span&gt; &lt;/span&gt;set guifont=Consolas:h9&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;color: #244061&quot;&gt;&lt;span style=&quot;font-family: Consolas&quot;&gt;&lt;span&gt; &lt;/span&gt;&amp;quot; set color schema&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;color: #244061&quot;&gt;&lt;span style=&quot;font-family: Consolas&quot;&gt;&lt;span&gt; &lt;/span&gt;colorscheme oceandeep&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;endif&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;设置后显示效果就漂亮多了&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;:-)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&amp;shy;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;更多有用的编辑设置&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt; text-align: left&quot; class=&quot;MsoNormal&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;虽然不是专门针对编辑&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;.php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件的设置，但这些选项可以让&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;更好用，所以建议加上：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Sets how many lines of history VIM har to remember&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set history=400&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Set to auto read when a file is changed from the outside&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set autoread&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Have the mouse enabled all the time:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set mouse=a&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Do not redraw, when running macros.. lazyredraw&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set lz&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; set 7 lines to the curors - when moving vertical..&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set so=7&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; The commandbar is 2 high&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set cmdheight=2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Change buffer - without saving&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set hid&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Ignore case when searching&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; set ignorecase&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set incsearch&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Set magic on&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set magic&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; No sound on errors.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set noerrorbells&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set novisualbell&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set t_vb=&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; How many tenths of a second to blink&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set mat=4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Highlight search things&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set hlsearch&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; Turn backup off&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set nobackup&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set nowb&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set noswapfile&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; smart backspace&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;set backspace=start,indent,eol&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; switch buffers with Tab&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;map &amp;lt;C-Tab&amp;gt; :bn&amp;lt;CR&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;map &amp;lt;S-Tab&amp;gt; :bp&amp;lt;CR&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt; text-align: left&quot; class=&quot;MsoNormal&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;经过一番改造，我们的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;已经可以很顺手的编辑&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;.php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件了。不过要打造&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;开发环境还有很多&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;%B9%A4%D7%F7&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;工作&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;要做呢。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h2 style=&quot;margin: 13pt 0cm 7.8pt&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;打造&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Cambria&quot;&gt;PHP IDE&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;IDE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;左侧是目录导航，中间是编辑区域，而右侧则是&lt;a href=&quot;javascript:;&quot; target=&quot;_self&quot; onclick=&quot;javascript:tagshow(event, &#039;%B7%BD%B7%A8&#039;);&quot;&gt;&lt;u&gt;&lt;strong&gt;方法&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;列表，用于在已经打开的文件中快速跳转。在编辑区域按下&lt;/span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;span&gt;CTRL+X&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;键，还会显示已打开文件的列表。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;其他诸如自动补全、代码模板等功能，都应有尽有。看过了漂亮的截图，我们就来一步步打造&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;PHP IDE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;吧。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;NERDTree&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;实现目录导航&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;在进行&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;PHP&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;应用开发时，同时编辑多个文件是很正常的事情。所以必须有一个方便的目录导航工具，以便在目录结构间快速切换，找到需要编辑的文件。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中提供该类功能的插件很多，比较知名的有&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;project&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;、&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;winmanager&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;等。但笔者个人认为最好用的还是&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;The NERD Tree&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;这个插件。&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;NERDTree&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;不但可以显示完整的目录树结构，还可以将任何一个目录设置为根目录。并且提供了目录导航的书签功能，可谓非常方便。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;下载地址：&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://www.vim.org/scripts/script.php?script_id=1658&quot;&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;http://www.vim.org/scripts/script.php?script_id=1658&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载文件：&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;NERD_tree.zip&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;解压缩时，要把压缩包中的目录结构完整的解压缩到&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&#92;vimfiles&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录中。完成后，应该分别找到&lt;/span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;&lt;span&gt;$VIM&#92;vimfiles&#92;doc&#92;NERD_tree.txt&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件和&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&#92;vimfiles&#92;plugin&#92;NERD_tree.vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;文件。然后在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中输入命令&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;:helptags $VIM&#92;vimfiles&#92;doc&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;，将&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;NERDTree&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的帮助文档添加到&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;中。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;最后在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;添加如下内容：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; NERDTree&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;map &amp;lt;F10&amp;gt; :NERDTreeToggle&amp;lt;CR&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;重启&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;vim&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;后，按下&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;F10&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;键，就可以在左侧看到一个目录树了。在目录树窗口中按下&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;?&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;键可以查看详细的帮助信息。&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt; &lt;/span&gt;&lt;/span&gt; &lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;最常用的操作键有：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;table border=&quot;1&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; width=&quot;531&quot; style=&quot;width: 531px; height: 179px&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&nbsp;&nbsp;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;按键&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&nbsp;&nbsp;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;作用&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&nbsp;&nbsp;&lt;strong&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;C&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;（大写&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;C&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;键）&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&nbsp;&nbsp;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;将光标所在目录设置为根目录&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&nbsp;&nbsp;&lt;strong&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;u&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;（小写&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;u&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;键）&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&nbsp;&nbsp;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;转到上一级目录&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&nbsp;&nbsp;&lt;strong&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;o&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;（小写&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;o&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;键，不是&amp;ldquo;零&amp;rdquo;）&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&nbsp;&nbsp;&lt;span style=&quot;color: #365f91; font-family: 宋体&quot;&gt;展开（或折叠）光标所在目录的子目录。如果光标所在位置是一个文件，则在编辑窗口中打开该文件&lt;/span&gt;&lt;span style=&quot;color: #365f91&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;此外在目录树窗口中输入目录&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;&lt;strong&gt;&lt;span&gt;:Bookmark&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;收藏名&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;还可以将光标所在目录添加到收藏夹中。下次使用&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;&lt;strong&gt;&lt;span&gt;:BookmarkToRoot&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;收藏名&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;可以直接转到该目录，并且以该目录作为根目录。更多命令可以参考&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;NERDTree&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的帮助文档。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;h3 style=&quot;margin: 13pt 0cm 7.8pt 21pt&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;用&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;实现代码导航&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;解决了目录和文件导航问题，我们还要为代码之间的跳转提供辅助手段，&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;就是这样一个插件。&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;可以列出已打开文件中定义的类、函数、常量，甚至变量。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;下载地址：&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://www.vim.org/scripts/script.php?script_id=273&quot;&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;http://www.vim.org/scripts/script.php?script_id=273&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载文件：&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist_45.zip&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;压缩包需要完整解压缩到&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&#92;vimfiles&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录，并且用&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;:helptags $VIM&#92;vimfiles&#92;doc&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;命令索引&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;插件的帮助文档。&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;插件需要依赖&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;ctags&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;程序才能工作。目前常用的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;ctags&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;版本是&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;Exuberant Ctags&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;下载地址：&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://ctags.sourceforge.net/&quot;&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;http://ctags.sourceforge.net/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small; font-family: Calibri&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;下载文件：&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;ec57w32.zip&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;只需要把压缩包中的&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;ctags.exe&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;复制到&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;$VIM&#92;vim72&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;目录中即可。&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;ctags.exe&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;应该和&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;gvim.exe&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;在一个目录。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;最后在&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;_vimrc&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;添加下列内容，设置好&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;插件：&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-right: medium none; padding-right: 0cm; border-top: medium none; padding-left: 4pt; padding-bottom: 0cm; margin-left: 21pt; border-left: 1pt solid; margin-right: 21pt; padding-top: 0cm; border-bottom: medium none&quot;&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; =&amp;gt; Plugin configuration&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;&amp;quot; taglist&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Auto_Highlight_Tag = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Auto_Open = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Auto_Update = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Close_On_Select = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Compact_Format = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Display_Prototype = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Display_Tag_Scope = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Enable_Fold_Column = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Exit_OnlyWindow = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_File_Fold_Auto_Close = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_GainFocus_On_ToggleOpen = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Hightlight_Tag_On_BufEnter = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Inc_Winwidth = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Max_Submenu_Items = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Max_Tag_Length = 30&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Process_File_Always = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Show_Menu = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Show_One_File = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Sort_Type = &amp;quot;order&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Use_Horiz_Window = 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_Use_Right_Window = 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let Tlist_WinWidth = 40&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 0pt&quot; class=&quot;code&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small; color: #244061; font-family: Consolas&quot;&gt;let tlist_php_settings = &#039;php;c:class;i:interfaces;d:constant;f:function&#039;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin: 12pt 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;这里的设置是笔者个人习惯的设置，大家在熟悉&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;taglist&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;的具体设置之前可以先尝试一下。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0cm 0cm 7.8pt; text-indent: 21pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;&lt;span style=&quot;font-family: 宋体&quot;&gt;设置完成后，在编辑&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Calibri&quot;&gt;.php&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [比较靠谱]用 VIM 做 PHP 开发环境]]></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>