Wednesday, November 28, 2012

autocmd pattern exclusion?

I have an autocmd that I would like to trigger for all files, except a certain file.  Is there a way to write this?

I'm thinking something like:

    autocmd BufReadPost *, !.git/COMMIT_EDITMSG  <do stuff>

Thanks,

Matt

No comments: