Help in finding files (.vimrc) in Mac
If you still have the command in your history, you could run history | grep .vimrc.


mdfind -name .vimrc: fast, includes files that aren't normally shown by Spotlight, but not files that aren't indexed, like files in folders that start with a period.
find / -name .vimrc: slow, includes all files.
locate .vimrc: relatively fast, but doesn't include all files and relies on a database that is only rebuilt once per week by default.


You could also use Find Any File, which is faster than find and includes files that aren't indexed by Spotlight.