Thursday, October 6, 2022

Re: Where should $VIM point to?

On Fr, 07 Okt 2022, Enan Ajmain wrote:

> Where should `:h $VIM` point toward? Where vim is installed or where vim
> configurations is situated? By default it points to where vim is
> installed. But the help doc says:
>
> > The environment variable "$VIM" is used to locate various user files
> > for Vim, such as the user startup script ".vimrc".
> ^^^^^^
>
> Is `$VIM` supposed to point to my user config folder or the installation
> directory? What is its intended purpose?

You should not be required to bother :)

By default, it points to the installation folder (the parent of the
vim90 folder, so typically /usr/share/vim). You can check from within
Vim by doing :echo $VIM

Note, it may contain the so-called system vimrc, as mentioned in the
output of :version

,----
| system vimrc file: "$VIM/vimrc"
`----


Best,
Christian
--
Letzte Worte eines Liebhabers:
"Stört's Dich wenn ich dabei lese?"

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/20221007062516.GA1115470%40256bit.org.

No comments: