Create ftdetect/foo.vim in your .vim config directory.
In the file put some autocommands in a group. Finish with:
augroup END
As a result, the conf filetype detection from stock filetype.vim will not be
placed in filetypedetect autocmd group.
Consequently, if you disable filetype detection and re-enable it:
filetype off
filetype on
The conf filetype will override all settings and each file which has a pound
sign
starting one of the 5 first lines will be detected as conf file.
The attached patch fixes the problem.
Original issue reported on code.google.com by lech.lor...@gmail.com on 5 Feb 2012 at 1:11
Original issue reported on code.google.com by
lech.lor...@gmail.com
on 5 Feb 2012 at 1:11Attachments: