Re: Folding between #ifdef _DEBUG and #endif

2006-10-11 Thread Hari Krishna Dara
On Wed, 11 Oct 2006 at 1:45pm, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] дÓÚ 2006-10-11 12:27:33: :FoldMatching #ifdef\ _DEBUG #endif 0 The last parameter is a context, so you might like 1 better than 0 (allows you to see what you are folding). Alternatively, you can also

Re: Folding between #ifdef _DEBUG and #endif

2006-10-10 Thread Hari Krishna Dara
On Tue, 10 Oct 2006 at 12:14pm, Kamil Kisiel wrote: I've got some C++ source code that I'd like to fold away. Basically I want vim to have folds only between #ifdef _DEBUG and the corresponding #endif statement, and nowhere else. My vimfu is a bit weak in this respect so I'm not quite sure

Re: Folding between #ifdef _DEBUG and #endif

2006-10-10 Thread Kamil Kisiel
On 10/11/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Tue, 10 Oct 2006 at 12:14pm, Kamil Kisiel wrote: I've got some C++ source code that I'd like to fold away. Basically I want vim to have folds only between #ifdef _DEBUG and the corresponding #endif statement, and nowhere else. My

Re: Folding between #ifdef _DEBUG and #endif

2006-10-10 Thread panshizhu
[EMAIL PROTECTED] 写于 2006-10-11 12:27:33: :FoldMatching #ifdef\ _DEBUG #endif 0 The last parameter is a context, so you might like 1 better than 0 (allows you to see what you are folding). Alternatively, you can also configure the foldtext (see plugin page or the header in the file for

Folding between #ifdef _DEBUG and #endif

2006-10-09 Thread Kamil Kisiel
I've got some C++ source code that I'd like to fold away. Basically I want vim to have folds only between #ifdef _DEBUG and the corresponding #endif statement, and nowhere else. My vimfu is a bit weak in this respect so I'm not quite sure how I would go about doing this. Using foldexpr, changing