Re: French-style paragraphs (Was: Justify, margin and text width on already existing files)
- On Mon, 10 May 2004, Antoine J. Mechelynck wrote:
> [...] What I would like to have is (in its simplest form) "Any linefun! GQ() range
> starting with whitespace is not a candidate for joining with the
> previous line."
exe 'sil ' . a:lastline . ' put _' | ma z
while line('.') < line("'z")
exe 'norm! -/^\s^MV/\n\s\|\%' . (line("'z") - 1) . 'l^Mgq'
sil 'z- s/\n//
vn <silent> q :call GQ()<Cr>
(^M = <C-V><Cr>, set fo=tcq2 noai)