Ⅰ. 插件描述
Perl module source for unite.vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yuuki1/unite-perl-module-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yuuki1/unite-perl-module-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yuuki1/unite-perl-module-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yuuki1/unite-perl-module.vim
Ⅳ. 文档说明
# unite-perl-module.vim
unite-perl-module.vim is a plugin for unite.vim, which is a source for searching your installed CPAN module names.
It is inspired by rhysd/unite-ruby-require.vim.
Usage
Global Module List
:Unite perl/globalLocal Module List
It searches module in 'lib', 'extlib', 'local/perl5/lib' directories in your project.
:Unite perl/localNotice
The performance of unite-perl-module.vim may be slow when you are in directories with many child ones like HOME directory.
This is because of the behavior of 'cpan -l', which is for listing up CPAN file.
'cpan -l' searches current directory recursively, so it may be slow.
It's no problem if you are widtin a project directory.