sponsor Vim development Vim logo Vim Book Ad

XML Indent : My XML Indent (align attributes)

 script karma  Rating 30/13, Downloaded by 3261  Comments, bugs, improvements  Vim wiki

created by
Aquila Deus
 
script type
indent
 
description
It aligns all attributes of a tag to the same column

<!-- there are 10 spaces before "xmlns:c=..." -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page";
          xmlns:c="http://java.sun.com/jstl/core";
          xmlns:tf="urn:jsptagdir:/WEB-INF/tags">

<jsp:root
  xmlns:jsp="http://java.sun.com/JSP/Page";
  xmlns:c="http://java.sun.com/jstl/core";
  xmlns:tf="urn:jsptagdir:/WEB-INF/tags">


(The original indent/xml.vim does only the second type of indent)
 
install details
Overide the original indent/xml.vim with this file
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xml.vim 0.993 2005-04-16 6.0 Aquila Deus Indent multi-line <!-- --> and <%-- --%>
xml.vim 0.992 2005-02-25 6.0 Aquila Deus Fix bug with <!DOCTYPE
xml.vim 0.991 2005-02-24 6.0 Aquila Deus fix <!-- --> problem. Now the line after comment tag is always aligned to the open tag of comment (regardless of the contents inside comment)
xml.vim 0.99 2005-02-22 6.0 Aquila Deus Initial upload
ip used for rating: 18.191.236.174

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github