Closed juanpabloaj closed 7 years ago
Yes it is compatible but folds are based on indents, not braces (see #4). If you use vim-anyfold with this example, it folds the whole block (including braces) and the fold is displayed with the first while()
line. The way it is implemented now is that braces are simply ignored (similarly as empty lines) and thus included in the fold.
A folding mechanism that defines blocks based on braces instead of indents is a planned feature (as mentioned in #4). I'm not sure yet how to detect braces in Vim in an efficient and general (language independent) way...
thanks. I understand, if you consider this issue very similar to #4 close the issue
@juanpabloaj Better defaults for braces are now implemented (as of commit 8907928678e2c16ee9adfbe41a6845ab655f628d)
any_fold is compatible with Allman style ?
https://en.wikipedia.org/wiki/Indent_style#Allman_style
with the curly bracket under