Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc mapping stopped working #105

Open
ScrumpyJack opened this issue Jan 14, 2019 · 4 comments
Open

gcc mapping stopped working #105

ScrumpyJack opened this issue Jan 14, 2019 · 4 comments

Comments

@ScrumpyJack
Copy link

and i have idea why.

:verbose omap _ -> No mapping found

where can i start looking?

@tpope
Copy link
Owner

tpope commented Jan 14, 2019

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

@ScrumpyJack
Copy link
Author

ScrumpyJack commented Jan 21, 2019

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?

@richtan
Copy link

richtan commented Oct 2, 2019

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.)

@tpope
Copy link
Owner

tpope commented Oct 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants