perlhelp.vim


Ⅰ. 插件描述

Interface to perldoc

Ⅱ. 基本信息

创建日期:  2007-06-04
使用用户:  4
Github星:  2
插件作者:  Lorance Stinson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/perlhelp-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/perlhelp-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/perlhelp-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/perlhelp.vim

Ⅳ. 文档说明

A plugin that provides quick and easy access to perldoc. The perldoc text is displayed in a new window. This window is reused for resulting lookups if left open. When looking up a module filetype is set to perl so it is correctly highlighted, if syntax highlighting is turned on.

Functions:
The functions can accept an argument for the topic to lookup. If no argument is supplied they will prompt for the topic.
PerlFAQ - Lookup a regular expression using perldoc -q.
PerlHelp - Lookup a topic using perldoc.
PerlFunc - Lookup a function using perldoc -f.
PerlMod - Lookup a module using perldoc -m.
PerlVar - Lookup a Perl builtin variable in the perlvar page.

Key Mappings:
<Leader>ph - Lookup the selected text in visual mode or the word under the cursor in normal mode using perldoc.
<Leader>PH - Prompt for a topic to lookup using perldoc.
<Leader>pf - Lookup the selected text in visual mode or the word under the cursor in normal mode using perldoc -f.
<Leader>PF - Prompt for a function to lookup using perldoc -f.
<Leader>pm - Lookup the selected text in visual mode or the word under the cursor in normal mode using perldoc -m.
<Leader>PM - Prompt for a module to display using perldoc -m.
<Leader>pq - Lookup the selected text in visual mode or the word under the cursor in normal mode using perldoc -q.
<Leader>PQ - Prompt for a regular expression to lookup using perldoc -q.
<Leader>pv - Lookup the selected text in visual mode or the word under the cursor in normal mode in the perlvar page.
<Leader>PV - Prompt for a Perl builtin variable and look it up in the perlvar page.

The <Leader> key is normally ''. Thus to lookup the word under the cursor type 'ph'.

Tip:
Adding the following to your vimrc file will make POD documentation in Perl modules easier to read:
let perl_include_pod=1

If you find any problems or have any suggestions please feel free to email me at LoranceStinson+perlhelp AT gmail DOT com.

Also available at http://lorance.freeshell.org/perlhelp/

添加新评论