On 2010-04-21, Wayne wrote:
> Hi all,
> First, I'm sorry for not searching if any such subject had exist before this
> mail.
It didn't exist in your mail, either. :-)
> I have some configuration info specific to project such as path, tags file,
> and
> other special settings. And I should apply these settings manually after vim
> is
> started.
> These settings is nonsense to other project, so it is not good method to write
> to user script.
>
> Is there any method to run some script which resides in current directory at
> which to start vim.
> For example, a script named project.vim, run it in user script. I don't if it
> is feasible.
There are several ways to do this. One is to put this line in your
~/.vimrc
set exrc
and put your project-specific configuration settings in a file named
.vimrc in the project directory in which you start Vim. See
:help .vimrc
and be sure to read part "d.".
If you want to put your configuration settings in a file named
project.vim in that directory instead, put these lines in your
~/.vimrc:
if filereadable("project.vim")
source project.vim
endif
See
:help filereadable()
:help :source
HTH,
Gary
--
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
Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en