vim_comment_toggle : Simple and lightweight comment toggle scripts
script karma |
Rating 1/1,
Downloaded by 1130 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
A. G. Madi |
|
script type |
ftplugin |
|
description |
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.
https://github.com/WarpEngineer/vim_comment_toggle
|
|
install details |
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. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 44.220.184.63
|