git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 1/2] Add project-wide .vimrc configuration

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Dec 11, 2020, 01:08 UTC
Message-ID
<CAMP44s33J6F60W=2Yd2WSGE78VT0XBkewi8m3unXvathBH2TOQ@mail.gmail.com>
In-Reply-To
<X9GbIG9vZbK1pEoi@camp.crustytoothpaste.net>

On Wed, Dec 9, 2020 at 9:51 PM brian m. carlson <sandals@crustytoothpaste.net> wrote:

> On 2020-12-09 at 06:55:36, Felipe Contreras wrote:
Show 5 quoted lines
> I don't think this should go in this location.  It should go in contrib.
> Here's why:
>
> * We should not ship editor-specific files in the main directory of the
>   repository.
Why not?
>   Even though Vim is very popular, it is one of many
>   editors, and it is not even the most popular editor (which is now VS
>   Code).

Even if vim is not the most popular, it certainly is among the top 3 (and I doubt VS Code is the most popular, I would like to see some numbers on that, but even then; VS Code is not an editor).

Nobody is arguing to have editor-specific files for "every editor under the sun", just perhaps 2 (or maybe even 3).

No slippery slope fallacy here.
>   We have editor-independent files, and users can copy this into
>   the root of the repository and ignore it if they want it there.

Which are insufficient. They are certainly better than nothing. Plus, it's unclear how many people are actually using those.

And I'm still waiting for the argument against adding such a top-level file.
What is the harm?
Show 5 quoted lines
> * Whether a user wants to use automatic indentation is a personal
>   preference.  I do happen to like it, but there are others who don't
>   and prefer to leave it off.  Similarly, whether to use cindent,
>   smartindent, or autoindent is a preference, as is which cindent
>   options to use (I use different ones).
So?

These options will not be forced on users, they have to specifically enable them by doing at least two steps, *and* they can still selectively override them in their ~/.vim files.

> * These settings affect every file that's loaded in the same editor
>   process.
That is not true.

:setlocal [1] applies the setting to the current buffer only, not globally, and *only* when the buffer is of the filetype specified in the autocommand.

> So while I agree that these are common settings, they are not
> universally applicable, even for Vim and Neovim users, and we shouldn't
> try to claim that all or even most Vim and Neovim users should use them.

We don't. These are defaults, which a) the user must consciously choose to apply them, and b) can be easily overridden (as is explained in the commit message).

> So I think contrib makes more sense here.

Clearly. But you haven't put forward an argument about how precisely will this negatively affect *any* user (or the project).

Cheers.
[1] https://vimhelp.org/options.txt.html#%3Asetlocal
-- 
Felipe Contreras
Previous: brian m. carlsonNext: brian m. carlson
Message 11 of 22 in “vim: configuration and sharness syntax”
  1. 0/2 vim: configuration and sharness syntaxFelipe Contreras, Dec 9, 2020
  2. 1/2 Add project-wide .vimrc configurationFelipe Contreras, Dec 9, 2020
  3. Christian BrabandtDec 9, 2020
  4. Felipe ContrerasDec 9, 2020
  5. Christian BrabandtDec 9, 2020
  6. Jeff KingDec 9, 2020
  7. Felipe ContrerasDec 10, 2020
  8. Jeff KingDec 10, 2020
  9. Felipe ContrerasDec 11, 2020
  10. brian m. carlsonDec 10, 2020
  11. Felipe ContrerasDec 11, 2020
  12. brian m. carlsonDec 11, 2020
  13. Felipe ContrerasDec 11, 2020
  14. Jeff KingDec 15, 2020
  15. Felipe ContrerasDec 15, 2020
  16. Jeff KingDec 15, 2020
  17. Felipe ContrerasDec 15, 2020
  18. 2/2 contrib: vim: add sharness syntax fileFelipe Contreras, Dec 9, 2020
  19. Eric SunshineDec 9, 2020
  20. Felipe ContrerasDec 9, 2020
  21. Jeff KingDec 9, 2020
  22. Felipe ContrerasDec 10, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.