<?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管理插件/插件管理器Vundle,vim下模仿sublime的多光标模式vim-multiple-cursors插件(Vundle的介绍及安装)，模仿Sublime Text 的ctrl + p功能的ctrlp.vim 这个插件,模仿sublime text 的ctrl + shift + f 在工程中全局查找某字符ZenCoding.vim插件。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Sat, 23 Dec 2017 10:05:45 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	vim查看插件：scriptnames<br/>:scriptnames<br/><br/>安装插件的主法，且把要安装插件的配置文件和~/.vimrc文件区分开来了，链接如下：<br/>https://blog.csdn.net/lu_embedded/article/details/76732965<br/><br/>Vim 自 7.0 开始支持 tab 页了，这就像很多数文本编辑器那样方便在多文件中切换，而不是只能使用 Buffer 暗地里来回切。默认时标签上显示 tab 序号加上当前打开的文件名。<br/>Vim 中关于 Tab 的操作命令如下：<br/>vim -p file1 file2 file3....&nbsp;&nbsp; 在多标签中打开多个文件<br/>:tabe[dit] 或&nbsp;&nbsp;:tabnew&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在当前标签后打开新的标签<br/>:tabn[ext] 或 gt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 切换到下一个 tab<br/>:tabp[revious] 或 gT&nbsp;&nbsp; 切换到上一个 tab<br/>:tabn [N]&nbsp;&nbsp;&nbsp;&nbsp;切换到第 N 个 tab<br/>:tabfir[st]&nbsp;&nbsp; 切换到第 1 个 tab<br/>:tabl[ast]&nbsp;&nbsp;&nbsp;&nbsp;切换到最后一个 tab<br/>:tabs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;列出所有的 tab<br/>:tabc[lose]&nbsp;&nbsp;关闭当前 tab,&nbsp;&nbsp;&nbsp;&nbsp;:q 命令也能关闭闭掉当前 tab<br/>:tabo[nly]&nbsp;&nbsp; 关闭所有其它 tab<br/><br/>Vim杂记：Sublime的配色方案，出现在SecureCRT里的Vim一闪一闪的，失败，取消此配色：<br/>http://www.cnblogs.com/fsjohnhuang/p/3911611.html<br/><br/>当Vim 打开了很多buffer 和tab 的时候，想要在不同窗口之间跳转，会比较麻烦，刚给SpaceVim 开发了一款简单的插件，就是在左侧列出所有tab：<br/>https://github.com/SpaceVim/SpaceVim<br/><br/>git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle<br/>编辑你当前用户下的.vimrc<br/><br/>[xiangdong@localhost ~]$ vim ~/.vimrc<br/>输入Vundle对应的配置<br/><br/>&quot;======================== Vundle 配置 ============================&nbsp;&nbsp;<br/>&quot;安装方法用这个:git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle<br/>set nocompatible<br/>filetype off<br/>set rtp+=~/.vim/bundle/vundle/ &quot;载入特定目录插件<br/>call vundle#rc()<br/>=============================================================<br/><br/>cat /home/xiangdong/.vimrc <br/><textarea name="code" class="php" rows="15" cols="100">
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/ &quot;载入特定目录插件
call vundle#rc()

&quot;======================= 输入要安装的插件 =========================
Bundle &#039;gmarik/vundle&#039;
Bundle &#039;Lucius&#039;
&quot;tag显示列表
&quot;Bundle &#039;vim-scripts/taglist.vim&#039;
&quot;增强的状态栏
Bundle &#039;bling/vim-airline&#039;
&quot;模拟sublime的ctrl-p快捷键，支持模糊搜索打开文件
Bundle &#039;kien/ctrlp.vim&#039;
&quot;配色工具
Bundle &#039;altercation/vim-colors-solarized&#039;
&quot;对ctrlp.vim模糊搜索算法改进的插件
Bundle &#039;JazzCore/ctrlp-cmatcher&#039;
&quot;&lt;([等括号自动补全插件（模拟sublime）
Bundle &#039;vim-scripts/delimitMate.vim&#039;
&quot;快速跳转光标的插件
Bundle &#039;easymotion/vim-easymotion&#039;
&quot;进行缩进对齐的插件
Bundle &#039;vim-easy-align&#039;
&quot;minibuff
Bundle &#039;vim-scripts/minibufexplorerpp&#039;
&quot;tagbar
Bundle &#039;majutsushi/tagbar&#039;
&quot;BerdTree目录
Bundle &#039;scrooloose/nerdtree&#039;
&quot;python语法检查
Bundle &#039;PyCQA/pyflakes&#039;
&quot;python tag compelte
Bundle &#039;vim-scripts/Pydiction&#039;
&quot;markdown 语法
Bundle &#039;plasticboy/vim-markdown&#039;
&quot;自动完成输入
Bundle &#039;SirVer/ultisnips&#039;
Bundle &#039;honza/vim-snippets&#039;
&quot;配色
Bundle &#039;flazz/vim-colorschemes&#039;
&quot;自动补全
Bundle &#039;SuperTab&#039;
&quot;行尾空格
Bundle &#039;dongweiming/vary.vim&#039;

&quot;python 自动补全
autocmd FileType python set omnifunc=pythoncomplete#Complete
&quot;php 自动补全
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
set fencs=utf-8,GB18030,ucs-bom,default,latin1
set number&nbsp;&nbsp;&quot;显示行号
syntax on&nbsp;&nbsp; &quot;语法高亮
syntax enable&nbsp;&nbsp; &quot;语法高亮
set showmatch&nbsp;&nbsp;&nbsp;&nbsp;&quot; 括号匹配
set shiftwidth=4&nbsp;&nbsp;&quot; operation &gt;&gt; indents 4 columns; &lt;&lt; unindents 4 columns
set tabstop=4&nbsp;&nbsp;&nbsp;&nbsp; &quot; a hard TAB displays as 4 columns
set expandtab&nbsp;&nbsp;&nbsp;&nbsp; &quot; insert spaces when hitting TABs
set softtabstop=4 &quot; insert/delete 4 spaces when hitting a TAB/BACKSPACE
set shiftround&nbsp;&nbsp;&nbsp;&nbsp;&quot; round indent to multiple of &#039;shiftwidth&#039;
&quot;set autoindent&nbsp;&nbsp;&nbsp;&nbsp;&quot; align the new line indent with the previous line
set hlsearch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; set height line search &quot;
set mouse=a&nbsp;&nbsp;&nbsp;&nbsp;&quot;set mouse on
filetype plugin on
let g:pydiction_location = &#039;~/.vim/bundle/Pydiction/complete-dict&#039;
let g:pydiction_menu_height = 20
</textarea><br/>在Vim中运行 :BundleInstall 等待安装完成。<br/>:BundleInstall<br/><br/><br/>ctrl + j/k&nbsp;&nbsp;# 进行上下选择<br/>ctrl + x&nbsp;&nbsp;&nbsp;&nbsp;# 在当前窗口水平分屏打开文件<br/>ctrl + v&nbsp;&nbsp;&nbsp;&nbsp;# 同上, 垂直分屏<br/>ctrl + t&nbsp;&nbsp;&nbsp;&nbsp;# 在tab中打开<br/>From:https://www.jianshu.com/p/c67e60abaa45<br/><br/>vim中的杀手级插件: vundle: http://zuyunfei.com/2013/04/12/killer-plugin-of-vim-vundle/<br/>安装插件<br/>打开一个vim, 运行:BundleInstall <br/><br/>或者在命令行运行 vim +BundleInstall +qall <br/><br/>安装完成后插件就能用了<br/><br/>####其它常用命令：<br/><br/>更新插件:BundleUpdate<br/>清除不再使用的插件:BundleClean,<br/>列出所有插件:BundleList<br/>查找插件:BundleSearch<br/>BundleUpdate报错：[Git] Unable to find remote helper for ‘https’<br/>可能是在安裝 git 時因為缺少 libcurl 套件所導致<br/><br/>但是環境沒有 libcurl 時一樣可以安裝，只是會不能走 HTTPS 通道而已<br/>若要修復這個問題，只需安裝 libcurl 後重新編譯安裝 git 就好：<br/># 系統為Ubuntu/Debain時，執行以下指令<br/>apt-get install -y libcurl4-openssl-dev <br/><br/># 系統為CentOS/RedHat/Fedora時，執行以下指令<br/>yum install -y libcurl-devel.x86_64<br/>From:https://caloskao.org/git-unable-to-find-remote-helper-for-https/<br/> <br/># 回到 git 原始碼目錄重新編譯並安裝 git<br/>cd git-2.7.4<br/>./configure<br/>make prefix=/usr/local all<br/>make prefix=/usr/local install<br/>git --version<br/><br/>:BundleUpdate ,出现：Cannot make changes, &#039;modifiable&#039; is off<br/>:set modifiable<br/>or<br/>:set ma<br/>来自vim 修改时提示 E21: Cannot make changes, &#039;Modifiable&#039; is off：https://www.jianshu.com/p/2a511ebcdd9a<br/>实践OK如下：<br/>vi ./bundle/vundle/autoload/vundle/scripts.vim<br/>166&nbsp;&nbsp; set modifiable=on&nbsp;&nbsp;<br/>报语法错：后又修改为恢复原来后，又莫名其妙的好了：<br/>164&nbsp;&nbsp; &quot; make buffer modifiable<br/>165&nbsp;&nbsp; &quot; to append without errors<br/>166&nbsp;&nbsp; set modifiable&nbsp;&nbsp; <br/><br/><br/><br/>结论：VIM有其和UI编辑器的局限，也有其灵活，Sublime有其存在价值，想学不一定能学好。多了快捷键还会冲突等得自己思考布局，是有 灵活性，而较为优秀的UI编辑器，早就精心设置好了，你只需要会开就成，所以，我只选择了vim-multiple-cursors,发现其它插件在vim-multiple-cursors的ctrl+n选中单词向前，Ctrl+p后通，Ctrl+x将选中变为不选中再会跳向下一个，选中完成后，可以使用大写i光标之前插入,大写c删除选中批量修改等vim编辑操作进入insert模式，开始修改文本.，好像出现了覆盖。不想深入，先用着，就这样吧：<br/><textarea name="code" class="php" rows="15" cols="100">
set fileformat=unix
set nu
set paste
set noswapfile
syntax on
set ts=4
set sw=4
set shiftwidth=4
set expandtab
set nocompatible
set cursorline
set enc=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /&#92;s&#92;+$/

nmap &lt;C-j&gt; mz:m+&lt;cr&gt;`z
nmap &lt;C-k&gt; mz:m-2&lt;cr&gt;`z
vmap &lt;C-j&gt; :m&#039;&gt;+&lt;cr&gt;`&lt;my`&gt;mzgv`yo`z
vmap &lt;C-k&gt; :m&#039;&lt;-2&lt;cr&gt;`&gt;my`&lt;mzgv`yo`z

highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /&#92;s&#92;+$/


fun! ShowFuncName()
&nbsp;&nbsp;let lnum = line(&quot;.&quot;)
&nbsp;&nbsp;let col = col(&quot;.&quot;)
&nbsp;&nbsp;echohl ModeMsg
&nbsp;&nbsp;echo getline(search(&quot;^[^ &#92;t#/]&#92;&#92;&#123;2&#125;.*[^:]&#92;s*$&quot;, &#039;bW&#039;))
&nbsp;&nbsp;echohl None
&nbsp;&nbsp;call search(&quot;&#92;&#92;%&quot; . lnum . &quot;l&quot; . &quot;&#92;&#92;%&quot; . col . &quot;c&quot;)
endfun
map f :call ShowFuncName() &lt;CR&gt;

let &amp;titlestring = expand(&quot;%:p&quot;)
if &amp;term == &quot;screen&quot;
&nbsp;&nbsp;set t_ts=^[k
&nbsp;&nbsp;set t_fs=^[&#92;
endif
if &amp;term == &quot;screen&quot; &#124;&#124; &amp;term == &quot;xterm&quot;
&nbsp;&nbsp;set title
endif

set tabstop=4
let g:auto_striptrail = &quot;php,python,ruby&quot;
let g:auto_striptab = &quot;php,python,ruby,cpp&quot;
&quot; autocmd BufReadPost * :call StripTrailingWhite()
&quot; autocmd BufReadPost * :call RetabIndents()


set nocompatible&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; be iMproved
filetype off&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
&quot; let Vundle manage Vundle
Bundle &#039;gmarik/vundle&#039;
&quot;my Bundle here:
&quot;
&quot; original repos on github
Bundle &#039;terryma/vim-multiple-cursors&#039;

let g:multi_cursor_use_default_mapping=0

&quot; Default mapping
let g:multi_cursor_next_key=&#039;&lt;C-n&gt;&#039;
let g:multi_cursor_prev_key=&#039;&lt;C-p&gt;&#039;
let g:multi_cursor_skip_key=&#039;&lt;C-x&gt;&#039;
let g:multi_cursor_quit_key=&#039;&lt;Esc&gt;&#039;

</textarea><br/>步骤一二就行，简单常用批量替换插件即可。<br/><br/>通过Vim+少量插件配置一个高效简洁的IDE:&nbsp;&nbsp;https://www.cnblogs.com/javaminer/p/3842689.html&nbsp;&nbsp;<br/>实践，先安装插件管理 再装vim-multiple-cursors这款插件：<br/>一）vim插件管理器：Vundle的介绍及安装：<br/>vim中的杀手级插件: http://zuyunfei.com/2013/04/12/killer-plugin-of-vim-vundle/&nbsp;&nbsp;##选中后, 可以进行增删替换a/c/x等,相关常用细节参考：http://foocoder.com/2014/04/09/mei-ri-vimcha-jian-vim-multiple-cursors/ ,移动光标到下一个单词的结尾,用命令”e“,里面的ctrl+e在SecureCRT里面并不能到行尾，用箭头键慢慢移动吧。<br/>这个得装：<br/>$git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim <br/>Initialized empty Git repository in /home/xiangdong/.vim/bundle/Vundle.vim/.git/<br/>remote: Counting objects: 3132, done.<br/>Receiving objects:&nbsp;&nbsp;22% (690/3132), 124.01 KiB &#124; 38 KiB/s&nbsp;&nbsp; <br/>vim +BundleInstall + vundle&nbsp;&nbsp; <br/><br/>二）http://www.wklken.me/posts/2015/06/07/vim-plugin-multiplecursors.html<br/>PluginInstall&nbsp;&nbsp;vim-multiple-cursors<br/>:Plugin &#039;terryma/vim-multiple-cursors&#039;<br/>这个：<br/>:PlugInstall multiple-cursors<br/><br/>从Github进行安装：<br/>Plugin &#039;terryma/vim-multiple-cursors&#039; <br/>vim +BundleInstall + vim-multiple-cursors<br/>vim +BundleInstall + ctrlp-funky&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #https://www.cnblogs.com/javaminer/p/3842689.html<br/>vim +BundleInstall + taglist.vim<br/>vim +BundleInstall + nerdtree<br/>链接：http://zuyunfei.com/2013/04/12/killer-plugin-of-vim-vundle/<br/><br/><br/>三）Bundle &#039;ctrlpvim/ctrlp.vim&#039;&nbsp;&nbsp;#这个不是？？<br/><br/>Bundle &#039;kien/ctrlp.vim&#039;<br/>github:https://github.com/kien/ctrlp.vim这是一个超赞的插件,如果使用过sublime-text2,那么肯定很熟悉ctrlp。它可以快速的帮助我们找到项目中的文件。<br/>https://www.jianshu.com/p/SRsmZW<br/><br/><textarea name="code" class="shell" rows="15" cols="100">
set fileformat=unix
set nu
set paste
set noswapfile
syntax on
set ts=4
set sw=4
set shiftwidth=4
set expandtab
set nocompatible
set cursorline
set enc=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /&#92;s&#92;+$/

nmap &lt;C-j&gt; mz:m+&lt;cr&gt;`z
nmap &lt;C-k&gt; mz:m-2&lt;cr&gt;`z
vmap &lt;C-j&gt; :m&#039;&gt;+&lt;cr&gt;`&lt;my`&gt;mzgv`yo`z
vmap &lt;C-k&gt; :m&#039;&lt;-2&lt;cr&gt;`&gt;my`&lt;mzgv`yo`z

highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /&#92;s&#92;+$/


fun! ShowFuncName()
&nbsp;&nbsp;let lnum = line(&quot;.&quot;)
&nbsp;&nbsp;let col = col(&quot;.&quot;)
&nbsp;&nbsp;echohl ModeMsg
&nbsp;&nbsp;echo getline(search(&quot;^[^ &#92;t#/]&#92;&#92;&#123;2&#125;.*[^:]&#92;s*$&quot;, &#039;bW&#039;))
&nbsp;&nbsp;echohl None
&nbsp;&nbsp;call search(&quot;&#92;&#92;%&quot; . lnum . &quot;l&quot; . &quot;&#92;&#92;%&quot; . col . &quot;c&quot;)
endfun
map f :call ShowFuncName() &lt;CR&gt;

let &amp;titlestring = expand(&quot;%:p&quot;)
if &amp;term == &quot;screen&quot;
&nbsp;&nbsp;set t_ts=^[k
&nbsp;&nbsp;set t_fs=^[&#92;
endif
if &amp;term == &quot;screen&quot; &#124;&#124; &amp;term == &quot;xterm&quot;
&nbsp;&nbsp;set title
endif

set tabstop=4
let g:auto_striptrail = &quot;php,python,ruby&quot;
let g:auto_striptab = &quot;php,python,ruby,cpp&quot;
&quot; autocmd BufReadPost * :call StripTrailingWhite()
&quot; autocmd BufReadPost * :call RetabIndents()


set nocompatible&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; be iMproved
filetype off&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
&quot; let Vundle manage Vundle
Bundle &#039;gmarik/vundle&#039;
&quot;my Bundle here:
&quot;
&quot; original repos on github
Bundle &#039;terryma/vim-multiple-cursors&#039;
Bundle &#039;kien/ctrlp.vim&#039;
Bundle &#039;tacahiroy/ctrlp-funky&#039;
Bundle &#039;vim-scripts/taglist.vim&#039;
Bundle &#039;scrooloose/nerdtree&#039;

&quot; Bundle &#039;Lokaltog/vim-powerline&#039;
&quot;..................................
&quot; vim-scripts repos
Bundle &#039;YankRing.vim&#039;
Bundle &#039;vcscommand.vim&#039;
Bundle &#039;ShowPairs&#039;
Bundle &#039;SudoEdit.vim&#039;
Bundle &#039;EasyGrep&#039;
Bundle &#039;VOoM&#039;
Bundle &#039;VimIM&#039;
&quot;..................................
&quot; non github repos
&quot; Bundle &#039;git://git.wincent.com/command-t.git&#039;
&quot;......................................

let g:multi_cursor_use_default_mapping=0

&quot; Default mapping
let g:multi_cursor_next_key=&#039;&lt;C-n&gt;&#039;
let g:multi_cursor_prev_key=&#039;&lt;C-p&gt;&#039;
let g:multi_cursor_skip_key=&#039;&lt;C-x&gt;&#039;
let g:multi_cursor_quit_key=&#039;&lt;Esc&gt;&#039;

let g:ctrlp_map = &#039;&lt;c-p&gt;&#039;
let g:ctrlp_cmd = &#039;CtrlP&#039;
let g:ctrlp_working_path_mode = &#039;0&#039;


map &lt;F6&gt; :CtrlPFunky&lt;cr&gt;
let g:ctrlp_extensions = [&#039;funky&#039;]
let g:ctrlp_funky_syntax_highlight = 1
</textarea><br/>================================================<br/>一）推荐vim-multiple-cursors这款插件，是模仿sublime的多光标模式，查找规则就是vim默认的单词匹配（就是你按*时查找单词的规则），像这样：大部分时候还是可以用来做rename refactor的。不过正如楼上所说，做项目还是老实用IDE吧 :)<br/>From:https://zhuanlan.zhihu.com/p/23262156 ，在命令行模式下用批量替换啊。:%s/item/item /gc 加c是让你一个个确认。<br/>插件地址：https://github.com/terryma/vim-multiple-cursors<br/><br/>二）ctrlp.vim 这个插件是模仿Sublime Text 的ctrl + p功能，在工程中快速定位某个文件。<br/>三） &#039;ZenCoding.vim&#039;. &quot; 模仿sublime text 的ctrl + shift + f 在工程中全局查找某字符. &quot; 需先安装ack (这个有Shell下的Linux命令Grep，用了插件快捷键没有了)<br/><br/><br/>Ctrl-P在其他编辑器里已经是默认的全局搜索键了，vim 也有ctrlp（https://github.com/ctrlpvim/ctrlp.vim）插件，它可以搜索文件路径上的文件名，还有最近文件等各种快捷打开。看起来似乎挺好的，直到fzf.vim（https://vimawesome.com/plugin/fzf-vim）的出现。fzf的搜索速度更快，而且异步，不会在初始化搜索的时候卡死界面响应。<br/><br/>安装好fzf，然后加载 fzf.vim 插件，将ctrl-p 键位映射成 :Files&lt;CR&gt;，就可以体验到高速搜索，中间根本不用等界面响应，等关键词输入，结果就出来了。配合 ag 可以屏蔽掉.gitignore 内的文件。<br/><br/>搜索除了文件快速打开，还有全局行内搜索，之前vimgrep 一直是一个比较常用的命令，然而体验不太好，需要指定搜索内容和搜索范围，还要输一些命令，而且略慢。那么ag（https://github.com/ggreer/the_silver_searcher）一定是目前最好的选择。不管其他因素，进到项目主页，一看是 c 写的基本上就已经稳了。实际上它也确实是目前为止最快的行内搜索。使用的话，需要先安装命令行ag（https://github.com/ggreer/the_silver_searcher），然后安装ack.vim（https://vimawesome.com/plugin/ack-vim），注意不要用ag.vim 它已经不被支持了。<br/><br/>不过有个问题，fzf也内置了对 ack 的支持，只是比ack.vim 不如，所以需要重新映射一个 ack.vim 使用的键位，我个人用了 &lt;Leader&gt;f 意为 find。
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践不理想]vim管理插件/插件管理器Vundle,vim下模仿sublime的多光标模式vim-multiple-cursors插件(Vundle的介绍及安装)，模仿Sublime Text 的ctrl + p功能的ctrlp.vim 这个插件,模仿sublime text 的ctrl + shift + f 在工程中全局查找某字符ZenCoding.vim插件。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>