Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:
[x] I have read and understood YCM's [CONTRIBUTING][cont] document.
[x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
[x] I have read and understood YCM's [README][readme], especially the
[Frequently Asked Questions][faq] section.
[x] 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. ([Example Google
search.][search])
[x] If filing a bug report, I have included the output of vim --version.
[x] If filing a bug report, I have included the output of :YcmDebugInfo.
[x] If filing a bug report, I have attached the contents of the logfiles using
the :YcmToggleLogs command.
[x] If filing a bug report, I have included which OS (including specific OS
version) I am using.
[x] If filing a bug report, I have included a minimal test case that reproduces
my issue, including what I expected to happen and what actually happened.
[x] 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.
[x] I understand my issue may be closed if it becomes obvious I didn't
actually perform all of these steps.
Issue Details
I use fd as esc in my vimrc, like so:
set timeoutlen=333 ttimeoutlen=10
inoremap fd <Esc>`^
It seems like it somehow interferes with ycm, given that completions after f are sometimes inserting an extra random character.
Given this source Python file (incomplete, as if mid-editing):
def ext(data_
if not os.path.isfile(data_
return os.path.splitext(data_file)[1]
If positioned in insert mode at the end of the first line, if I quickly type fi, ycm inserts fia:
def ext(data_fia
If positioned in insert mode at end of the second line, if I quickly type fi, ycm inserts fif:
if not os.path.isfile(data_fif
It seems like it also depends on the contents of the third line. If I change it to
return os.path.isfile(data_file)[1]
then ycm completes fil in the second case (which is also wrong).
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.Issue Details
I use
fd
as esc in my vimrc, like so:It seems like it somehow interferes with ycm, given that completions after
f
are sometimes inserting an extra random character.Given this source Python file (incomplete, as if mid-editing):
If positioned in insert mode at the end of the first line, if I quickly type
fi
, ycm insertsfia
:If positioned in insert mode at end of the second line, if I quickly type
fi
, ycm insertsfif
:It seems like it also depends on the contents of the third line. If I change it to
then ycm completes
fil
in the second case (which is also wrong).Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
(nothing in jedi / ycm logs)
OS version, distribution, etc.
macOS 10.12.5