Thursday, June 17, 2010

RE: How to test filetype in _vimrc

> 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

Thanks for your suggestion (also the autocommand alternative). Life is much better now while editing batch files. The reason I wanted to turn syntax highlighting off for batch files is because datetime values (10 consecutive digits) are displayed with random digits highlighted, which is very distracting.
 
Thanks again,
Roy Fulbright
 


Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.

No comments: