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

fold code block bug #3140

Closed
hitzhangjie opened this issue Oct 16, 2018 · 2 comments
Closed

fold code block bug #3140

hitzhangjie opened this issue Oct 16, 2018 · 2 comments

Comments

@hitzhangjie
Copy link

Describe the bug
press 'zc' to close the code block, like an import block or a function, press 'zo' to reopen the folded code block.
bug1: when moving to the end line of code block, press 'zo' cannot reopen the code block, you have to put the cursor in the beginning or the middle of the code block.
bug2: when fold the code block at the beginning, and the press j to move down, the code block will be reopen automatically, press 'zo' to trigger the reopen action will be better.

To Reproduce
create a snippet to zc / zo the code block, for example an import block or a function.

Expected behavior
when press 'zc' in the every line of the code block, should trigger the fold action.
don't unfold the code block automatically when moving cursor around it, use 'zc' to trigger that.

I use the latest vim extension and xcode, because I installed it just now.

@hitzhangjie
Copy link
Author

vim.foldfix=true solve this problem.

@yasintz
Copy link

yasintz commented Feb 7, 2019

@hitzhangjie thanks for answer

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

3 participants