Note that there are some explanatory texts on larger screens.

plurals
  1. POReformatting in Vim, the sensible way
    primarykey
    data
    text
    <p>I don't often reformat text, apart from the plain <code>gq</code> so this is probably something simple, but just don't seem to have the luck of finding it in the help.</p> <p>Anyways, I have the text that looks like this</p> <pre><code>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. </code></pre> <p>And that's a pain to read in Vim. So I tried to reformat it with <code>gq</code> and that gives me this</p> <pre><code>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. </code></pre> <p>which is rather useless, since the original line endings have special meaning in this case. What I'm trying to accomplish is this</p> <pre><code>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. </code></pre> <p>i.e. to keep the original line endings, but to "break" every line longer than textwidth into several lines. So it fits the predefined column width limits.</p> <p>Anyone have any ideas on how to do that? It is a rather large-ish document, and I need some way of handling it in one piece.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload