On 10/29/07, Ben Schmidt <[EMAIL PROTECTED]> wrote:

> Nah. Current directory makes more sense.
>
> But you may like to find yourself a nice vim script that changes the current
> directory to that of the buffer as you change buffers, etc. I believe there is
> such a thing on the Vim website. If not, I don't imagine it would be too hard 
> to make!
>
> Ben.


I have the following line in my .vimrc which does exactly what
you're looking for, and I find it very useful:

autocmd BufEnter * exe 'cd ' . substitute(expand("%:p:h")," ", "\\\\ ", "g")

I did not know about autochdir until I read this thread.

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui