[vim/vim] long lines automatically become foldable even with set nowrap (Issue #21000)
cjxgm (Vim Github Repository) <[email protected]> Mon, 10 Aug 2026 14:14:11 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/[email protected]> |
cjxgm created an issue (vim/vim#21000) ### Steps to reproduce Type some text, with some lines extremely long, beyond the screen. ```vimscript set nowrap set foldmethod=expr set foldexpr='>1' ``` You should see some lines are folded, and each of those folded lines can unfold to a single line. If not, fold all by `zM` ### Expected behaviour No lines become foldable. I can see why they are foldable. If you set wrap, long lines wrap to multiple lines, so they becoming foldable is reasonable. But with set nowrap, it makes no sense to make long lines foldable, as you will be folding single line into single line. ### Version of Vim 9.2 (2026 Feb 14) included patches 1-849 ### Environment Arch Linux ### Logs and stack traces ```shell ``` -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/issues/21000 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/issues/[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%40github.com.