0

I have this mapping in my .vimrc:

nnoremap gd :YcmCompleter GoToDefinitionElseDeclaration
nnoremap gf :tab split \| YcmCompleter GoToDefinition<CR>

When I press gd, it writes the command :YcmCompleter GoToDefinitionElseDeclaration for me and on Enter, I used to get a split window with the definition I'm looking for in there.

Somehow, randomly or after me pressing certain keys (which I don't know exactly what), the split no longer happens. It's strange because I didn't change configs, and it simply switched to showing result in a full-screen new buffer, without split.

Anyone knows what I might have pressed or why this is happening?

3
  • Did you update? Sometimes plugins change
    – D. Ben Knoble
    Commented Jul 29, 2021 at 16:35
  • Nope, I installed everything manually and this happened without any update or change to configs.
    – d9ngle
    Commented Jul 30, 2021 at 2:46
  • Im afraid i dont know whats happening. You could try the debug command (or the verbose switch). Is it a new tab, or the window is the only one?
    – D. Ben Knoble
    Commented Jul 30, 2021 at 10:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.