> autocmd BufNewFile,BufRead *.foo set filetype=ignored
autocmd BufNewFile,BufRead *.foo if getline(1) == | set ft=.. | endif
Something like this should work as expected. If you have more code than
this simple if use what was shown in the other thread or call a
function.
Marc Weber
--
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