On May 17, 7:17 pm, Alessandro Antonello <[email protected]> wrote: > Unfortunately this possibility is only available with syntax highlight. Maybe > a > future feature could extend this to 'indent' and 'ftplugin' scripts.
Both of these are actually pretty easy. For ftplugin, either use a dotted syntax (e.g. :set ft=txt.txtfmt) or simply use :source or :runtime at the top (or bottom) of the primary plugin file to also run the secondary one. For indent, you will need to set up an indent plugin which first sources the desired indent scripts, then calls the appropriate script to use for indent based on context (using the syntax highlighting rules is probably best to avoid duplicating effort). For the syntax rules, you have some good answers, here's another one: http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
