On Sat, 27 May 2023 19:32:31 +0300
M <matthewtarasov@gmail.com> wrote:
> ____, 27 ______ 2023 __., 18:31 Igor Lerinc <igor.lerinc7@gmail.com>:
> > [...]
> > I have no idea what is going on in (neo)Vim discussions about this
> > autoformating. Looks like those people never coded in their life.
>
> [...]
> However, note that such "auto-features" quickly become very annoying, so
> think twice on what conditions to apply or to bypass it.
Igor: I second Matvey's caution. If you are working on a project that
has an autoformat tool which all contributors are supposed to be using,
e.g., uncrustify, then autoformatting could possibly be useful. But if
you're working on a project that imposes no such formatting guideline,
then auto formatting code someone else wrote, which doesn't concern the
logic you're coding in a particular commit, is at best unhelpful for the
other contributors. And I mention other contributors because judging by
your comments such as "Looks like those people never coded in their
life," it's reasonable to expect you code in projects with multiple
people, not just yourself.
And as for a suggestion to your original question: see ':h formatprg',
':h formatoptions', ':h formatexpr', etc.
--
Enan
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230527230200.00006c5c%40gmail.com.
No comments:
Post a Comment