I know that it's not very common, but there are few cases in which I would really like to inherit the configurations for one filetype in another.
Example: whatever I set for sh
I would like to inherit in zsh
and bash
I know that it might be dangerous, since I won't be able to set any sh
specific variable any longer, but in few cases (like this), I don't believe this should be a problem.
For the time being the best way I found it's to use:
runtime! ftplugin/sh.vim
are you aware of anything better?
set filetype=sh.bash.zsh
ftdetect
itself: if I have custom rules forzsh
the wanted behavior would be to extend filetype also for them, but maybe it's just a matter of sorting the commands. Can you point me the reference for multiple filetypes? I cannot find it in the docs...:help 'filetype'
that begins "When a dot":help filetype
unfortunately...:help
is an art in and of itself ;)