EnhancedCommentify
EnhancedCommentify is a script for the Vim editor. It is used to comment resp. decomment lines of code. It uses to the filetype functionality of Vim to automatically deduce the comment delimiter suitable for the currently edited file.
Features:
Multi part comment strings are possible (eg. /* */, )
Multi part comments inside comments are automatically escaped. (Eg. C prohibits nesting comments. So commenting a line multiple times with the script would break the code.)
Supports all languages with a ftplugin, which defines commentstring. Freely extensible by the user to support any arbitrary filetype.
Using visual mode multiple lines may be commented in one go.
Tries to use the syntax highlighting to identify embedded filetypes. (Eg. php & html)
EnhancedCommentify was inspired by and in the beginning based on ToggleCommentify.vim by Vincent Nijs (Vimscript 4).
Latest releases can be found at http://www.vim.org as Vimscript 23.
The Mercurial repository is available via http://kotka.de/repositories/hg/ec.