vim_comment_toggle : Simple and lightweight comment toggle scripts
| script karma
Downloaded by 138
Comments, bugs, improvements
|A. G. Madi|
|A very simple and lightweight way to toggle comments on one or more lines. It works in normal mode and visual mode.
By default, the toggle is mapped to <CTRL+_> but can be easily changed.
Files included for: C, C++, Python, Erlang, shell scripts.
Currently, only one comment type is supported at a time. If a different file type is loaded in the same Vim session, then a warning is given and the keys are not remapped. I'll be looking into making it smarter in the future as long as it stays simple.
|Just copy the scripts to ~/.vim/ftplugin or just add the 'ToggleComment()' function and key maps in the files to files that are already in the 'ftplugin' directory.|
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 220.127.116.11