Press <leader>x to toggle comment.
-
Just put the files into ~/.vim/ or <HOMEDIR>\vimfiles\ (for Windows).
-
Use vundle:
Plugin 'alvan/vim-comment'
-
Use other package manager.
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'}