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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -