Re: Automating paragraphs (was Re: Dump help pages)

2021-04-21 Thread BPJ
Den tis 20 apr. 2021 17:46Julius Hamilton skrev: > Thanks. > > This is pretty complicated, but probably what I had in mind. > > So, some basic clarification - > > You defined a new command called Jp. You specify a line range, and it > starts at every non blank line and joins all following non bla

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-20 Thread Julius Hamilton
Thanks. This is pretty complicated, but probably what I had in mind. So, some basic clarification - You defined a new command called Jp. You specify a line range, and it starts at every non blank line and joins all following non blank lines. That's quite good. Thanks very much. What about the

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-20 Thread BPJ
I wrote: I have the following in my .vimrc : > > " Command to join lines in all paragraphs in a range/the whole buffer (Jp > == join paras) > :com! -range=% Jp ,g/^\s*\S/ .,/^\s*$/-join > > " Explanation: > " :g/^\s*\S/ " Go to the first in each sequence of non-blank lines > " Actually

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-20 Thread BPJ
Den fre 16 apr. 2021 19:27Stan Brown skrev: > On 2021-04-16 09:42, Julius Hamilton wrote: > > > At the beginning of a paragraph which has been separated mid-sentence > > onto separate lines, how might I automate the process of calling CTRL-J > > until all the separated lines in the paragraph have

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-17 Thread Stan Brown
On 2021-04-17 06:30, Julius Hamilton wrote: > Would you mind providing a simple outline of a function which would > terminate on some basic condition, such as, the next line is a blank > newline? I will read those docs. The first step is for you to clarify your criteria. Then :help :function, :h

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-17 Thread Julius Hamilton
Thanks very much, really appreciate it. Would you mind providing a simple outline of a function which would terminate on some basic condition, such as, the next line is a blank newline? I will read those docs. I use Vim in Termux, an Android terminal emulator app. I don't know if I have buttons s

Automating paragraphs (was Re: Dump help pages)

2021-04-16 Thread Stan Brown
On 2021-04-16 09:42, Julius Hamilton wrote: > At the beginning of a paragraph which has been separated mid-sentence > onto separate lines, how might I automate the process of calling CTRL-J > until all the separated lines in the paragraph have been combined into > one line? Will Vim be able to cal