On Oct 19, 2013 1:45 PM, "rudrab" <[email protected]> wrote: > > Hi friends, > I am using singlecompile(SC) http://www.vim.org/scripts/script.php?script_id=3115 to compile single source code. > The problem is it do not show errors(if any) by default, and depends on quickfix. > > So, the workflow is edit-SC-cope-edit. > I tried to change it in my vimrc by putting > nmap <F9> :SCCompile<cr>:cope<cr> > which will open the error window *everytime*. > > Is it possible to call cope only when there is some error?
It is not needed. Check out :h :cwindow, it opens quickfix list only if there are errors. And, please always use full names in scripts: it is easier to understand :copen then :cope as cope is a valid English verb unrelated to opening anything. > -- > -- > 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 > > --- > You received this message because you are subscribed to the Google Groups "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
