Saturday, May 12, 2012

Re: How can the cmd window be hidden?

2012/5/12 Sergey Khorev <sergey.khorev@gmail.com>:
>> I write the following code in vimrc:
>>
>> au BufWritePost *.[ch],*.cpp call UpdateGtags(expand('<afile>'))
>> function! UpdateGtags(f)
>>     let dir = fnamemodify(a:f, ':p:h')
>>     exe 'silent !cd ' . dir . ' && global -u &> /dev/null &'
>> endfunction
>>
>> But when I try to save content to gvim, a black window of cmd blinks,
>> and disappears.
>
> Use system()

Thanks a lot.
But it is the same using system()-a black window blocks gvim and
execute the command.
The plugin asynccommand is good.

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