Philip, et al -- ...and then Philip Mak said... % % I tinkered around a bit more and came up with this code for making Ctrl+J % (justify paragraph) work, even with quoted text.
Cool -- I like it a lot (or at least the *Para functions).
%
% It assumes that ^[> ]*$ is the paragraph separator, meaning that any line
% which is blank or only contains '>' and ' ' separates a paragraph. Here is
% the full code for making Ctrl+J work:
I'm sure I can figure out how to change that to '% ' so that it works for
me ;-)
...
% I'll keep refining this as I use it more and find any quirks. (If anyone
% here actually uses my code and has comments please let me know. :)
While I won't rebind to ctrl-j, I'll definitely use it for paragraph
hopping, which means it will get used in my f and F bindings.
%
% BTW, regarding those other suggestions involving binding "fmt" or "par"
% to a key, isn't it slow to fork a process every time you press the
% rejustify key, or is that overhead negligible?
I've thought of that, but I haven't ever been able to see any problems
with it, so I think the latter is the answer. I shell out to do
spell checking and sorting, too, and so perhaps I'm just used to it.
More importantly, though, I've tried to stick with a configuration that
works under stock vi on any system because I get dropped into so many
in my work. [I think I might be able to get away with this because {}
will still behave normally in a non-mail-reply environment, and if I am
replying to mail I can ensure that vim is loaded :-]
:-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!
msg21894/pgp00000.pgp
Description: PGP signature
