Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see vimrc files used during startup

Tags:

vim

startup

I've moved my vimrc file out of the home directory to pathogenize the setup, but it looks like my vim is still picking up a redundant vimrc file that I made somewhere. Is there some variable in vim that I can echo that'll show what files were used during startup?

like image 450
beardc Avatar asked Dec 04 '22 16:12

beardc


2 Answers

:scriptnames lists all sourced script names, in the order they were first sourced.

like image 97
Ingo Karkat Avatar answered Jan 19 '23 08:01

Ingo Karkat


Look for the $MYVIMRC variable:

:echo $MYVIMRC
like image 39
skinp Avatar answered Jan 19 '23 09:01

skinp