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.

-- 
Cheers,
Lech

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

diff --git a/src/quickfix.c b/src/quickfix.c
index ee84160..454ec03 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2347,6 +2347,7 @@ ex_copen(eap)
 								   OPT_LOCAL);
 	    set_option_value((char_u *)"bh", 0L, (char_u *)"wipe", OPT_LOCAL);
 	    set_option_value((char_u *)"diff", 0L, NULL, OPT_LOCAL);
+	    set_option_value((char_u *)"foldmethod", 0L, "manual", OPT_LOCAL);
 	}
 
 	/* Only set the height when still in the same tab page and there is no

Raspunde prin e-mail lui