Use 
:se exrc in ur _vimrc file
And then create a _vimrc file local to the directory in question.
Check help for more details.

Regards,
Sibin

-----Original Message-----
From: Andrea Spadaccini [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 05, 2006 3:17 PM
To: [email protected]
Subject: Execute something when I enter in a directory

Hello vimmers,
I'd like to load some settings when I enter in a directory, like for
instance setting makeprg.

Is there a way to do it?
Thanks in advance from a lurker! :)

-- 
[ Andrea Spadaccini - a.k.a. Lupino - from Catania - ICQ #: 91528290 ]
[ GPG ID: 5D41ABF0 - key on keyservers - Gentoo GNU / Linux - 2.6.16 ]
[ Linux Registered User 313388 - @: a.spadaccini(at)catania.linux.it ]
-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

-----------------------------------------------------------------------------------------------------------------------------

Reply via email to