I am using vim The-NERD-Commenter
plugin along with vundle
. But I am not able to get the plugin to work.
I have my leader ley mapped to ,
. When I run the :scriptnames
command I see that ~\vimfiles\bundle\The-NERD-Commenter\plugin\NERD_commenter.vim
is listed in the output. I am also able to bring up help for NERDCommenter
using :help NERDCommenter
command which tells me that the plugin is installed correctly. But when I try to toggle a comment using <leader>c<space>
which translates in my case to ,c
it invokes the change command instead.
I have my .vimrc
file here https://gist.github.com/bAmrish/be1aac3aeb087925a3e5
Update:
It looks like if I remove the leader key mapping from my .vimrc
file then the plugin starts working with the default leader key \
.
Please let me know what am I doing wrong.
Thanks, Amrish