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?