I want to set variables, in particular,
compile-command and tabbing related variables based on the path of the file I'm editing.
.vimrc I use the following to do this.
autocmd BufRead,BufNewFile */path/*.ext set tabbing-setting autocmd BufRead,BufNewFile */path/*.ext set makeprg=build.sh
These cause vim to run the
set ... commands whenever I create or read a file that matches the pattern
I don't want to use directory-local variables because I want this to live with the rest of my emacs configuration.