Re: [vim/vim] long lines automatically become foldable even with set nowrap (Issue #21000)
cjxgm (Vim Github Repository) <[email protected]> Tue, 11 Aug 2026 04:29:59 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/21000/[email protected]> |
cjxgm left a comment (vim/vim#21000) > This behaviour is controlled by the 'foldminlines' option. I can see that it might be unintuitive for non-wrapped lines however. 'foldminlines' also changes how other folds behave. E.g. you have a foldexpr control the folding behavior, and then non-wrapped long lines become foldable regardless of foldexpr results. Setting 'foldminlines' affects both the foldexpr-specified folds and non-wrapped-long-line folds. And, there is no single value to set 'foldminlines' to that can achieve desired behavior. When resizing the window, the same line may wrap to 3, 4, or more screen lines depending on the window width, and 'foldminlines' will consult the number of wrapped lines, even if we set nowrap. -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/issues/21000#issuecomment-5252538745 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/issues/21000/[email protected]> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/21000/5252538745%40github.com.