VIM: nerdcommenter

#vim

Toggles line comments.

https://github.com/scrooloose/nerdcommenter

Configuration

.vimrc

filetype plugin on

Examples

# Commends out current selection
<leader>cc

# Toggles comment based on topmost line
<leader>c<space>

# Toggles comment
<leader>ci

# Yank and add comment
<leader>cy

# Uncomment selection
<leader>cu