On 15/07/09 02:47, Senthil Cheetancheri wrote:
>
>
> Hi,
> I am using vim7.2 on a linux machine.
>
> How do I tell vim7.2 the location of my systemwide vimrc? As per
> :version, it is currently set to $VIM/vimrc. For various reasons, I
> don't want to change $VIM. Instead I want to hard-code the location of
> the system-wide vimrc location.
>
> Thanks in advance.
> Senthil.

$VIM _should_ be a fixed location common to all users. On Linux, it's 
typically /usr/local/share/vim/. On Windows, it's typically C:\Program 
Files\Vim\. In both cases, the $VIMRUNTIME directory where Vim (when run 
by any user) finds its standard scripts and help is (for Vim 7.2) 
$VIM/vim72/. No need to change $VIM. Just drop the system vimrc (with no 
initial dot or underscore in its name) in the vim directory, parent of 
vim72.

If you want a system vimrc elsewhere, you can either make $VIM/vimrc a 
symlink (on Linux/Unix) or put into it a "source" line for your script 
(on any platform).

If you still want to change $VIM or the vimrc location, look into your 
makefile. Depending on which makefile you use, it may invoke further 
makefiles, for instance on Linux, IIRC, the top Makefiles invokes 
src/Makefile which invokes src/auto/config.mk, however the latter is 
auto-generated so it's unwise to change it -- your changes may get lost. 
If you're on Windows, other makefiles are used depending on your C 
compiler and the method may be different.


Best regards,
Tony.
-- 
Of all the animals, the boy is the most unmanageable.
                -- Plato

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

Reply via email to