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