I currently have the following line in my vimrc to highlight lines longer than 80 characters wide.
match ErrorMsg '\%>80v.\+
I would like this rule to be disabled when I am editing a SQL file, so I tried adding this line based on what I read in the help.
autocmd BufNew,BufRead *.sql :match ErrorMsg none
However, this throws the following error whenever I load a sql file.
Error detected while processing BufRead Auto commands for "*.sql":
E488: Trailing characters: :match ErrorMsg none
Press ENTER or type command to continue
How can I make it work without throwing the error?