sponsor Vim development Vim logo Vim Book Ad

comments.vim : To Comment/Un-Comment single/multiple lines of code for different source files

 script karma  Rating 1085/451, Downloaded by 17828  Comments, bugs, improvements  Vim wiki

created by
Jasmeet Singh Anand
script type
Global Plugin to comment and un-comment lines in different source files in both normal and visual <Shift-V> mode
ctrl-c to comment a single line
ctrl-x to un-comment a single line
shift-v and select multiple lines, then ctrl-c to comment the selected multiple lines
shift-v and select multiple lines, then ctrl-x to un-comment the selected multiple lines
supports: c, c++, java, php[2345], proc, css, html, htm, xml, xhtml, vim, vimrc, sql, sh, ksh, csh, perl, tex, fortran, ml, caml, ocaml, vhdl, haskel and normal files
install details
For VIM 6 and higher -                                                                                  
Stick this file in your ~/.vim/plugin directory or in some other 'plugin' directory that is in your runtime path                                
For VIM 5 -                                                                                  
Stick this file somewhere and 'source <path>/comments.vim' it from your ~/.vimrc 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
comments.vim 2.12 2009-01-11 7.0 Jasmeet Singh Anand fix for haskel files as provided by Jean-Marie
ip used for rating:

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