Thursday, June 17, 2010

How to test filetype in _vimrc

I am trying to test for filetype '.bat' in _vimrc and set syntax off. I tried adding the following to _vimrc but it does not work:
 
if v:fname_in =~ '.bat$'
   syntax off
end if
 
I echoed v:fname_in and it was NULL. I also echoed v:fname_out and it was also NULL. That seems strange. Can someone offer a solution?
 
Thanks,
Roy Fulbright
 


The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.

No comments: