function(…))
type() VIMINIT (and EXINIT?): it/they(?) influences which vimrc / initialization file is read at startup (source_startup_scripts()). g:filetype_* variables are used in runtime/autoload/dist/ft.vim. g:filetype_sql can be set define a filetype to be used for *.sql files. This variable is used in the mentioned ft.vim file like so: func dist#ft#SQL()
if exists("g:filetype_sql")
exe "setf " . g:filetype_sql
else
setf sql
endif
endfunc
dist#ft#SQL is called by an autocommand that is defined in $VIMRUNTIME/filetype.vim: au BufNewFile,BufRead *.sql call dist#ft#SQL()
set_vim_var_string (eval.c) $VIMRUNTIME must not end in a backslash (on Windows).