sponsor Vim development Vim logo Vim Book Ad

simple comment : simple toggle comment script

 script karma  Rating 6/3, Downloaded by 566  Comments, bugs, improvements  Vim wiki

created by
Maxime Boisvert
 
script type
utility
 
description
Simple comment is a small script (eight lines) to toggle line comment. It use "s" as trigger key. You can easily add more langages, take a look at the .vim !
 
install details
Add this next line to your vimrc, s can be another key.

map <silent> s :call Co(&ft)<CR>

Put the .vim in your plugin folder or in your home and add "so ~/simple_comment.vim" to your vimrc.
 

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
simple_comment.vim 0.1 2009-11-06 7.0 Maxime Boisvert Initial upload
ip used for rating: 3.15.229.113

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.
   
Vim at Github