I'm trying to use autocmd BufNewFile to like so:
autocmd BufNewFile \(.*_spec\)\@!.rb 0r ~/vim/skeleton.rb autocmd BufNewFile *_spec.rb 0r ~/vim/skeleton_spec.rb
So, I want the first line to match all .rb files NOT ending with _spec.rb, and the second line to only match *_spec.rb files. I've tried various incarnations of the first line to no avail.
Thanks in advance.