Sunday, July 4, 2021

Pre-fold output of :r! command

I would like to print the output of a shell command - a webpage dump - into a Vim buffer, and have those lines immediately folded, rather than a second step of selecting and folding them.

The command would look something like:

:r! w3m -dump url.com FOLD

How would this be possible?

I would like to navigate my folds in an easier way than navigating to the blue line that appears, and unfolding them. Is it possible to get some kind of table of contents sidebar where you can select a fold and open or close it? In my current configuration, I don't see an indicator that a fold is on a certain line, if that fold is currently unfolded.

Thank you very much,
Julius


--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAGrXgp3wif%2BEhQoowHn32C-epQF8m%3DTtqqfKK2A0tDWoB2%3DznA%40mail.gmail.com.

No comments: