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

markdown folding not working if I open a non-markdown file first #44

Open
LittleGreenFrog opened this issue Jul 24, 2021 · 0 comments
Open

Comments

@LittleGreenFrog
Copy link

I'm using MacVim 8.2.261. I have installed folding.vim so that it is found by vim. (vim 8 packages) I have verified that it is found by running :scriptnames. I have verified that foldmethod=expr.

If I choose to edit a markdown file first thing on opening vim, it folds properly - it opens in a completely folded state and I can open and close the folds as expected using the vim keys.

However, if I open .vimrc first (for instance) and then open a markdown file, it opens completely unfolded and fold command are ignored.

I have discovered, though, that if I source folding.vim after that, then folding works again.

I'm reasonably certain I have set everything up as stated in the GitHub site. Do you have any idea what might be going on?

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

No branches or pull requests

1 participant