Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim using "cscope find s" command and open result in new tab instead of window

I use cscope command :cs find s someFunction and i see the long list with this function appearance, I find that I'm interested in list and open it, vim opens a file in a new window, I want to open file in a new tab.

I found several similar questions, but they did not help. For example:

vim: Open tag in new tab

how i can open open new tab from cscope list of tag

like image 883
Ivan Ivanovich Avatar asked Aug 30 '25 18:08

Ivan Ivanovich


1 Answers

The :tab command redirects split windows into split tabs. Just prefix your :cs command with it:

:tab cs find s someFunction
like image 181
Ingo Karkat Avatar answered Sep 03 '25 07:09

Ingo Karkat