Transferred from: http://www.xefan.com/archives/83568.html
This is a very useful plugin for programmers, supporting multiple language complements, but also support a single line of comments, batch annotations, and other command mappings.
To use, download the plugin first: http://www.vim.org/scripts/script.php?script_id=1218
Place the Nerd_commenter.vim file in the ~/.vim/plugin directory and place the Nerd_commenter.txt file in the ~/.vim/doc directory.
Then use the <LEADER>CC shortcut key to annotate the selected line, <leader>cu to make a counter-comment.
Where <leader> is a keyboard mapping, which by default is the backslash "", the above shortcut keys are: cc and CU, respectively. You can use commands to customize, for example, the command: Let mapleader= "," Define <leader> as "," key.
And you don't understand. Use: Help Nerdcommenter commands to view assistance.
Nerd_commenter--vim Bulk Comment and anti-comment plugin