On 2009-06-08, Edward Peschko wrote:
> All,
> 
> More questions - is it possible to make a quickfix buffer
> (or other 'readonly' buffer) writable?
> 
> I don't necessarily want to write *out* the buffer,
> but I definitely want to modify the buffer to get rid of
> stuff that I don't want to see (eg. 'errors' which
> aren't really errors used by :make) . Yet, when I try
> to do anything to modify, I get this 'is readonly' error.

Are you sure it says "readonly"?  When I try to modify the quickfix
window, the error is "E21: Cannot make changes, 'modifiable' is
off".  To get around that, just ":set modifiable".

If the problem is that you're getting messages from make that aren't
errors, the solution is to fix your 'errorformat'.  See

    :help errorformat

I use this,

    setlocal errorformat+=%-G%.%#

to set the last entry in 'errorformat' to ignore any string not
matched previously.  See

    :help efm-ignore

Regards,
Gary



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

Reply via email to