Search notes:

VIM: src/scriptfile.c

Functions for dealing with the runtime directories/files.

do_source()

Reads the given file (fname) and executes its lines as EX commands.
A speciality is that this function tries to read _vimrc if it was unable to read .vimrc (and vice versa), and similarly for the pair .exrc/_exrc)
If do_source() read an initialization (vimrc) file, it calls vimrc_found().
The DOSO_* macros.
See also the source_cookie struct.

do_in_path()

Find the file name in all directories of path and invokes callback if found.
name can contain wildcards.
flags:
Returns FAIL if no file could be sourced, OK otherwise.

do_in_path_and_pp()

Finds a file name in a given path using do_in_path().
When found, calls the given callback function.
If flags has DIP_ALL repeat for all matches, otherwise only the first one is used.
Returns OK when at least one match found, FAIL otherwise.
If name is NULL calls callback for each entry in path. Cookie is passed by reference in this case, setting it to NULL indicates that callback has done its job.

do_in_runtimepath()

Calls do_in_path_and_pp() with p_rtp for path.

fopen_noinh_readbin()

Special function to open a file without handle inheritance.
When possible the handle is closed on exec().
Returns a FILE*.

Index