sponsor Vim development Vim logo Vim Book Ad

simple comment : simple toggle comment script

 script karma  Rating 6/3, Downloaded by 703  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: 216.73.216.107

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github