Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ViM Syntax for Perl Including MooseX::Declare Support
VimL Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
contrib Add missing highlighting in inline JS/CSS in Mason
ftdetect Highlight .html files as Mason if they start with Mason tags
t Better support for comments in <% %> Mason blocks
t_source Move into test suite
tools Fill last change template variable
.travis.yml Override rather than augment dependency installation Add contributing notes on testing
Changes Changelog entry for matchit fix
Makefile Move tarball creation into a script Add helper scripts for testing regressions Fix chomping for verify-corpus


This is the aggregation of all the various Perl-related syntax and helper files for Perl 5 and Perl 6.


You can install vim-perl using

They were all tested and work: please read the related documentation on the related sites.

The legacy method is to install just do a "make install" and you'll get the .vim files all installed in your ~/.vim directory.

Getting Help

Any bug reports/feature requests/patches should be directed to the vim-perl group.

When reporting bugs in the highlighting of items, please include an example file as well as a screenshot demonstrating the problem.


Can you add highlighting for Moose, Try::Tiny, Test::More, SQL in strings, etc?

We have syntax "extensions" under the contrib/ directory; you can find custom highlighting for these sorts of things there.

Curly braces inside of regexes/strings are considered when I use %

(See also GH #86)

Vim itself only considers double quotes in this scenario; the matchit plugin, however, can deal with this scenario and vim-perl's files are set up to work with it should you choose to use it.


If you would like to contribute to vim-perl (which would be greatly appreciated!), you may find the and scripts of use. What I do is drop the sources for Moose, Data::Printer, and Regexp::Debugger in the corpus directory and use the scripts to make sure my changes don't cause regressions in highlighting and folding.

Andy (

Something went wrong with that request. Please try again.