Hi Tony, Thanks for your answer.
Actually I went through the function "qf_fill_buffer" in quickfix.c file and I found that quickfix output is hard coded and it is not controlled by any options. Your reply confirms it. Thanks, Vishnu > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Tony Mechelynck > Sent: Friday, April 10, 2009 11:24 PM > To: [email protected] > Subject: Re: How to customize the format of error window? > > > On 10/04/09 11:59, Yue Wu wrote: > > > > I use to grep some string: > > > > :lvimgrep /foo/ % > > > > the error window's format is something like this: > > > > /portable/apps/vim/vim72/doc/quickfix.txt|313 col 4| second quickfix > > window. > > > > I don't want to show the file and position, what I want is like this: > > > > second quickfix window. > > > > What would I need to do to achieve it? > > > > Short answer: You can't. > > Somewhat longer answer: The quickfix window displays the raw lines of > the errorlist file; the latter must be explicit enough for Vim to find > the line in error; and the vimgrep errorlist output includes the > filename, line and column of the match for that purpose. > > Possible workaround: Maybe what you want is to display only the source > file containing the match? Then don't use the :copen (or :lopen) command > but only one or more of > :cc > :cnext > :cprev > :cnfile > :cpfile > :cfirst > :clast > or, of course (in Vim 7), their "local-list" equivalents. > > > Best regards, > Tony. > -- > "I couldn't remember when I had been so disappointed. Except perhaps > the time I found out that M&Ms really *do* melt in your hand ..." > -- Peter Oakley > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
