You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Basically, the Ycm configuration file was capturing the imaps:
I had to comment out the following two lines of code in the ycm configuration file,
/.local/share/nvim/plugged/YouCompleteMe/autoload/youcomplemete.vim
for key in g:ycm_key_list_select_completion
exe 'inoremap <expr>' . key . ' pumvisible() ? "\<C-n>" : "\' . key .'"'
endfor
for key in g:ycm_key_list_previous_completion
exe 'inoremap <expr>' . key . ' pumvisible() ? "\<C-p>" : "\' . key .'"'
endfor
you can check if ycm captures your keymaps with
verbose imap <up>
to locate the file.
Then I added the following two lines to my init.vim:
Issue Prelude
[Frequently Asked Questions][faq] section.
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
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?
The text was updated successfully, but these errors were encountered: