A.J.Mechelynck wrote:

> If it is other than "octave", the following will detect these *.m files:
> 
> 1. Make sure that you have a directory named $VIM/vimfiles (for
> system-wide detection) or $HOME/.vim (for single-user detection on Linux).
> Create it if necessary (by $VIM, I mean the value of $VIM as set by Vim,
> usually something like /usr/share/vim or /usr/local/share/vim -- check it
> using ":echo $VIM" without the quotes).
> 
> 2. In that directory, create or update a file named "filetype.vim" as
> follows:
> 
> - it should start with
> 
> augroup filetypedetect
> 
> - it should end with
> 
> augroup END
> 
> - anywhere between these two lines, it should have
> 
> au BufRead,BufNewFile *.m setf octave
> 
> 3. To activate the new autocommand, you may have to do
> 
> :filetype off
> :filetype on


Thanks a lot for the detailed instructions. I got it working now.

thanks
raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/

Reply via email to