Monday, November 30, 2009

Re: using a file as quickfix

On Nov 29, 7:14 am, Marc Chantreux <kha...@phear.org> wrote:
> hello,
>
> Given a file ERR with the following content, i would like to use this
> file as quickfix error list. So i tried:
>
> vim ERR
> :cfile %
> :setf python
>
> well ... it doesn't work. can anyone help ?
>

To get Vim to understand the format of the error messages, you need to
tell Vim what compiler generated the messages, or at least how to
parse them. If your compiler is one of those in the officially
distributed runtime (in the "compiler" directory) you can just use
the :compiler command prior to your :cfile command to do it for you.
Otherwise, you'll need to set the 'errorformat' option appropriately
by hand or by finding a plugin to do it for you.

Note that the :compiler command offers tab completion/wildmenu entries
of all the installed compilers.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: