diff options
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 90ce86dd..f6dce94a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2011 Oct 26 +" Last Change: 2011 Dec 28 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -2533,6 +2533,10 @@ au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini') au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh') +" Plain text files, needs to be far down to not override others. This avoids +" the "conf" type being used if there is a line starting with '#'. +au BufNewFile,BufRead *.txt,*.text setf text + " Use the filetype detect plugins. They may overrule any of the previously " detected filetypes. |