For example, I have the following autocommand
definition:
augroup cursorline
autocmd!
autocmd WinLeave,BufLeave * set nocursorline
autocmd WinEnter,BufEnter * set cursorline
augroup end
I want to define something that excludes *.tex
files:
autocmd WinEnter,BufEnter * "except *.tex" set cursorline
What is the syntax for that? I'm not sure what keywords to search the help docs.