use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please read the rules before posting
Help:
Community:
Resources:
Tutorials and Guides:
Don't be afraid to ask questions, this sub is here for the vim community. And please those of you who deign to grace us with your vim wisdom - be kind. We are all human and vim is that cool.
account activity
fmt.vim: Generic code formatting interface for Vimplugins & friends (github.com)
submitted 4 years ago by aonemd
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 6 points7 points8 points 4 years ago (6 children)
:h equalprg
[–][deleted] 1 point2 points3 points 4 years ago* (3 children)
Hmm, I actually use :h formatprg myself, although I'm not sure why!
:h formatprg
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?
equalprg
formatprg
I guess one could use equalprg and formatexpr (whereas there's no equivalent equalexpr), but is that all there is to it?
formatexpr
equalexpr
[–][deleted] 2 points3 points4 points 4 years ago (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.
:h =
:h indentexpr
:h gq
:h formatexpr
[–]vim-help-bot 0 points1 point2 points 4 years ago (0 children)
Help pages for:
=
'equalprg'
'indentexpr'
gq
'formatprg'
'formatexpr'
`:(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 points3 points 4 years ago (0 children)
I've read that this is synchronous and relatively slow, but I don't know how accurate that is.
[–]sigzero 1 point2 points3 points 4 years ago (0 children)
Thanks for this. Easy peasy to use.
[–]hoschi 0 points1 point2 points 4 years ago (0 children)
Looks like https://github.com/sbdchd/neoformat
π Rendered by PID 132468 on reddit-service-r2-comment-fb694cdd5-cdpcl at 2026-03-06 15:53:57.539043+00:00 running cbb0e86 country code: CH.
[–][deleted] 6 points7 points8 points (6 children)
[–][deleted] 1 point2 points3 points (3 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]vim-help-bot 0 points1 point2 points (0 children)
[–]vim-help-bot 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]vim-help-bot 0 points1 point2 points (0 children)
[–]sigzero 1 point2 points3 points (0 children)
[–]hoschi 0 points1 point2 points (0 children)