Sunday, April 1, 2012

Re: Async to process some task in vim

On Sat, Mar 31, 2012 at 12:20 PM, 曾波 <zbandyulihc@gmail.com> wrote:
> dear all,
>
>       when i process creating tags, cscope, grep find in a large project,
> vim will suspend since this task finish.
>
> it's very annoying!  do you have some good idea?
>
> --
>
>
> Thanks and Best Regards!
>
>
> --
> 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 may use the thread library of python to do this job concurrently
since VIM does not provide any async function. This is fine if you
only need to generate ctags. But vim command is not thread safe. So
you'd better not run any vim command in threads. (I hope this can be
improved)

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