When opening a bind zone file, I have to type by hand :set ft=bindzone to get syntax highlighting. It's not set automatically on load.On another hand others filetypes (such as php, perl or kind) are properly set.Where I should look first to solve this ?
Vi/Vim 8 on debian stretch : filetype bindzone not loaded automatically
syntax highlighting;filetype
the filetype bindzone is supported by default in Vim using the filetype.vim in $VIMRUNTIME which sets the filetype according to the properties of your file. By default however, Vim only sets the filetype to bindzone if the file is called named.root and for any file that has the extensions .db and the first 4 lines match this regex:'^; <<>> DiG [0-9.]\+ <<>>\|BIND.*named\|$ORIGIN\|$TTL\|IN\s\+SOA'If your files do not match that, consider renaming them (if that is the cause for not detecting it properly), add a modeline as shown by @grodzik or enhance the filetype detection logic (see the faq question 26.8).Also, in case you suspect a bug in the default filetype.vim file, consider creating a PR at the vim/vim repository suggesting a fix for that.