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

folds deleted in split window with folddexpr=pandoc#folding#FoldExpr() #53

Open
Konfekt opened this issue Oct 1, 2018 · 5 comments
Open

Comments

@Konfekt
Copy link
Owner

Konfekt commented Oct 1, 2018

Withhttps://github.com/vim-pandoc/vim-pandoc and foldmethod = expr and foldexpr=pandoc#folding#FoldExpr(), then on opening a pandoc file, for example, a file with extension md, and splitting the window in which the buffer is displayed, for example by :split, then all folds disappear and cannot be restored.

This does not happen, for example, for foldexpr=MarkdownFold().

@hgvhgv
Copy link

hgvhgv commented Oct 8, 2020

Any update on this or workaround? FastFold has otherwise been a godsend!

@Konfekt
Copy link
Owner Author

Konfekt commented Oct 9, 2020

This is working fine for me on Vim 8.1568 using the latest version of vim-pandoc.

@hgvhgv
Copy link

hgvhgv commented Oct 9, 2020

Hmm, I was having a problem that seemed like this (folds deleted when I split the buffer) but can't recreate with a new file. Must be something about that file itself. Thanks! I'll file a different bug if I can reproduce (up to you whether to close).

@hgvhgv
Copy link

hgvhgv commented Oct 9, 2020

Playing around some more I was able to recreate the problem with a new file after I split the buffer and run :e, deleting the folds (which then come back when I remove the split). But I can't reproduce with a minimal vimrc, so it's some other plugin that is causing the problem (probably an autocommand). Again, if I figure it out I'll file another bug.

@hgvhgv
Copy link

hgvhgv commented Nov 3, 2020

I figured out that my problems are coming from a conflict between vim-pandoc and vim's filetype.vim, with b:undo_ftplugin being executed when I run :edit (see vim-pandoc/vim-pandoc#237). This unsets a number of things that then affect the folds in turn but doesn't have to do with fastfold itself (I think).

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

2 participants