Commentop.vim is a project mainly written in Vim Script, it's free.
commands and operators to comment/uncomment lines in many languages
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2708
!!NOTICE!! NO BACKWARD COMPATIBILITY FOR 1.0.2 OR BEFORE !!
Description: This plugin provides a set of commands and operators to comment or uncomment lines. Linewise comment token (such as double quote in vim script) is detected automatically by looking up filetype of the file. Filetypes working well by default: vim, python, perl, ruby, haskell, sh, bash, zsh, java, javascript, Makefile, tex With definition in this script, these also work: (c), cpp, csharp, php, matlab
You can also easily define your own comment token for filetype. Add below in your .vimrc: CommentopSetCommentType FILETYPE REMOVEPATTERN INSERTSTRING
plugin keymaps: