我不经常重新格式化文本,除了平原之外gq所以这可能是简单的事情,但似乎没有在帮助中找到它的运气.
无论如何,我的文字看起来像这样
Funnily enough, that was exciting. 
"I've just about had enough of this," said a voice beside him. 
He looked up. A girl had come down the other path. Her face was red with exertion under the pale make-up, her hair hung over her eyes in ridiculous ringlets, and she wore a dress which, while clearly made for her size, was designed for someone who was ten years younger and keen on lace edging. 
She was quite attractive, although this fact was not immediately apparent. 
"And you know what they say when you complain?" she demanded. This was not really addressed to Victor. He was just a convenient pair of ears. 
Run Code Online (Sandbox Code Playgroud)
在Vim读书真是太痛苦了.所以我试着重新格式化它,gq这给了我这个
Funnily enough, that was exciting.  "I've just about had enough of this,"
said a voice beside him.  He looked up. A girl had come down the other path.
Her face was red with exertion under the pale make-up, her hair hung over
her eyes in ridiculous ringlets, and she wore a dress which, while clearly
made for her size, was designed for someone who was ten years younger and
keen on lace edging.  She was quite attractive, although this fact was not
immediately apparent.  "And you know what they say when you complain?" she
demanded. This was not really addressed to Victor. He was just a convenient
pair of ears. 
Run Code Online (Sandbox Code Playgroud)
这是相当无用的,因为在这种情况下,原始行结尾具有特殊含义.我想要完成的是这个
Funnily enough, that was exciting. 
"I've just about had enough of this," said a voice beside him. 
He looked up. A girl had come down the other path. Her face was red with
exertion under the pale make-up, her hair hung over her eyes in ridiculous
ringlets, and she wore a dress which, while clearly made for her size, was
designed for someone who was ten years younger and keen on lace edging. 
She was quite attractive, although this fact was not immediately apparent. 
"And you know what they say when you complain?" she demanded. This was not
really addressed to Victor. He was just a convenient pair of ears. 
Run Code Online (Sandbox Code Playgroud)
即保持原始行结尾,但要将每行比文本宽度"断开"成几行.因此它符合预定义的列宽限制.
任何人对如何做到这一点都有任何想法?这是一个相当大的文档,我需要一些处理它的方法.
在视觉上选择所有行然后在ex模式下执行:
:norm gqq
Run Code Online (Sandbox Code Playgroud)
gqq重新格式化一行.:带范围的范数在范围内单独应用普通代码.这意味着您可以gqq单独申请每一行.并且因为您textwidth设置了一定的长度(例如80),这意味着较短的行不会被连接/包裹.
我已经在您的示例文本上对此进行了测试,它只是给出了您想要的内容.
顺便说一句,你可以使用vim   :formatprg来修改外部prg.这样可以更好地控制您希望使用外部应用程序修改的内容.欲了解更多信息  :h formatprg