autochdir doesnt work right

2006-04-27 Thread Eric Crahen
I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I specify a file on the command line. The buffer for the file I specify is open, but the cwd is right where I started vim. I have to :bn|:bp to get the

Re: autochdir doesnt work right

2006-04-27 Thread Benji Fisher
On Thu, Apr 27, 2006 at 09:44:04AM -0700, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I specify a file on the command line. The buffer for the file I specify is open, but the

Re: autochdir doesnt work right

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I specify a file on the command line. The buffer for the file I specify is open, but the cwd is right where I

Re: autochdir doesnt work right

2006-04-27 Thread Gerald Lai
On 4/27/06, Eric Crahen [EMAIL PROTECTED] wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On Thu, 27 Apr 2006, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I

Re: autochdir doesnt work right

2006-04-27 Thread Eric Crahen
When I open files from within vim its not a problem. Its the files that are opened from the command line, a method I use every day. On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On 4/27/06, Eric Crahen [EMAIL PROTECTED] wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On Thu, 27

Re: autochdir doesnt work right

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Eric Crahen wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On 4/27/06, Eric Crahen [EMAIL PROTECTED] wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On Thu, 27 Apr 2006, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to