vim_comment_toggle : Simple and lightweight comment toggle scripts
| script karma
Downloaded by 162
Comments, bugs, improvements
script versions (upload new version)
|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.|
Click on the package to download.
ip used for rating: 184.108.40.206