4 ms·
gggqG - wraps the entire document
by residualmind 13y ago
gggqG - wraps the entire document
- pooriaazimi 13y agoWhy three g's at the beginning?
- residualmind 13y ago(g) invokes extra commands. here two are used: (gg) places the cursor at the top. (gq) wraps the text until (G) the end of the document.
- weinzierl 13y agoGood call, but it does violence to the ASCII creature:-( That's why I suggested gqip on every paragraph, but I'm sure there are more efficient ways.
- ajanuary 13y agoCould you place the cursor just above the ASCII art and then wrap from there to the top of the document?
- residualmind 13y agoFor that, you could place the cursor above the ASCII art; press (ma) to set marker 'a'; (gg) to go to the top; (gq`a) to wrap until marker a. ;)
- residualmind 13y agoAh, I do see your point!
- dredmorbius 13y agogqG also does violence to some plain-text formatting, such as numbered lists or other short sections in which a specified line length or presentation is preferred. Long lines and wrapping within the text viewer is probably your best bet.