I have downloaded the vim-commentary plugin for commenting in vim. I was trying to remap the default shortcuts for the plugin so as to use ctrl+/ for commenting and remove commenting (default is gc
). I was also trying to create a map so that I can comment while being in insert mode.
In my vimrc I wrote this:
vnoremap <C-/> gc
inoremap <C-/> <Esc>VgcA
The first one isn't doing anything. While the second one stops working after entering the Visual mode. What should I do to correct these remaps?
map
here: When you type<c-/>
you want it to execute what vim-commentary mapped togc
not the built-ingc
feature.