How to reformat “gq”ed text in one line per paragraph format in Vim

后端 未结 3 1891
感情败类
感情败类 2021-02-06 04:13

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,

3条回答
  •  無奈伤痛
    2021-02-06 04:56

    Maybe you should set textwidth to very large value (like 99999999) (0 does not work for some reason) and use gggqG?

    // I cannot tell you a way to reformat your paragraph with :g without knowing exactly what the paragraph is. Maybe somebody else can.

提交回复
热议问题