On Sun, Oct 16, 2011 at 01:31:47AM EDT, Tony Mechelynck wrote:
> On 15/10/11 23:53, Frederico Cadete wrote:
>> I had a similar experience when I recompiled Vim, coming from using
>> vim as packaged by Ubuntu.
>>
>> The differences in behaviour were annoying, but they were not because
>> of the compiling options; it was because of the "system vimrc" (in
>> this case /usr/share/vim73/debian.vim, if memory does not fail me),
>> which sets some default vim options.
>
> The system vimrc would of course not be called that on RedHat / Fedora,  
> but in any Vim executable you can find out where it looks for a system  
> vimrc by looking near the middle of the output of :version (if Vim is  
> running) or of "vim --version" (or "gvim --version" etc., and without the 
> quotes) if it isn't.
>
> By default the system vimrc is at $VIM/vimrc (with no dot) but that can  
> be changed at compile-time and one often-used location on Unix-like  
> systems is /etc/vimrc

On debian $VIM/vimrc is usually a link to "/etc/vim/vimrc".

Note also, that debian-derived systems (such as ubuntu) really place the
meat of the distro-specicific vim customization in files that are named
debian.vim. If this is true on your ubuntu 10.04, once you have
determined where your system vimrc lives, you should look for the
following statement:

  runtime debian.vim

The file is normally at the top of the "/usr/share/vim/vim7x/" tree.

An interesting aspect is that ":h runtime" reveals that there may be
several such files in the different "system" directories. 

Just in case, you could run a "locate debian.vim" or such like to make
sure only one is present on your system(s).

ca

-- 
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

Reply via email to