News for hackers. Stuff that matters.
Re:Pandoc by pxeger1 on Friday February 02, 2024 @11:27AM (#39230545)
My solution would be to go to the start of each paragraph and hold J (shift + j) until the entire paragraph was joined onto one line, and then go down to the next one. I guess it depends on how long your emails are but this is pretty quick.
Re:Pandoc by kugurerdem on Friday February 02, 2024 @12:57PM (#39231868)
My problem with this method is that it's not convenient especially when there are lots of paragraphs. When you highlight all the paragraphs and press shift J, it unwraps everything into a single line. This results different paragraphs ending up on the same line. You also need to undo the changes you made to avoid disturbing the original file content.
Re:Pandoc by aktenlage on Friday February 02, 2024 @02:01PM (#39232734)
"vapJ" might do the trick for one paragraph. So maybe you can make a mapping that does vapJ and moving to the next paragraph ("]]"?) in your vimrc will let you do this with a count.
Re:Pandoc by flexagoon on Friday February 02, 2024 @03:29PM (#39233881)
qfvapJ]]q

to record a macro that joins a single paragraph together

<N>@f

to then replay that macro <N> times

Re:Pandoc by eichin on Friday February 02, 2024 @11:46AM (#39230856)
I haven't needed it myself, but it might be easier to just keep the document in line-break-per-paragraph form and just turn on visual-line-mode...