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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -