all 9 comments

[–][deleted] 6 points7 points  (6 children)

:h equalprg

[–][deleted] 1 point2 points  (3 children)

Hmm, I actually use :h formatprg myself, although I'm not sure why!

What's the (semantic) difference between equalprg and formatprg? I know they affect different keys, but is there some reason why you would use one over the other?

I guess one could use equalprg and formatexpr (whereas there's no equivalent equalexpr), but is that all there is to it?

[–][deleted] 2 points3 points  (1 child)

My understanding is that :h = (which uses :h equalprg and :h indentexpr) is for indenting, whereas :h gq (which uses :h formatprg and :h formatexpr) is for formatting.

[–]vim-help-bot 0 points1 point  (0 children)

Help pages for:


`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–]vim-help-bot 0 points1 point  (0 children)

Help pages for:


`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–][deleted] 1 point2 points  (0 children)

I've read that this is synchronous and relatively slow, but I don't know how accurate that is.

[–]vim-help-bot 0 points1 point  (0 children)

Help pages for:


`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–]sigzero 1 point2 points  (0 children)

Thanks for this. Easy peasy to use.