Ⅰ. 插件描述
vim pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'qw8880000/ccvext'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'qw8880000/ccvext'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'qw8880000/ccvext'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/qw8880000/ccvext
Ⅳ. 文档说明
# ccvext
This vim plugin is cloned from http://www.vim.org/scripts/script.php?script_id=2943
I like ccvext.vim very much.
I write "Bundle 'ccvext.vim'" in my .vimrc, But my Bundle plugin does not source ccvext.vim when I open vim.
I don't why. So I cloned ccvext.vim to here in order to use it.
usage
ctags and cscope plugin for vim, more convenice way to use ctags and cscope in vim
Command:
\sy Generate tags and cscope database from current directory
\sc Configure window (Take care of the help info the window below)
Sample_1:
:e your_source_.h
:cd %:p:h
\sy
<Enter>
:EnQuickSnippet
:CscopeCtagsMenu
Sample_2:
:cd d:\
\sc
<Select your database and input enter>
:EnQuickSnippet
:CscopeCtagsMenu
Suggestion:
1. <Leader>sy is default script command, if it conflict with your other script you can change it at line 753 of script.
2. <Leader>sy is default script command, if it conflict with your other script you can change it at line 754 of script.
3. Command CscopeCtagsMenu, EnQuickSnippet, DiQuickSnippet are not mapped, for convenient way is map it to your own command in your .vimrc or _vimrc file.
4. If your are using gvim on window, CscopeCtagsMenu is pretty help to view source code.
5. This script is better work with script: taglist ( http://www.vim.org/scripts/script.php?script_id=273 )
6. This script is better work with script: MRU ( http://www.vim.org/scripts/script.php?script_id=273 )
7. This script is better work with script: Mark ( http://www.vim.org/scripts/script.php?script_id=1238 )
8. This script is better work with script: NERDTree ( http://www.vim.org/scripts/script.php?script_id=1658 )
Update (4.0.0)
- Fix some bug in the old script, and add some new function in gvim.
- Add command EnQuickSnippet and DiquickSnippet. This is a better way to use ctags, Now vim is working pretty like sourceinside, specially on windows givm.
Tips:
- CscopeCtagsMenu command maybe not wok on linux or cygwin terminal, this is for windows gvim.
- Friends help docs is not finished yet. If you have any problem with script or any suggestion, please click here http://groups.google.com/group/ccvext?msg=new&lnk=gcis or email me thatway.c@gmail.com
Requirement:
ctags and cscope. And windows user can download them from http://code.google.com/p/easy-vim/downloads/list