ftdetect/xresources.vim

Enforce vim script implementation to reduce ambiguities and improve robustness:

scriptversion 4

I store xrdb configuration data in various files in ~/.Xresources.d/, it would be nice if vim could highlight them:

" vint: -ProhibitAutocmdWithNoGroup
autocmd BufRead,BufNewFile ~/.Xresources.d/* setfiletype xdefaults
" vint: +ProhibitAutocmdWithNoGroup

Warning

This doesn’t use FALLBACK as we always want to override vim’s default detection in this case. The use of a preprocessor to modify resources and relatively small files can often result in vim mis-detecting the filetype in interesting ways.