-
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
Quickfix lists with many entries can mess up window arrangements #4129
Comments
The reason for this is fairly obvious, if you remove most of your customisations and make it actually minimal. When you do "YcmCompleter GoToSymbol find", YCM opens the quick fix window to fill the screen: Your auto command, invoked after the quick fix window is opened, then shrinks it. One solution is to to set So this will work for you: augroup DisableYcmResizeInQuickFix
au!
autocmd FileType qf let b:ycm_no_resize=1
augroup END
Admittedly, that's a) undocumented and b) super fiddly, but hopefully it's enough for now. |
We may be able to do something clever with |
I don't see |
Yes |
Sorry to come back to this, but I think the main problem is that I have |
In any case, even with the following vimrc, after closing let maplocalleader = "\<Backspace>"
let mapleader = "\<Space>"
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
au VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'Valloric/YouCompleteMe'
Plug 'puremourning/vimspector'
call plug#end()
syntax enable " move this somewhere more appropriate
nnoremap <leader>ygs :YcmCompleter GoToSymbol<Space>
let g:vimspector_toggle_disables_breakpoint = 1
let g:vimspector_base_dir = environ().HOME .. '/.vim/plugged/vimspector'
nnoremap <leader>ds :call vimspector#Launch()<CR>
nnoremap <leader>dq :VimspectorReset<CR>
nmap <leader>dS <Plug>VimspectorStop
nmap <leader>dr <Plug>VimspectorRestart
nmap <leader>db <Plug>VimspectorToggleBreakpoint
augroup DisableYcmResizeInQuickFix
au!
autocmd FileType qf let b:ycm_no_resize=1
augroup END |
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
vim -Nu /path/to/YCM/ycm_vimrc_minimal someNewFile.cpp
where the content of the file is below (yeah, the file is not new, ahah):tabe minimalVimrc.vim
, where the content of this file is below:so %
:YcmCompleter GoToSymbol find
:set noequalalways
Resizing more friendly towards existing windows layout
Windows are messed up.
See screencast:
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryContents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Up-to-date ArchLinux
Output of build/install commands
The text was updated successfully, but these errors were encountered: