Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foldmethod indent #35

Open
knubie opened this issue Aug 11, 2016 · 4 comments
Open

Foldmethod indent #35

knubie opened this issue Aug 11, 2016 · 4 comments

Comments

@knubie
Copy link

knubie commented Aug 11, 2016

Is this possible with vimish-fold? I use the indent method of folding in vim all the time, and rarely, if ever, use manual folding.

@mrkkrp
Copy link
Collaborator

mrkkrp commented Aug 11, 2016

Please describe in more detail the expected behaviour (although I think I know what you mean, but anyway).

@knubie
Copy link
Author

knubie commented Aug 11, 2016

In vim, foldmethod = indent creates "folds" for every indentation level (much like standard editors), which allows you to go in and use "zc" to close all of the code at or "inside" the indentation level of the cursor.

@mrkkrp
Copy link
Collaborator

mrkkrp commented Aug 11, 2016

Should it require support for nested folds?

@knubie
Copy link
Author

knubie commented Aug 11, 2016

Vim supports nested folds. For example, you can recursively fold all indentation levels with zM, then gradually unfold them with zr. It would be nice to have nested folding in vimish-fold as well, but it's not a dealbreaker for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants