Wednesday, March 18, 2026

Re: $VIMRC over .vimrc ?

On 2026-03-18, Eric Marceau wrote:
> I did a little experiment:

[...]

I did something similar with terminal vim. I set MYVIMRC directly
in my environment and set it in VIMINIT, also in my environment,
before starting vim. In all cases, I could see both environment
variables within vim and in the environment after shelling out of
vim, but in no case was there any evidence of those variables
affecting the vimrc sourced by vim at startup. The $MYVIMRC file
did not appear in the output of :scriptnames and none of the
settings made in that file were set in vim. The only vimrc sourced
was the system vimrc, /etc/vim/vimrc on Ubuntu.

It does seem like something is broken, because from vim's
documentation, I would have expected the file specified by MYVIMRC
to have been sourced.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/20260319051249.GC10946%40phoenix.

No comments: