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