On Sunday, September 18, 2016 at 2:39:33 AM UTC-5, roy rosen wrote:
> Hi all,
> 
> I am using cscope with vim and have the following mapping in my .vimrc:
> 
>     nmap <C-\>s :tab cs find s <C-R>=expand("<cword>")<CR><CR>
> 
> this works fine except for the fact that it is opening a new tab every
> time I use it.
> I want to open a new tab only if the file does not exist in one of the
> already opened tabs.
> If it already exist, use this tab.
> This is the normal behavior of most other IDEs.
> 
> Can someone tell me how to change the mapping?
> 
> Thanks, Roy.

Not sure if it will work, but have you tried adding "usetab" to your 
'switchbuf' setting value? :help 'switchbuf'

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to