Closed Ryangithub10 closed 2 years ago
lua example:
vim.keymap.set("v", "<C-/>", "<Plug>Commentary", { noremap = true })
vim config
xmap <C-/> <Plug>Commentary
nmap <C-/> <Plug>Commentary
omap <C-/> <Plug>Commentary
nmap <C-/>c <Plug>CommentaryLine
nmap <C-/>u <Plug>Commentary<Plug>Commentary
Edit: map <C-/> to <Plug>CommentaryLine
I was use this and i want remmap the key! I don't want to type
gcc
, i want to press<ctrl> /
like other teks editor like vs code. But i don't know how to remmap operator key. I hope you understand what i am saying beacuse my english still suck 😅