[EMAIL PROTECTED] wrote:
"A.J.Mechelynck" <[EMAIL PROTECTED]> 写于 2006-11-09 17:17:05:
Filetype plugins are sourced if ":filetype plugin on" has been used.
Indent plugins are sourced if ":filetype indent on" has been used.
Syntax scripts are run if both ":filetype on" and ":syntax on" have been
used.
Best regards,
Tony.
So, it seems that the right place to override something is the
~/.vim/after/indent ? (if all he want is to set tabstop shiftwidth
expandtab ...)
--
Sincerely, Pan, Shi Zhu. ext: 2606
The indent plugin is chiefly concerned with setting either 'cindent' and
'cinoptions', or 'indentexpr'.
The 'tabstop' option is, for instance, set to 8 in
$VIMRUNTIME/ftplugin/python.vim (a filetype plugin) because tabs are
significant in the Python language, and the rules of the language prescribe
that hard tabs must be interpreted as "spaces until and including the next
multiple of 8".
The OP may want to set 'tabstop' etc. regardless of whether or not he wants to
use the indent/mtlab.vim script (if any) to define how to compute the level of
indentation (the _number_ of tabs or shiftwidths) to be applied to any given line.
Best regards,
Tony.