-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Chain YCM's insert-mode mappings with any existing mapping (or only define unique mappings for insert mode) [Feature Request] #4127
Comments
Sorry I don't understand exactly what bug you're reporting. I think you're saying that you've remapped Unfortunately it's not really possible to chain mappings in a convenient and robust way. I suggest you just remove |
To elaborate: |
lnorenap is incorrect, because YCM's mappings should only apply in insert mode, so I don't get why you're suggesting that? |
if your ask is "only set the mapping if there isn't already a mapping for that key", then we can do that with |
Userconfig would break, but only for the YCM side. Like if there were remappings with keys (f.ex. inoremap |
This is quite fiddly to implement correctly, and has been working this way for a very long time with no complaints, so while I acknowledge your concern, I'm not sure that it's going to be high on my priority list. I would consider high quality PR using |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
Frequently Asked Questions section.
about to report and couldn't find an answer to my problem. (Example Google
search.)
vim --version
.:YcmDebugInfo
.the
:YcmToggleLogs
command.version) I am using.
my issue, using
vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what Iexpected to happen and what actually happened.
of
install.py
(orcmake
/make
/ninja
) including its invocationthat 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.
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
inoremap <Up> <Up><C-o>zz
inoremap <Up> <Up><C-o>zz
I just have suggestion how rebinding keys that YCM already use might become less off an issue:
: in
~/.config/bundle/YouCompleteMe/autoload/youcompleteme.vim
, line 349, 354 and 361, in that order:exe 'lnoremap <expr>' . key . ' pumvisible() ? "\<C-n>" : "\' . key .'"'
exe 'lnoremap <expr>' . key . ' pumvisible() ? "\<C-p>" : "\' . key .'"'
exe 'lnoremap <expr>' . key . ' <SID>StopCompletion( "\' . key . '" )'
instead of their respective inoremap variants
in
:h modes
When keys YCM uses keys that get rebound by user for insert mode, they stop working for YCM, instead of getting rebound and breaking whatever gets rebound in the userconfig. Seems like the more appropriate kind of breaking
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directory50379d35ddc38ee3651f568d080442d5e4cb4a3a
Contents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Output of build/install commands
The text was updated successfully, but these errors were encountered: