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

Conflict with ctrlp #77

Open
sassanh opened this issue Feb 3, 2016 · 2 comments
Open

Conflict with ctrlp #77

sassanh opened this issue Feb 3, 2016 · 2 comments

Comments

@sassanh
Copy link
Contributor

sassanh commented Feb 3, 2016

If you type <c-p>comm "really fast" (in less than .3s for example) while ctrlp and easyclip plugins are active, it'll show "E21: Cannot make changes, 'modifiable' is off" in statusbar as an error and types only co in ctrlp prompt instead of comm (and same happens for dd instead of mm). It's pretty annoying when you have a comment.py file in your project. It doesn't happen if I disable easyclip. Any idea what's going wrong here?

@svermeulen
Copy link
Owner

I could be wrong but I think the way ctrlp works is that it creates a new buffer, then remaps all the keys to its own functions, then sets updatetime to zero, so that multi-key mappings also don't work. So my guess is that you are typing mm fast enough that even with the updatetime set to zero, it still reads it as a single command.

@sassanh
Copy link
Contributor Author

sassanh commented Feb 6, 2016

@svermeulen I investigated the issue a little bit more and saw that it's not required to press <c-p>comm all in less than .3s. It happens even if CtrlP window has been opened long time ago. Pressing comm or domm (or even codd or dodd) fast enough reproduces the issue no matter how long CtrlP window is open. It doesn't happen with mm alone, it should be prepend with co or do. Do you check for modifiable-ity of the buffer?

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

2 participants