Re: $VIMRC over .vimrc ?
Marvin Renich <[email protected]> Wed, 18 Mar 2026 15:46:26 -0400
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <[email protected]> |
* Christopher <[email protected]> [260318 14:33]: > I read the documentation, therefore like with many I also use the system > wide .vimrc file when starting vim. I want to know how to set the $MYVIMRC > as the documentation ? It is set automatically by vim within the vim session. Assuming you are using Linux (or other Unix-like OS), try echo $MYVIMRC from the command line. It should print a blank line if it is not set. Now, invoke vim and try :echo $MYVIMRC from within vim. It will be set to the full path of the vimrc file that was used. Vim will export this for subshells. Still within vim, try :! echo $MYVIMRC (note the space after the "!"). This will create a subshell and demonstrate that MYVIMRC is exported. After you leave vim, the variable should not be set in your shell; this is normal. You should not set this variable yourself; let vim do it. ...Marvin -- -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_use/absBErLDWQq6G1Vj%40basil.wdw.