Hi, all.
I am using gnu global with gvim on windows 7.
It woks fine and but a small problem bothes me.
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.
I know it's vim calls it.
I want to let the cmd window run in the background. How can I do it?
Thanks in advance.
--
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
Friday, May 11, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment