On Wed, May 18, 2011 at 7:03 PM, crabsody <[email protected]> wrote:
> I tried to use :make (quickfix) but I have some problems. First of all how
> can I have only the errors and avoid all the warnings? Then how can I set to
> search only through my source files (*.c, *.cpp ) and not other scripts I
> have in the directory (e.g. Makefile)?
How these can be done depends on your environment to some extent..
For example, doing:
make abc.o
might compile only abc.c. Does it work that way for you?
If yes,
:exe "make " . expand("%:r") . ".o"
"might" compile the file being edited (also depends on the full file path)
Another way could be to process the quickfix output in a way that you want.
See :help QuickFixCmdPost and :help QuickFixCmdPost-example
Yet another way is to let :make work as usual, but define your own
mappings for next error and previous error - to only look at errors
(not warnings) in the quickfix window for the current file
--
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