Hi Roy!

On Do, 17 Jun 2010, Roy Fulbright wrote:

> 
> 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


that won't work. Either put the line
setlocal syntax=off
into your $HOME/vimfiles/after/syntax/dosbatch.vim ( I assume you are 
using Windows, create directories that don't exists yet)
or use an autocommand like this:

augroup dosbatch
    au!
    au FileType dosbatch :setl syntax=off
augroup end

regards,
Christian
-- 

-- 
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

Reply via email to