Tuesday, December 29, 2015

How to pass a format string to ?

command! -nargs=? -complete=file CCTreeLoadDB call s:CCTreeCmdLine.mLoadDB(<q-args>, s:DBClasses.cscopeid)


function! LoadCCTree()
let newcsdbpath = FindInParent("cscope.out",WindowDir(),$HOME)
if newcsdbpath != "Nothing"
let b:csdbpath = newcsdbpath
CCTreeLoadDB b:csdbpath . "cscope.out"
endif
endfunc

augroup AutoLoadCCTree
au!
au BufEnter *.[chly] call LoadCCTree()
au BufEnter *.cc call LoadCCTree()
augroup END

Not using the format string to load.
Help me.

--
--
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: