EnhCommentify.vim - comment lines in a program : vim online
Keywords: Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news

EnhCommentify.vim : comment lines in a program
script karma | Rating 900/288, Downloaded by 11972
created by
Meikel Brandmeyer
script type
utility
description
This script is strongly based on ToggleCommentify.vim (vimscript #4) of Vincent Nijs. I extended it with some nice features, but Vincent wants to keep his script simple. So, he suggest me to put my modifications to vim online by myself. Well, here we go: New features: * MultiPart-comment-strings are now possible (eg. /* */, <!-- -->) * MultiPart-comments inside comments are now escaped. * Supported languages: Vim, C, C++, PHP, Perl, ox, Tex, Sh, LISP, Python, HTML, XML, Java, JProperties, CAOS, CSS a. o. * length of comment-strings is computed dynamically * comment strings are escaped to prevent problems with regular expressions * option to turn "commentification" of empty lines on or off * commentifies multiple lines in visual mode
install details
Simply drop the script in your .vim/plugin directory. There is a detailed EnhancedCommentify.txt, since there are to much options to explain here. Put it in your .vim/doc directory and issue the ':helptags ~/.vim/doc' command. ':help EnhancedCommentify' should then give you any information you need in order to use the new features of the script.
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
--- | --- | --- | --- | --- | ---
EnhancedCommentify-2.2.tar.gz | 2.2 | 2004-09-27 | 6.0 | Meikel Brandmeyer | New features: * Keybindings may be turned off in the different modes. (eg. no bindings in insert mode) * Keybindings may be local to the buffer now. * Keybindings may be turned off in case of an unknown filetype. Bugfixes: * Fixed a problem with UseSyntax. (thanks to Pieter Naaijkens) * Fixed Ocaml support. (thanks to Zhang Le)
EnhancedCommentify-2.1.tar.gz | 2.1 | 2004-01-26 | 6.0 | Meikel Brandmeyer | This is version 2.1 of the EnhancedCommentify Script. New features: * one-block commenting for multipart comments * if possible, use commentstring option in order to determine the comment strings. * moved autocmd to BufWinEnter in order to fix modeline usage * experimental parsing of comments option to find out middle string for new one-block feature. Bugfixes: * fixed problems with tabs if align-right option is used * fixed case sensitive check for overrideEL (thanks to Steve Hall) * fixed problems with javascript filetype (thanks to Brian Neu) * changed init-autocmd to BufWinEnter to fix usage of modeline
EnhancedCommentify-2.0.tar.gz | 2.0 | 2002-09-11 | 6.0 | Meikel Brandmeyer | Version 2.0 is finally out. With a whole bunch of changes. Most important: The script is now released under BSD license. But this should be no restriction I think. Bugfixes: * ''' is an invalid expression (thanks to Zak Beck) * AltOpen/Close set to '' could cause problems (thanks to Ben Kibbey) * bug in keybinding code (thanks to Charles Campbell) * trouble with 'C' in cpo (thanks to Luc Hermitte) New features: * produces now block comments, eg: /*int a; char b;*/ * option to add ident string only at opener * options may now be set on a per buffer basis. I can only recommend (again!) to read the help file for new options and explanations for old ones. This release contains script und helpfile in a tar.gz.

| 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 vim@vim.org after searching the archive. Help Bram help Uganda. |  |