lalitmetkar / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

[patch] filetype.vim fails to put conf filetype detection in filetype autocmd group #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Lech.  Fixed by patch 7.3.430.

Original comment by brammool...@gmail.com on 5 Feb 2012 at 7:01