vim - What is the difference between .exrc and .vimrc? - Unix & Linux Stack Exchange
My questions are:
- What is the difference between .exrc and .vimrc?
- If both are present, then are both used?
- Is it bad practice to use the .exrc file to configure vim?
- .exrc is the configuration file for vi, whereas .vimrc is the config file for vim
- No. Vim will use the .vimrc file if present, otherwise the .exrc file if present
- Yes, unless you only put vi-compatible commands in there