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

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

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Dec 9, 2020, 06:55 UTC
Message-ID
<20201209065537.48802-1-felipe.contreras@gmail.com>

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.

The only one that seemed to fit the bill is vim-addon-local-vimrc, which does work straightofrwardly, but hasn't been updated since 2015.

Instead I chose to simply vim-addon-local-vimrc, and take advantage of git ('git rev-parse --show-toplevel' saves us a lot of the complexity of these loaders).

The result is a very simple loader which is also secure, since it cannot do anything unless you manually whitelist the project(s) you want load .vimrc files from.

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

Felipe Contreras (2):
  Add project-wide .vimrc configuration
  contrib: vim: add sharness syntax file
 .vimrc                          | 23 ++++++++++++++++++++++
 contrib/vim/plugin/gitvimrc.vim | 21 ++++++++++++++++++++
 contrib/vim/syntax/sharness.vim | 34 +++++++++++++++++++++++++++++++++
 3 files changed, 78 insertions(+)
 create mode 100644 .vimrc
 create mode 100644 contrib/vim/plugin/gitvimrc.vim
 create mode 100644 contrib/vim/syntax/sharness.vim
-- 
2.29.2
Next: Felipe Contreras
Message 1 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.