Wednesday, March 30, 2011

Re: call graph functionality

On Mar 30, 2:35 am, sinbad <sinbad.sin...@gmail.com> wrote:
> i was referring to CCTree Plugin in my OP. the problem with that
> script is it can't be run
> in background (as none of the vim scripts can)

Not quite true. There are ways to do things in the background by using
the shell or an integrated scripting language like Python. Most
plugins don't use them, though. See the following:

http://vim.wikia.com/wiki/Execute_external_programs_asynchronously_under_Windows
https://github.com/MarcWeber/vim-addon-background-cmd

> while it is building
> the call tree,
> vim will not be available for editing,  this is a big problem if the
> source files are huge.

Yes, I have same problem with CScope. I haven't gotten around to
making my setup commands asynchronous, but I intend to do
so...sometime.

> if vim has this capability in-built (like a pthread running in
> background) then it will be of
> useful. btw, i am not looking for any fancy graphical natured call
> graphs. an ascii tree
> like the one provided in CCTree will be enough.
>

I don't use CCTree, if it's possible to load a pre-generated tree from
a file rather than generating it every time you open Vim, you could
create a command which would launch another Vim in the background,
generate this file, exit Vim, and call back into the current Vim
telling it to load the file. This could use the same techniques
discussed in the tip mentioned above.

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

No comments:

Post a Comment