Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Re: Using vim for highlighting in Perl

by zakb (Pilgrim)
on Mar 28, 2003 at 09:05 UTC ( [id://246432]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Using vim for highlighting in Perl
in thread Using vim for highlighting in Perl

The patch is on my scratchpad, assuming you have diff/patch. Unfortunately, the maintainer of the syntax file says that adding the patch slows down vim on his 160MHz machine, so he's not going to add it - which I find a little strange to be honest. He suggests using the the pipe character | instead. To my mind, the ! is more common, but TMTOWTDI I suppose. Anyway, the patch doesn't seem to slow vim down at all on my machine (700MHz, Win2K).

Your pod seems to be fine in both set ft=perl and set ft=pod, provided I make it say =cut at the end and not =cu. That's with the latest perl.vim from the link I gave earlier, dated 23 Mar 2003. What filetype are you using (:set ft?)?

  • Comment on Re: Re: Re: Re: Using vim for highlighting in Perl

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Using vim for highlighting in Perl
by tachyon (Chancellor) on Mar 28, 2003 at 11:00 UTC

    The =cu was a cut and paste typo. I have been just letting it default (>>seems<< to be using perl syntax on .pl files as normal code is now fine(ish)) The pod above highlights with all sorts of highlights - like a very broken syntax highlight. I will grab the patch off you pad. Thanks very much. I have the latest syntax files now from the maintainer which still wierd out on this pod. It is usually several 1000 lines down at the end of the code.

    I guess I will just have to fix it myself.

    A PI 166? Even my linux devel box is a PII 266. My last PI just died of natural causes. I generally get to run vim on server class boxes which usually have multiple PIII Xeons > 1GHz and lots of RAM so speed is rarely an issue.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      Ok. You can find out what filetype vim thinks your file is - and thus which syntax - by doing :set ft?.

      Just another quick thought - you might want to do a let perl_include_pod = 1 which might fix highlighting POD in perl code.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://246432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found