|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Difference between .vimrc and .exrc?
What is the difference between .vimrc and .exrc? I google it but didn't find the brief explanation?
Regards ADI |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Well, .exrc was established by the original ex before there was a vi. The name vi means visual ex. The name ex means extended ed: http://www.unix.com/man-page/All/0/ed/ When the open source people wrote vi replacements, notably vim, they had the option to make additional configuration files for options in vim that are not ex/vi compatible. It is a bit like sh, ksh, bash, relative to .profile , $ENV, /etc/profile, /etc/suid-profile, .kshrc, .bashrc, .bash_profile, .bash_login.
The man page lists a bushel of config files down at the end: Man Page for vim (all Section 0) - The UNIX and Linux Forums |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
They have the same purpose.
Only vim looks for $HOME/.vimrc file. vim can also use $HOME/.exrc file, as can any vi editor. Only one of $HOME/.vimrc and $HOME/.exrc is read by vim, whichever it finds first. To prevent confusion, I would suggest just use one file, and delete the other one. I just use $HOME/.exrc file and do not have the $HOME/.vimrc file. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vimrc help with line endings | cokedude | UNIX for Advanced & Expert Users | 2 | 08-11-2011 03:22 AM |
| editing crontab with vim and using .vimrc | duc904 | Solaris | 2 | 12-21-2009 04:03 AM |
| URGENT : vi doesn't read my .exrc | inditopgun | Shell Programming and Scripting | 1 | 08-06-2009 11:26 PM |
| .exrc is not working | SasDutta | UNIX for Dummies Questions & Answers | 12 | 02-05-2009 07:10 PM |
| VIMRC question ???? | gk_linux | Shell Programming and Scripting | 6 | 01-19-2007 07:00 AM |
|
|