next up previous
Next: 19.2 Saving Option Information Up: 19. RC Files Previous: 19. RC Files

19.1 RC Search Paths

When Ved starts up it tries to read in RC file(s) from a variety of locations:

  1. /usr/local/etc/vedrc,

  2. if the above file is not found /usr/etc/vedrc.

  3. ~/.vedrc (this is a file starting with ``.'' in the users home directory).

  4. vedrc, this is a file in the current directory,

  5. if the above file is not found, .vedrc in the current directory.

If you think this is confusing, there is a logic to it all ....

First, an attempt is made to read in system wide defaults (from an etc directory). This file would contain information as to the location of things like the spelling modules.

Second, a user's preferences are read in her home directory. This file would contain commonly used macros, attribute/color settings, etc.

Finally, a file in the current directory is read. This file might contain macros for the projects in the directory.

When Ved starts up the above process is gone though twice. The first time it is done just before the ncurses background screen is initialized. The second time is after the command line has been processed and all files are loaded. This second step is needed to properly recognize if/then sections depending on file extensions.


next up previous
Next: 19.2 Saving Option Information Up: 19. RC Files Previous: 19. RC Files
2004-05-02