On 30/12/08 12:30, François Ingelrest wrote:
> On Tue, Dec 30, 2008 at 12:17, Tony Mechelynck wrote:
>> Every time:
>>         :set autochdir
>>
>> This will constantly change your working directory; the help says that
>> it may cause some plugins not to work.
>
> I used this option for some time, but eventually found that sometimes
> it does not work. I have been unable to find what triggers this bug,
> so I use a simple autocommand:
>
> au BufEnter * lcd %:p:h
>
> This proved to work flawlessly.

With :lcd, triggering on BufRead,BufNewFile ought to be enough.

Best regards,
Tony.
-- 
Rule of Feline Frustration:
        When your cat has fallen asleep on your lap and looks utterly
content and adorable, you will suddenly have to go to the bathroom.

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

Reply via email to