- 论坛徽章:
- 0
|
3. Execute the system-wide vimrc file. The exact path is set
when vim is compiled. A typical value is
/usr/local/share/vim/vimrc.
4. Execute instructions in the first place that exists of the
following four:
o
The environment variable VIMINIT.
o
The user vimrc file, $HOME/.vimrc under UNIX (or
Linux). The location will be different on non-UNIX
systems. If .vimrc does not exist, vim looks for _vimrc.
On the non-UNIX systems, the order is reversed.
o
The environment variable EXINIT.
o
The user exrc file, $HOME/.exrc. On non-UNIX systems,
_exrc is tried. However, in this case, vim only looks for
one or the other, not both.
5. If the exrc option has been set, then vim looks in the current
directory for the first file that exists of the following four. The
others are ignored.
o
.vimrc
o
_vimrc
o
.exrc
o
_exrc
On MS-DOS and Win32 systems, the _xxxrc files are looked
for before the .xxxrc files.
6. If they have not yet been set, the shellpipe and shellredir
options are initialized based on the value of the shell option.
The shellredir option is discussed in Section 11.9.1.
7. If -n was given on the command line, updatecount is set to
zero. (This option controls how often the swap file is updated.
The more often, the more the swap file is synchronized with
all your changes, but possibly with decreased performance.
Zero means never.)
8. If -b was supplied, set the appropriate options for editing
binary files.
9. Perform GUI initializations. See the next subsection.
10. If viminfo is set, read the file indicated there.
11.
If -q was supplied, read the named quick fix file. The
quick fix facility is described in Section 11.9.1.
12.
Open and fill all windows, as per the -o option. If -qwas supplied, go to the first error.
13.
Jump to the tag given by the -t option, if supplied.
Execute any commands given with -c.
That's a lot of steps. As in other areas, vim's extra facilities also
provide extra flexibility and customizability. |
|