Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open gscopefind result in new tab #11

Open
benzwt opened this issue Aug 20, 2018 · 1 comment
Open

open gscopefind result in new tab #11

benzwt opened this issue Aug 20, 2018 · 1 comment

Comments

@benzwt
Copy link

benzwt commented Aug 20, 2018

how would I open a gscopefind result in tab[page] instead buffer ?

I try to modified gutentags_plus.vim
from
exec 'cs find '.a:what.' '.fnameescape(keyword)
to
exec 'tab cs find '.a:what.' '.fnameescape(keyword)
but it doesn't work.

my settings are as follow:

let g:gutentags_cache_dir=$VIM_HOME."/tags"
let g:gutentags_project_root=['.proj']
let g:gutentags_modules=['ctags', 'gtags_cscope']
"let g:gutentags_modules = ['ctags', 'cscope']
let g:gutentags_ctags_extra_args=['-I SCODE']
let g:gutentags_ctags_extra_args+=['--c++-kinds=+px']
let g:gutentags_ctags_extra_args+=['--c-kinds=+px']
"let g:gutentags_file_list_command = 'find . -type f -name ".h" -o -name ".c" '
let g:gutentags_file_list_command = {
\ 'markers': {
\ '.git': 'git cfiles',
\ '.hg': 'hg files',
\ },
\ }

""=================== 'skywind3000/gutentags_plus' =================
" forbid gutentags adding gtags databases
let g:gutentags_auto_add_gtags_cscope = 0
let g:gutentags_plus_nomap = 1

nmap <C->s :GscopeFind s
nmap <C->d :GscopeFind g
nmap <C->c :GscopeFind c
nmap <C->t :GscopeFind t
nmap <C->e :GscopeFind e
nmap <C->f :GscopeFind f =expand("")
nmap <C->i :GscopeFind i =expand("")
nmap <C->v :GscopeFind d
nmap <C->a :GscopeFind a

@skywind3000
Copy link
Owner

skywind3000 commented Aug 21, 2018

set switchbuf=useopen,usetab,newtab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants