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

Re: [PATCH v2 0/2] vim: configuration and sharness syntax

From
Jeff King <peff@peff.net>
Date
Dec 9, 2020, 17:11 UTC
Message-ID
<X9EFVIlm8sYKtLwr@coredump.intra.peff.net>
In-Reply-To
<20201209065537.48802-1-felipe.contreras@gmail.com>
On Wed, Dec 09, 2020 at 12:55:35AM -0600, Felipe Contreras wrote:
> After investigating alternatives for exrc I found too many, doing a wide
> range of irrelevant stuff, many unmaintained, others requiring multiple
> dependencies, and some loaded the configuration too late.

I'm not opposed to this solution, but I probably wouldn't use it myself. I wonder if it would be sufficient to just say "here are some sensible vim options", coupled with human-readable instructions for how to integrate them into your .vimrc, along with some path-selection.

It's perhaps not quite as turnkey. On the other hand, it's easy for people who are even moderate vim users to understand what each line does. In the plugin solution, there are more lines dedicated to loading the config than there are actual config lines.

I dunno.
> And since I already created some files in 'contrib/vim' I decided to put
> the sharness syntax file there too.

This part I like very much. The actual policy logic is sufficiently complex that I hope people will be able to contribute back small fixes.

-Peff
Previous: Felipe ContrerasNext: Felipe Contreras
Message 21 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.