sponsor Vim development Vim logo Vim Book Ad

commentToggle : Yet another commenting script. Toggles comments on a per line basis.

 script karma  Rating 9/3, Downloaded by 549    Comments, bugs, improvements  Vim wiki

created by
kamil stachowski
script type
A little script for toggling commenting on a per line basis:
toggling means that commenting is turned on and off with one shortcut ("\;" by default), and
per line basis means that it only uses single line comments (greater flexibility).

In theory, should work for all filetypes; in practice it probably won't. As of version 0.1, definitions are included for 56 languages, and for all the others, it attempts to guess the comment symbol.
install details
Copy to your plugins directory (probably ~/.vim/plugins) and restart Vim or place anywhere and :source it.

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
commentToggle.vim 0.2 2008-11-10 6.0 kamil stachowski improved whitespace handling (now prettier than ever ;)
added 37 new languages (total 93)
commentToggle.vim 0.1 2008-11-08 6.0 kamil stachowski Initial upload
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.
SourceForge.net Logo