Using vim7.4, given the following in a .java file with foldmethod=syntax
class YYY {
class A{
public void bar() {
}
}
class B{
public void foo() {
}
}
class C {
} public void method_foo(){}
}
Make a linewise visual selection that includes all of class A and class
B (9 lines total). Enter command
zc
Observe: only class YYY and class A are folded.
Expect: class B is also folded.
The following give results as expected.
Case 1 - If the blank line between class A and class B is removed and
the classes are selected for an 8 line selection, then the result is
that class A and class B is folded.
Case 2 - Set up as in case 1 and include the blank line after class B in
the selection (9 lines), then the result is that class YYY, class A and
class B are folded.
Case 3 - With the original set up, the zC (recursive) command folds both
class A and class B and their contents as well as class YYY.
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.