I'm not completely sure I understand, (Please forgive my ignorance) the caller of vim_chdir should not be obviously aware of the existance of the hook surely? The actions take place just before returning.
Obviously the user adding a hook to PwdChanged that attempts to invoke :chdir would problematic, but I'm not sure I understand your meaning. I was aware that there was probably a good reason this has not been done before, because it seemed like a very useful feature I was surprised not to find already there. Finally, my original question may have been poorly phrased, I was posting to the list purely because the hook did not seem to work correctly.. I could add actions with autocmd PwdChanged call SomeFunction() And verifiy that they are set with autocmd PwdChanged Which seems to imply that the changes to fileio.c and vim.h were all that's required to create the new type, but the actions associated with PwdChanged were never executed. I tried to follow this up by adding a different type of hook to my .vimrc and changing the event called in misc2.c which also did not cause any actions to take place, at which point I became stumped and resorted to posting here. Thanks for your time, and for vim. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
