On Sat, Apr 18, 2009 at 1:27 AM, Matt Wozniski <[email protected]> wrote:

...
> A third option (which would only work if my belief about cindent only
> looking back one line is true) would be to see if the previous line
> matches /<![CDATA[/ and if so set the indent for the current line to 0,
> otherwise if you're not in a mx:Script tag return the XML indent, else
> return the cindent.

Thanks all for your responses.

This is actually the approach I took as it was the easiest.  So within
the CDATA tags I indent to 0 and leave everything to cindent.

Not optimal, but writing my own indenter would have been too much work
and error prone.

I thought about Ben's other suggestion of copying to a different
buffer and back again, but I think this has worked out well enough.

Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to