On Tue, Oct 7, 2008 at 5:48 AM, Efraim Yawitz <[EMAIL PROTECTED]> wrote:
>>> :au BufRead /some/directory set syn=somesyntax >> >> You should set 'filetype' rather than 'syntax'. What happens is (I >> think) the following: > > I checked this also, and it also wasn't working. Then I realized what > the problem was. I had done a :cd (actually a :lcd) to > /some/directory and opened the file without the full path, so the > match wasn't working. When opening with the full path, set syn worked > fine. Now the question is, how do I get this match to work without > the full path? If this is still a problem, please try running vim without any startup files (vim -U NONE -u NONE) and execute just your autocommand, and then test it. I can't make it fail by trying a couple of obvious configurations. Also, please include the exact text of your autocommand. Thank you, bob --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
