Questions tagged [vim-perl]

Vim editor bundle containing all Perl-related syntax and helper files for Perl 5 and Perl 6.

vim-perl is Vim editor bundle containing all Perl-related syntax and helper files for Perl 5 and Perl 6.

5 questions
6
votes
4 answers

Why is vim indenting my Perl code incorrectly?

I have a subroutine in Perl that should be indented like this: sub GetFiles { my $pwd = shift; my @input = @_; my @returned; my @DirectoryContent = &GetContentInformation(@input); foreach (@DirectoryContent) { my…
djhaskin987
  • 9,741
  • 4
  • 50
  • 86
3
votes
1 answer

Vim plugin to show current Perl subroutine

I'm trying to make a Vim plugin that will split the window on load and simulate a info bar at the top of my terminal. I've got it sorta working but I think I've either reached limits of my knowledge of Vim syntax or there's a logic problem in my…
Andrew Sohn
  • 675
  • 1
  • 6
  • 15
2
votes
2 answers

VIM 9 Word boundary Change for Perl files

In vim 8, if you had the following string: package Some::Package::Name; and you placed your cursor on the S in Some::Package::Name and did a cw it would replace the text Some with whatever you typed. In vim 9, cw now changes from S to the e in…
Todd
  • 698
  • 6
  • 19
2
votes
0 answers

DBD::mysql (Can't locate DBD/mysql.pm in @INC) error from running perl script with perl-support.vim (Ended up just being an incorrectly set PERL5LIB)

I'm attempting a short script that accesses a Mysql database. I've installed the relevant perl modules, DBI and DBD::mysql and their dependencies as far as I know. This is the only code in test.pl #!/usr/bin/env perl use strict; use warnings; use…
0
votes
1 answer

Can't use vim-perl unless I stop use "filetype indent on"

I find the vim-perl plugin here, but I can't enable it with: filetype plugin indent on (I changed the order of "plugin" and "indent" after seeing that link) I can't disable plugin support, so I tried an alternative way, if &filetype == 'perl' …
daisy
  • 22,498
  • 29
  • 129
  • 265