On Sat, May 28, 2022 at 04:45:43PM +0200, Helge Kreutzmann wrote:
> On Fri, May 27, 2022 at 05:01:00PM -0400, James McCoy wrote:
> > This is mentioned at the top of /etc/vim/vimrc:
> > 
> > 
> > " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
> 
> On my freshly installed machine (for root), $VIMRUNTIME is not set,

$VIMRUNTIME is an internal variable Vim sets -- ":help $VIMRUNTIME".

I can add an example value here to make it more obvious what the path
is.

> nor is there a "defaults.vim" neither below /etc nor /root. 

"dpkg -S defaults.vim"

> If this is related to /usr/share/vim/vim82/defaults.vim, then this is
> indeed not what I was looking for.

Yes, it is what you're looking for, since that's what influences the
behavior when there's no user vimrc.  See ":help defaults.vim" and
previous discussion in #842833.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to