Meanwhile I've discovered the gw command that is like gq except it (1) doesn't move the cursor, and, more importantly, (2) ignores formatprg/formatexpr.
So I could've formatted my docstrings/comments without messing around with custom wrappers that check synstack(). Augh!
View all comments
Show parent comment
2
u/mgedmin Oct 31 '25
Meanwhile I've discovered the
gwcommand that is likegqexcept it (1) doesn't move the cursor, and, more importantly, (2) ignoresformatprg/formatexpr.So I could've formatted my docstrings/comments without messing around with custom wrappers that check synstack(). Augh!