|
|
|
|
|
by Xophmeister
2915 days ago
|
|
`gq` will work with a text object, so you don't need to go to the trouble of visually selecting a block. Say, for example, you have a mis-wrapped paragraph in a text file, providing your cursor is anywhere within that paragraph, `gqip` will rewrap the whole paragraph. |
|
A quicker alternative to Shift-V, arrows, then `=` to reformat a paragraph with `fmt` is this:
That works anywhere inside the paragraph like with your `gqip`, but it uses the smarter `fmt` paragraph formatter.Select your keystroke to taste. I chose F2 so long ago that I forget why that was a good idea at the time.