:au for Makefiles, except for Makefiles in certain dir.

2009-10-04 Thread viki
I have au rule for Makefiles: au BufWritePre Makefile :something Now it turns out that Makefiles in directory $PDIR and $PDIR/** shall be excluded from this rule. How do I express such exception in au rule ? Thanks Viki --~--~-~--~~~---~--~~ You

Re: :au for Makefiles, except for Makefiles in certain dir.

2009-10-04 Thread Stahlman Family
viki wrote: I have au rule for Makefiles: au BufWritePre Makefile :something Now it turns out that Makefiles in directory $PDIR and $PDIR/** shall be excluded from this rule. How do I express such exception in au rule ? You can test the path in the autocommand itself: e.g.,