Ⅰ. 插件描述
perl pod helpersⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'c9s/pod-helper-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'c9s/pod-helper-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'c9s/pod-helper-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/pod-helper.vim
Ⅳ. 文档说明
INSTALL
Install VIM::Packager
$ cpan VIM::Packager
$ vim-packager build
$ make install
USAGE
specify your favorite version style:
currently we provide '365' (365days and year) , 'unix'
(unix timestamp) by default.
add this to your .vimrc to setup version style:
let g:pod_version_style = '365'
bind command to your favorite keys:
nnoremap <silent> <C-c><C-p> :FillPodHere<CR>
nnoremap <silent> <C-c><C-b> :BumpVersion<CR>
editing
move your cursor to the subroutine declaration.
sub my_sub { # move to this line
}
then press
<C-c><C-p>
the pod will be filled.
we also support Template::Declare, pod will be filled like this:
=head2 TEMPLATE xxx
=cut
template 'xxx' => sub { # press <C-c><C-p> here
};