-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Tue, 2026-02-24 at 06:51 -0500, James McCoy wrote:
> > Would it be possible to look in /etc/nvim and even maybe fall back to
> > /etc/vim for system-wide, admin configuration file?
>
> This is already supported. From ":help sysinit.vim"
>
> *system-vimrc*
> *sysinit.vim*
> a. The system vimrc file is read for initializations. If
> nvim/sysinit.vim file exists in one of $XDG_CONFIG_DIRS, it will be
> used. Otherwise the system vimrc file is used. The path of this
> file
> is given by the |:version| command. Usually it's
> "$VIM/sysinit.vim".
>
> ":echo stdpath('config_dirs')" shows your environment's set of config
> dirs. In my case that's ['/etc/xdg/nvim'].
Hi, thanks, seems to work fine indeed.
Would it be possible then to ship a standard /etc/xdg/nvim/sysinit.vim so it's
better documented, and maybe mimic the default vim init file in order to
facilitate the transition?
Regards,
- --
Yves-Alexis
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmmdnLMACgkQ3rYcyPpX
RFvF7wf/TQBrfVNg7HPjpjsmxdvvgw1V2wwz5y7HKWoOuWQh5S8m17qjpQajNLwu
149H8DnaeXJCXHX4+9znYqk09yLOVUpTi60HIadS/rUpYJIaA0opNsaaZlzidzPt
7TzohYsRhpxx2L5nSXLYbB8zCntpyzF58NUPE5djzO1EncUZlOcnY97Qf8d9GOcU
09E8J+4v3NwHcncyx3NMmOSsR/6D9whCwop+cwSQQraQbtTQEEACXRfDpdm6cyyo
76/I34MCIO6a7kURJ75YA6qUovxJaPVrkXZMB1TZHb00uC3cxBN4nkqz4vH64+A3
BULChr90kfHuJ3xZzlAiy3MNeGZBEw==
=tNEC
-----END PGP SIGNATURE-----