vim-commentary icon indicating copy to clipboard operation
vim-commentary copied to clipboard

gcc mapping stopped working

Open ScrumpyJack opened this issue 6 years ago • 4 comments

and i have idea why.

:verbose omap _ -> No mapping found

where can i start looking?

ScrumpyJack avatar Jan 14 '19 15:01 ScrumpyJack

_ is a Vim built-in. Does the regular gc map work?

tpope avatar Jan 14 '19 22:01 tpope

nope :(

here is what :map says

n  gcu           <Plug>Commentary<Plug>Commentary
n  gcc           <Plug>CommentaryLine
o  gc            <Plug>Commentary
n  gc            <Plug>Commentary
x  gc            <Plug>Commentary
o  g%          * v:<C-U>call <SNR>56_Match_wrapper('',0,'o') <CR>
v  g%          * :<C-U>call <SNR>56_Match_wrapper('',0,'v') <CR>m'gv``
n  g%          * :<C-U>call <SNR>56_Match_wrapper('',0,'n') <CR>

conflict?

ScrumpyJack avatar Jan 21 '19 19:01 ScrumpyJack

I also had this problem, and it turns out that for me, it was because I had set my timeoutlen setting too low. I turned it back up (to around 500), and now the gcc mapping works again. (If you don't know, timeoutlen is how long in milliseconds to wait for a mapping to complete.)

richtan avatar Oct 02 '19 03:10 richtan

@ScrumpyJack there's no conflict there. timeoutlen would be my guess too.

tpope avatar Oct 02 '19 13:10 tpope