On 07/06/2010 09:08 PM, robert song wrote:
> Hello, everyone.
>
> Sometimes I want to run grep to search for a function in the source
> code, but I don't want it to jump to terminal and wait for the result,
> Is there any way to run the external command in background, and I can
> see the code at the same time without wasting time to wait for the
> result?
>
> Best Regards,
>   robert
>

Maybe there's a better way, but you could do something similar to what I
do when working with python code: I open a log file in a terminal, using
tail -f command, then I have a shorcut in Vim that does
:!python % <args> >> log.txt<CR> and I see output in the terminal
without having to leave Vim. What you want to do is to just run
:!grep ... >> log.txt &<CR>

I think that should work..

   -ak

-- 
 Python plugins for vim: outliner, todo list, project manager, calendar,
 expenses tracker, sortable table, and more |
 http://lightbird.net/pysuite/


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

Reply via email to