Hello Luis,

* On Thu, Aug 31, 2006 at 02:31:18PM -0300, Luis A. Florit <[EMAIL PROTECTED]> 
wrote:
>     I use Vim and Quickfix to compile C++ programs. I have set
> 
>         let &makeprg='g++ -o %< %'
> 
> as the compiler. My problem is that while compiling, vim goes to
> the console, distracting me. I don't need the console, if I use
> Quickfix! I would like it to stay in the buffer window.
> 
>      I made the following map:
> 
> map <silent> <Esc><Esc> :echohl WildMenu<cr>:echon "Compiling 
> file..."<cr>:silent! make<cr>:cw 4<cr><C-w><Up>:echohl None<cr>:echo 
> ""<cr><c-l>
> 
> that works great in gvim. It stays in the buffer, printing a bottom
> message "Compiling file..." while compiling. But this does not work
> for vim (console).
> 
>     How can I avoid vim to leave the buffer while compiling, without
> making something like ':silent !g++...", since I want to use Quickfix?


What about background compilation ? Your program can be compiled in
background while you will still be able to do whatever you whish in vim.

This topic has been discussed a few months ago. So far I know two
scripts able to acheive background compilation from vim.

I'm maintening one of them [1]. The result consists in a perl script
(which means perl is required, as well vim compiled to support remote
invocation through |+clientserver|) and a few VimL functions maintened
in a plugin that is still in alpha stage (the plugin does many more
things related to the management of compilation chains).

HTH,

[1] http://hermitte.free.fr/vim/ressources/lh-BTW.tar.gz

PS: I don't know if this email will reach the mailing or not as SORBS
filtering seems to have been reactivated.
-- 
Luc Hermitte
http://hermitte.free.fr/vim/

Reply via email to