here are the details on how to use the
.exrcfile which is contains commands that are executed each time vi or vim is run.
in the dos version of vim the .exrc file is named
_vimrcand its assumed to be in the same directory that the executable program
vim.exe or vi.exein DOS if you store the executable vi.exe or vim.exe in
c:\windows\commandthen place _vimrc in the same path of
c:\windows\commandand all the vi commands in _vimrc will be executed everytime you fire up vi or vim.
if your a meat head and wish to place _vimrc in a different path then where you place the executable vi.exe you have to tell vim the path with
set VIM=c:\stupid\path\to\find\vimrc\file
in this case vi or vim will search for _vimrc in c:\stupid\path\to\find\vimrc\file and if it finds _vimrc it will execute all the vim commands it finds in it
i usually put these commands in the _vimrc file
Jump to the UNIX man pages UNIX manuals