Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 52 by [email protected]: [patch] filetype.vim fails to put
conf filetype detection in filetype autocmd group
http://code.google.com/p/vim/issues/detail?id=52
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.
Attachments:
filetype-vim-augroup.patch 943 bytes
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php