Closed Ram-Z closed 4 years ago
:help :colder
and :help :cnewer
(similarly :help :lolder
and :help :lnewer
) is what you're looking for. Vim keeps around the latest 10 locationlists and 10 quickfix lists.
Yeah. Use the quickfix stack to get your previous entries.
Oh, great. I did not know about these commands.
Thank you very much.
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.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.install.py
(orcmake
/make
/ninja
) including its invocationThank 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
I ran
:YcmCompleter FixIt
and it replaced my quickfix content with a single line telling me I just changed what is in front of my eyes.I've read README#multi-file-refactor and understand why it might be necessary to populate a list of places where changes were made. But for single line changes this is not necessary and actually harmful as it clobbered my
:make
output.This is not very minimal as it interacts with other quickfix providers (namely
:make
anderrorformat
), but I hope you understand what I mean. And can reproduce it easily with any setup you have.:edit test.cpp
:make
<- this will fill the quickfix window with build results if errorformat is setup properly:YcmCompleter FixIt
I've got these ycm related settings. Don't think they are relevant to this issue.
I expected the FixIt to be applied without replacing the contents of the quickfix window.
quickfix content got replaced by less useful content.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Left out as deemed irrelevant, happy to provide if requested.
Contents of YCM, ycmd and completion engine logfiles
Left out as deemed irrelevant, happy to provide if requested.
OS version, distribution, etc.
Arch Linux