Today's vim trick

rafael on 2006-01-26T13:45:34

Drop this in file ~/.vim/ftplugin/pod_podchecker.vim :

set makeprg=podchecker\ -warnings\ %\ 2>&1\\\|sed\ 's,at.line,:&,'
set errorformat=%m:at\ line\ %l\ in\ file\ %f
Then, when editing a .pod file, you can :make it; and then the command :cope will open a nice little window with all pod errors and warnings, correctly recognized, so you can jump on the corresponding lines in the pod source file only by selecting them.


also works with .pm files

mr_bean on 2006-01-27T07:43:08

If you put the vim commands in
perl_podchecker.vim, you can also check .pm
files.
I don't think I use :make for anything else, like
tags, for instance.
I didn't know about :copen. I wonder if it works
with tags.

using make to test and install modules

mr_bean on 2006-01-27T07:59:08

My previous reply make me wonder if I should use
vim's make command to test and install modules.

I use Module::Build but I could set that in vim.

Re:using make to test and install modules

rafael on 2006-01-27T09:10:57

I have already a :make setting for Perl sources. However when I want to run podchecker on a .pm file I do :setf pod beforehand.