Closed hyche closed 5 years ago
With let g:ycm_key_list_select_completion = ['
', '
verbose imap `
verbose imap <Down>
you mean let g:ycm_key_list_select_completion = ['`', '']
?
They both show No mapping found
Sorry, markdown formatting... let g:ycm_key_list_select_completion = ['`', '<Down>']
then try the verbose
commands.
The result is still the same
No mapping found
No mapping found
This should return something like
i ` * pumvisible() ? "\<C-N>" : "\`"
Last set from ~\projects\YouCompleteMe\autoload\youcompleteme.vim line 291
i <Down> * pumvisible() ? "\<C-N>" : "\<Down>"
Last set from ~\projects\YouCompleteMe\autoload\youcompleteme.vim line 291
Does it work if you manually set the mapping:
:inoremap <expr> ` pumvisible() ? "\<C-n>" : "\`"
?
:inoremap <expr> ` pumvisible() ? "\<C-n>" : "\`"
This works for me. But I still don't know setting via ycm_key_list_select_completion
doesn't work, I even changed it to "\`".
What's the output of
:echo g:ycm_key_list_select_completion
?
This
['`', '<DOWN>']
Does it work with the following vimrc
set nocompatible
set rtp+=~/.vim/bundle/YouCompleteMe
filetype plugin indent on
let g:ycm_key_list_select_completion = ['`', '<DOWN>']
(replace ~/.vim/bundle/YouCompleteMe
with the right path if YCM is installed somewhere else)? You can use a custom vimrc by starting Vim with the -u
option:
vim -u /path/to/vimrc
Does it work with the following vimrc
Yes...
So it's probably an issue with your vimrc. Do you mind sharing its contents?
vimrc Here, there are lots of thing need to be cleaned up since I wrote it long time ago (actually copied from many places...).
Sorry, I don't see anything wrong in your vimrc. You'll have to figure it yourself.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.install.py
(orcmake
/make
/ninja
) including its invocationIssue Details
I set up my ycm_key_list_select_completion like this
When the completion window pop up, press ` doesn't move down the completion line. Work normally with other characters (tested with '#', '$', '~', etc)
What did you expect to happen? The completion line move down each time the backtick is pressed.
What actually happened? The backtick character is shown, completion window is closed.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Ubuntu 18.04
Output of build/install commands