

GitHub - vim-perl/vim-perl: Support for Perl 5 and Perl 6 in Vim
source link: https://github.com/vim-perl/vim-perl
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
vim-perl
This is the aggregation of all the various Perl-related syntax and helper files for Perl 5.
For Perl 6 files, please see vim-perl6.
Installation
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.
Installing using vim-plug
In your .vimrc
:
call plug#begin('~/.vim/plugged')
Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
call plug#end()
Re-source your configuration, do PlugInstall
, and you're done.
The do
argument is optional, and can be used
if you want to enable any of the optional sub-syntaxes.
The perl
argument is also optional, and only required if you want to
lazy-load the plugin only if dealing with Perl files.
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.
FAQ
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. To enable any of them, just drop the relevant
file in a after/syntax/perl
directory visible to vim.
$ cp contrib/dancer.vim ~/.vim/after/syntax/perl/
You can also populate the local after/syntax/perl/
via make
:
$ make dancer moose
$ ls after/syntax/perl
dancer.vim moose.vim
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.
Recommend
-
5
Question regarding rlm_perl and Access-Challenge Skip to site navigation (Press enter) Yes, that worked a charm. Thanks for...
-
13
RAGANWALD.COM Ruby's Hashes and Perl's Autovivification, in JavaScript The Ruby programming language has the notion of a
-
4
Server Discovery And Monitoring In PyMongo, Perl, And C(Cross-posted from the MongoDB Blog.) How does a MongoDB driver discover and monitor a single server, a set of mongos servers, or a replica set? How does it determine what...
-
6
Post navigation It’s been years since I’ve had to hack on anything XML-related, but a recent project at work has me once again jumping into the waters of genera...
-
4
GSoD 2021: Perl’s Content Audit and Gap Analysis
-
1
Question regarding rlm_perl and Access-Challenge Question regarding rlm_perl and Access-Challenge Harry J Walsh
-
8
Yuki Kimoto Posted on Mar 22...
-
5
Explains how to install msys2 and Perl on Windows. The msys2 is a software to build a Linux-like environment on Windows. Perl can be installed on msys2. This article is originally
-
17
vim syntax highlighting for perl, to use colors instead of \ and "...
-
17
Comparing regular expressions in Perl, Python, and Emacs Regular expressions are very handy, but unfortunately they are imp...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK