gq{motion} % format the line that {motion} moves over
{Visual}gq % format the visually selected area
gqq % format the current line
(And, of course, things like 5gqq to format the next five lines.)
Specifically for me, gq} is broken. While I can visually select some lines and run gq and that works, I can't just go to the top of my comment and run gq}, even though the cursor moves appropriately, the wrapping does not happen. The roadmap states that gq{motion} is implemented, but it appears broken.
Until this is implement, you can also emulate this with:
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": [
"g",
"q",
"q"
],
"after": [
"V",
"g",
"q"
]
}
]
@andschwa That's because gq was implemented as a command, and only operators support applying them over a region.
Thus, I just implemented it as an operator :smile:
Most helpful comment
@andschwa That's because gq was implemented as a command, and only operators support applying them over a region.
Thus, I just implemented it as an operator :smile: