/vim-comment

Another Comment Plugin

Primary LanguageVim Script

Vim Comment

Usage

Press <leader>x to toggle comment.

Install

  • Just put the files into ~/.vim/ or <HOMEDIR>\vimfiles\ (for Windows).

  • Use vundle:

      Plugin 'alvan/vim-comment'
    
  • Use other package manager.

Options

Set in your vimrc (optional):

let g:comment_format = {'vim': '" %s'}
" OR
autocmd FileType html setlocal cms=<!--%s-->

let g:comment_keymap = {'n': '<leader>x', 'v': '<leader>x'}