I am editing a source code in language1.
It doesn't have a built-in syntax highliting configuration into my vim.
However, its syntax is very similar to language2, which has. I think, syntax highliting the sources as language2 would be pretty okay for me. Thus, I tried to set up the syntax highliting of language2 to the files with extensions of language1.
Checking the syntax highliting configuration of my distribution-provided vim (
filetype.vim), I found the line
au BufNewFile,BufRead *.<ext2> setf language2
Thus, I inserted a line
au BufNewFile,BufRead *.<ext1> setf language2
into my local
However, nothing happened. My source files - in language1 - are still un-syntax highlited.
Why is it so? How could I make it working?