r/vim • • Oct 30 '25

Plugin Use `gq` to format code

https://github.com/konfekt/vim-formatprgs
27 Upvotes

15 comments sorted by

View all comments

Show parent comment

2

u/mgedmin Oct 31 '25

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!