ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.44k stars 2.81k forks source link

Option to reuse existing tabs with g:ycm_goto_buffer_command="new-tab" #1398

Closed Aearon closed 9 years ago

Aearon commented 9 years ago

Can we get an option to get the behavior described below?

When jumping to a file that's already open in an existing tab, switch to the tab rather than opening another tab with the same file.

i.e. g:ycm_goto_buffer_command="new-or-existing-tab"

Aearon commented 9 years ago

For reference, what I described is jedi-vim's default behavior when jumping to definition.

Valloric commented 9 years ago

This sounds like a good idea; PRs for this feature are welcome.