Wednesday, April 6, 2011

Re: force use of scripts.vim to find filetype

Excerpts from Alvin Kerber's message of Tue Apr 05 18:51:40 +0200 2011:
> 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: