vimnerdcommenter

Vim NERD Commenter \c deletes the line instead of toggling comments


The following works fine for me, it will comment out the current line:

<Leader>cc

but according to the docs (https://github.com/scrooloose/nerdcommenter#usage) if I want to toggle comments I do:

<Leader>c

which deletes the current line for me.

Am I missing something?


Solution

  • This command is actually <Leader>c<space>, not just <Leader>c (see this issue; this is not properly displayed in the readme).