Re: Pre-fold output of :r! command

2021-07-06 Thread Tim Chase
On 2021-07-06 17:59, Julius Hamilton wrote: > If I unfold that fold, I think the fold disappears. I then have to > respecify the content to be folded. Or if not, I still have to put > my cursor on the top line of the fold, to re-fold it. Unless you delete the fold, it should remain even after you

Re: Pre-fold output of :r! command

2021-07-06 Thread Julius Hamilton
Thanks very much. That works perfectly. One tiny tweak is I would just like to be able to collapse and open a fold back and forth with ease. If I unfold that fold, I think the fold disappears. I then have to respecify the content to be folded. Or if not, I still have to put my cursor on the top

Re: Pre-fold output of :r! command

2021-07-05 Thread Christian Brabandt
On So, 04 Jul 2021, Julius Hamilton wrote: > 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

Re: Pre-fold output of :r! command

2021-07-05 Thread Ailen Vienne Sebastian
Please reply to me. Please On Mon, Jul 5, 2021, 4:08 AM Julius Hamilton, wrote: > 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

Re: Pre-fold output of :r! command

2021-07-04 Thread 'Suresh Govindachar' via vim_use
On 7/4/2021 1:08 PM, Julius Hamilton wrote: 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

Pre-fold output of :r! command

2021-07-04 Thread Julius Hamilton
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