Ⅰ. 插件描述
improved perl syntax highlightingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/perl-mauke-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/perl-mauke-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/perl-mauke-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/perl-mauke.vim
Ⅳ. 文档说明
This file is based on the perl.vim syntax definition that comes with vim, but with some heavy modifications intended to improve vim's perl highlighting.
The list of changes includes:
- 'new' and 'croak' are not keywords and no longer highlighted as such
- Special highlighting for pragmas (e.g. "use warnings") now applies to all pragmas coming with perl
- Fixed number highlighting ("0X" is not a valid hex prefix, "L" is not a valid suffix)
- Fixed escape sequence highlighting ("X123" is not a hex escape, "123" is limited to three octal digits)
- Lots of improvements in the matching of quoted constructs:
- vim no longer thinks "!" is a quoting operator (so "!!" works right)
- support for arbitrary quoting delimiters (e.g. "m%...%" works)
- I've also tried to make nesting work (e.g. "s[foo[bar]][b[a]z]g")
- Full support for subroutine definitions (parsing of prototypes and attributes)
- Recognizes v-strings and statement labels
- "=>" quotes its LHS, even if it's a keyword
- Perl 5.10 support: new keywords ('given', 'when', 'default', 'state', 'break') and regexp control operators ('PRUNE', 'SKIP', 'COMMIT', etc.)