sponsor Vim development Vim logo Vim Book Ad

commenter : A handy comment/uncomment plugin

 script karma  Rating 20/14, Downloaded by 2054  Comments, bugs, improvements  Vim wiki

created by
Sparks Lu
 
script type
utility
 
description
Usage:
   In normal mode,press <Leader>c to comment/uncomment current line.
   If current line is blank line and no non-blank line before it, insert file header comment. The file header comment use template files. These templates should be placed to  ~/.vim/plugin/templates/ directory. template file name is same as cvim plugin.
   If current line is function declaration line, and if g:DoxygenFuncDesc is set to 1, insert Doxygen style function comment. Else use function comment template file.
   In visual mode, press <Leader>c to comment/uncomment blocks. This only applies to c source or header files.

Mainly targeted:  c,h,cpp file modification
Also applicable:   java,sh,vim,awk,sed,perl,python file modification
 
install details
Linux: Copy commenter.vim to $HOME/.vim/plugin/
 

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
commenter.vim 0.8.1 2005-10-10 6.0 Sparks Lu Use <Leader>ch to add #ifndef/#define/#endif lines for header files
Insert comment symbol at beginning of line for block comment
commenter.vim 0.8 2005-02-20 6.0 Sparks Lu Allow any count of whitespace after comment symbol when uncommont line.
Insert commont symbol immediately before first non-whitespace character instead of beginning of line.
commenter.vim 0.7 2004-10-12 6.0 Sparks Lu Use <Leader>c to commenter/uncommenter instead of Ctrl-c.
Python supported.
commenter.vim 0.6.1 2004-07-16 6.0 Sparks Lu Initial upload
ip used for rating: 3.143.168.172

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