Closed gegoune closed 3 years ago
you can use `map("n", "<C-_>", ":CommentToggle<CR>", {noremap=true,silent=true})
Hey, yeah this works:
nmap <C-_><C-_> :CommentToggle<CR>
Doesn't handle your other issue though. Been busy am still planning on getting to it!
Hey, yeah this works:
nmap <C-_><C-_> :CommentToggle<CR>
Doesn't handle your other issue though. Been busy am still planning on getting to it!
For visual mode just use map instead of nmap (map is for n, v and o modes, nmap only for normal mode)
Hey again.
I have used tcomment for a long time and gotten used to
<C-_><C-_>
mapping. So I did setline_mapping
to itit works fine except for visual mode. tcomment did support that, I know there is
operator_mapping
but I would like to keep that set to default value.Do you think I could somehow map
<C-_><C-_>
to toggle single line in normal mode and selection in visual mode too?Thanks!