[EMAIL PROTECTED] wrote: [...] > I don't know if there's any difference between ftplugin directory and > syntax directory. [...]
Syntax scripts are for syntax highlighting: setting various colors in the display of the file, and defining the keywords, regions, etc., which delimit those colours. Also, if necessary, defining how far back to examine a file in order to "synchronize" syntax regions. In principle, a syntax script should contain (almost) exclusively - ":syntax" statements, and possibly also - ":highlight default" statements. Indent plugins are for filetype-related indenting. Filetype-plugins are for other settings to be set at the FileType autocommand event. They include among others: - ":setlocal" statements not related to indenting; and possibly - ":map <buffer>" statements (and its various flavours for the various modes with or without remapping). 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.
