Martin --

...and then Martin Karlsson said...
% 
% Hi all.

Hello!


% 
% Question 1:
% 
% My editor is vim, and I wrap lines at 68.

Good for you :-)


% 
% When confronted with a 'longer-than-68' URL, my colourization-regexp
% won't cath the second-line part of the URL, e.g.
% 
% http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.ht
% ml

That's because this has been broken into two lines; see how it looks
above now that it's been scooted over for quoting.


% 
% What do I need in my regexp to make this work? Right now I have:
% 
% "(http|ftp|news|telnet|finger)://[^ ]*"
% 
% Additional improvements is also welcome :-)

Nothing, really, aside from not inserting a line break anywhere.  You
should find this

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

to be colored completely and correctly, no?


% 
% Question 2:
% 
% The above URL is actually 83 chars, and wrapped at 81. I suppose I'm
% missing something, since (I believe) I'm wrapping at 68?
% 
% set editor="vim \
%         -c 'set tw=68 et'"

I dunno why it should wrap at 81 unless you manually inserted a line feed.
vim will only break at white spaces and won't force a break in the line,
which is why that line went on past 68 chars (try typing a long URL with
embedded spaces for fun -- ugh!).  Can you provide further details?


% 
% -- 
% Martin Karlsson       | I welcome mail encrypted with PGP/GPG!
%  keyid & fingerprint in headers
%  visit http://www.gnupg.org for more info


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg24745/pgp00000.pgp
Description: PGP signature

Reply via email to