Problem: When using the gcc "compiler" setting under Linux and you need to find warnings or errors in the quicklist via the vimscript getqflist()....... THERE ARE NONE!
Note: It seems that the errorformat string for gcc doesn't specify flagging either Warnings or Errors for the quickfixlist. You only get a list of strings output by gcc. While they are in fact either warnings or errors, Vim only sees them as raw messages. Solution: Add the appropriate lines into the gcc "compiler" setting to flag warnings/errors. Here is my proposed fix (can it be included into Vim 7.3?): " Vim compiler file " Compiler: GNU C Compiler " Maintainer: Nikolai Weibull <[email protected]> " Latest Revision: 2010-5-20 if exists("current_compiler") finish endif let current_compiler = "gcc" let s:cpo_save = &cpo set cpo-=C CompilerSet errorformat= \%*[^\"]\"%f\"%*\\D%l:\ %m, \\"%f\"%*\\D%l:\ %m, \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once, \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.), \%f:%l:\ %tarning:\ %m, \%f:%l:\ %trror:\ %m, \%f:%l:\ %m, \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m, \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f', \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f', \%D%*\\a:\ Entering\ directory\ `%f', \%X%*\\a:\ Leaving\ directory\ `%f', \%DMaking\ %*\\a\ in\ %f if exists('g:compiler_gcc_ignore_unmatched_lines') CompilerSet errorformat+=%-G%.%# endif let &cpo = s:cpo_save unlet s:cpo_save This will now allow getqflist() to flag warnings/errors. --David -- You received this message from the "vim_dev" 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
