Re: vim with fo+=a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, August 17 at 08:55 AM, quoth William Yardley:
> It's the same or worse with aw. Deleting one line (the To: line,
> for example) collapses several header lines all together in a way
> that's hard to fix. I guess I could make it think that "^[a-zA-Z]: "
> are comments, but that seems kind of ugly. Is there a way to ignore
> everything above the first \n\n?
It shouldn't collapse several header lines unless those header lines
all end in spaces. It probably breaks header folding, though.
As for ignoring things above the first \n\n, that's kinda hard, and
definitely hacky. You're probably going to want to add events to
either CursorHold/CursorHoldI or CursorMoved (it's been a while since
I played with this, since I don't use $edit_headers, and those are
specific to vim7). Essentially, get a pattern to match against
anything before the first \n\n and change your format options based on
that.
You may want to ask the vim list for details on what to add to your
vimrc.
~Kyle
- --
We *can't* simply do our science and not worry about the ethical
issues.
-- Bill Joy
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFE5JPtBkIOoMqOI14RAsB3AJ9cq+fpT3lTrqF2bGWpC1+CFGwAjgCgpAE8
Uu3XMDeAOyTXGst4D01oR8E=
=w93Q
-----END PGP SIGNATURE-----