html indenting in vim -
I do not know if this is possible, but is there an indent script address that will support this scenario?
(cursor is.)
given
& lt; Div & gt; | & Lt; Div & gt;
If I enter, I have to look for
& lt; Div & gt; | & Lt; / Div & gt; Instead of
& lt; Div & gt; | & Lt; Div & gt;
You can do something like this:
Function! Let's start with the new line intag (let's say lnum = getline ('.') Let's cnum = col ('.') Cheers = strapper (lnum, cnum - 2, 2) = ~ '& gt; & Lt; Return "\ & lt; CR & gt; \
Comments
Post a Comment