Monday, February 22, 2010

Re: Using matchit.vim with an odd file extension

On 2010-02-22, zzapper wrote:
> Hi
> I'm working with some html files which happen to have the extension *.raa
>
> I want matchit.vim to match html tags <table></table><div></div> etc
>
> so I've add raa to the following
>
> au FileType html,jsp,php,cf,raa if !exists("b:match_words") |
>
> but it's being ignored: suggestions?
>
> (I know from scriptnames that this is the only matchit.vim)

I don't see an "raa" file type in $VIMRUNTIME/filetype.vim. Do you
have your own ~/.vim/filetype.vim or ~/.vim/ftdetect/raa.vim (or the
Windows equivalent) that maps the .raa extension to the raa file
type?

If not, the simplest solution is to create a file named
~/.vim/ftdetect/raa.vim and containing this line.

au! BufRead,BufNewFile *.raa set filetype=raa

See

:help plugin-filetype
:help ftdetect

HTH,
Gary

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: