sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

vim-tag-comment : property comments HTML/XML tags

 script karma  Rating 4/1, Downloaded by 325    Comments, bugs, improvements  Vim wiki

created by
Mark Volkmann
 
script type
utility
 
description
This plugin provides commands that "properly" comment and uncomment XML and HTML tags.
All the plugins I have seen for this would take the following:

<foo>
  <bar>baz</bar>
</foo>

and comment it like this:

<!--<foo>-->
  <!--<bar>baz</bar>-->
<!--</foo>-->

This is ugly and excessive!
I believe the proper way to do this is:

<!--foo>
  <bar>baz</bar>
</foo-->

See the README file for more detail.
 
install details
Install with Pathogen or copy plugin/tag-comment.vim to .vim/plugins.
 

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
vim-tag-comment.zip 1.2 2015-06-18 7.0 Mark Volkmann This version avoids remapping keys if they are already mapped.
tag-comment.zip 1.1 2015-06-05 7.0 Mark Volkmann added comments to comment tags that are not closed or closed in the shorthand way
renamed the commands
added default key mappings
added test.html for trying it out
xml-comment.zip 1.0 2015-06-01 7.0 Mark Volkmann Initial upload
ip used for rating: 54.211.225.175

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.
   
SourceForge.net Logo