On Nov 17, 6:05 pm, Rich Healey <[email protected]> wrote: > Hi List, > > Sorry if this has been asked before but I can't find anything to document > it. > > There are some actions I want to fire off when I change working directory > within vim. I could just create a Chdir command that does my stuff and then > hands back to the builtin, but ideally I'd like my actions to fire when > something else causes the directory to change. > > Is there some technical obstacle I'm not seeing for this? I was surprised > not to find it in the list of :help autocmd >
I don't think there's any autocmds which fire on a directory change. I thought maybe BufFilePost would, because the name displayed for the buffer does change, but this doesn't work and it would be more of a quirk than expected behavior if it did. So you can either do as you suggest and create a :Chdir command or similar, or you could get close to what you want with CursorHold or CursorMoved or the like. -- You received this message from the "vim_use" 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
