au BufNewFile,BufRead *diff*.txt set ft=diff_help
but then when i do
tabnew diff.txt
set ft
i get
filetype=help
why?
by the way, i have later on in .vimrc
filetype on
does this override the autocommand?
because from insdie the buffer when i set a help type file (*.txt) manually
to anything (for exapmle:'new') and then the command filetype, the filetype
doesn't changed
thanks
alex
--
View this message in context: http://old.nabble.com/set-filetype-in-.vimrc-tp28931594p28931594.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
You received this message from the "vim_use" 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
No comments:
Post a Comment