I have some text files previously formatted in vim using \"gggqG\". Now I need to convert them to one line per paragraph format. I saw a way(using :g command) to do that before,
If your text paragraphs are separated by a blank line, this seems to work:
:g!/^\s*$/normal vipJ
:g global (multi-repeat)
:g
!/^\s*$/ match all lines except blank lines and those containing only whitespace.
!/^\s*$/
normal enters 'normal' mode
normal
vip visually select inner paragraph
vip
J join lines
J