On 2009-04-14, Lech Lorens wrote:
> The attached patch changes the default 'foldmethod' for the quickfix
> window to manual. The current behaviour is that the quickfix window
> inherits the values of 'foldmethod' and 'foldmarker' from the global
> options, which sometimes causes the contents of the quickfix window to
> be folded upon opening the window with :copen. Although it can be easily
> fixed in Vim script, I believe the 'foldmethod' should be explicitly set
> for quickfix window by Vim.
> 
> Another way of fixing the problem of folded contents would be resetting
> the value of 'foldenable', but I sometimes find it valuable to be able
> to fold some lines of the quickfix window.

I'm a little concerned about applying such fine tuning of individual
window behavior to the source code.  If there is a general rule in
vim for the option values that windows inherit when they are
created, I think we should use that general rule unless there is a
compelling reason to do otherwise.  As you say, this could also be
fixed with a ftplugin/qf.vim script, which would be a more
consistent method of applying such filetype-specific adjustments.

Regards,
Gary



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

Raspunde prin e-mail lui