Sunday, September 18, 2016

using cscope with tabs

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.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment