2009年11月14日 星期六

perl-completion



http://github.com/c9s/perl-completion.vim

which is defined with omni-completion. when filetype is perl , the completion function will be binded. this plugin completes function names for you and also base class function names.

you need to install VIM::Packager first, it solve dependencies for you. the depended scripts will be retrived from an url , which is on github.com.

remember to add path ~/.vim/bin to your $PATH env variable to make sure vimscript can find the scripts. the parsing utils will be installed in ~/.vim/bin/.

$ sudo cpan VIM::Packager

# run vim-packager to convert VIM meta file (VIMMETA)
$ vim-packager build
$ make install

just press C-x C-o after a $self-> or Package::Something-> to pop the completion menu up when you are in perl files.
and you can also integrate this to your autocomplpop plugin.

will support Moose TypeConstrant , Accessor completetion in future.