can set vi
options for all files - or
for files in a certain directory (30.6
The articles listed below show other ways to set your vi
A controversial feature because of security problems,
are still handy if you use them carefully.
They let you store setup commands for each file, in the file itself.
Instead of modelines, you can make separate setup files for each file
you want to edit.
These don't have the security problems of modelines because you can make
the setup files read-only.
lets you choose any one of a number of setups by typing a setup-choosing
command from the shell prompt.
commands you start afterwards will use that setup.
You can start a new setup any time.