I am trying to map the NERDCommenterToggle command from the nerdcommenter plugin. I want to use "Ctrl+/" for this:
vmap <C-/> <plug>NERDCommenterToggle
nmap <C-/> <plug>NERDCommenterToggle
This won't work, I guess there should be some other name to map the slash key... I've already tried to find some info with :help, but I couldn't find anything.
/
is possible (although not really recommended) but mapping<c-/>
is probably not possible in terminal version of vim (unlike the gui one). This is a common problem of key codes (I tried to list some in this post) so it is very likely that you can only have this mapping working in GUI version of Vim (or neovim).<c-/>
in Vim in the GUI (at least if it's GTK2), and in a terminal where modifyOtherKeys is supported and enabled (xterm and maybe iterm).