Thursday, April 28, 2011

Re: how to fold across file



On Thu, Apr 28, 2011 at 9:41 AM, vicky b <vickyb2084@gmail.com> wrote:
Thanks all,
I want to  re-frame my question I have all java files now I want to create folds for the comments can anyone help me please.



I'm not sure about your specific problem, but from a quick look at a .java file in vim and a comparison of the java.vim and c.vim files in the syntax directory under $VIM, I see that the java syntax file doesn't create any syntax-based folds, unlike C, which has lines like

syntax region    cBlock        start="{" end="}" transparent fold

to create folds for blocks

and another to create folds for comments.

I suppose you are using foldmethod=indent if you are seeing any folds at all.

I guess that all this was a decision by the authors of the java.vim file.

Ephraim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: