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

remaps for insert mode are inflicted by this plugin #4237

Open
6 tasks done
danielrehsmann opened this issue Jun 3, 2024 · 2 comments
Open
6 tasks done

remaps for insert mode are inflicted by this plugin #4237

danielrehsmann opened this issue Jun 3, 2024 · 2 comments

Comments

@danielrehsmann
Copy link

danielrehsmann commented Jun 3, 2024

Issue Prelude

  • I have read and understood YCM's [CONTRIBUTING][cont] document.
  • I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
  • I have read and understood YCM's [README][readme], especially the
    [Frequently Asked Questions][faq] section.
  • I have searched YCM's issue tracker to find issues similar to the one I'm about to report and couldn't find an answer to my problem.
  • I understand this is an open-source project staffed by volunteers and that any help I receive is a selfless, heartfelt gift of their free time. I know I am not entitled to anything and will be polite and courteous.
  • I understand my issue may be closed if it becomes obvious I didn't actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.

Issue Details

  • What did you do?

Normally I handle long lines with
inoremap gk
inoremap gj

however, the keymaps set by the plugin persists, and
:imap

gives
i * pumvisible( ) ? "<C-P>" : "<Up>"

which checks if the dropdown menu is open.
Is there a way to remap the arrow keys in a way that includes long-line handling?

@bstaletic
Copy link
Collaborator

inoremap gk, and

That does not look like a mapping that could do anything useful. Something might be off with your formating.

If you want to close the pum before doing something else in your mapping, see :h i_CTRL-y.

@danielrehsmann
Copy link
Author

I edited the command accordingly. Basically i just want to navigate also in long lines that are wrapped graphically.

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