[H-GEN] Vim System Wide

Paul Gearon pag at pisoftware.com
Mon Oct 13 19:23:46 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Timothy Hitchens wrote:
> Can anyone remember where the system wide config for vim is located and
> what it is called.... I have carried out a full search for the obvious
> file names with no success.
> 
> Eg the same as .vimrc but for entire system.

No idea, but try running strace.  I just used the following on my debian system:
   strace -e trace=open -o vim.log vim

and found the following in the resulting log file:

open("/usr/share/vim/vimrc", O_RDONLY)  = 3
open("/usr/share/vim/vim61/filetype.vim", O_RDONLY) = 4
open("/usr/share/vim/vim61/ftplugin.vim", O_RDONLY) = 4
open("/mnt/home/pag/.vimrc", O_RDONLY)  = 3

So on my system the global config file is /usr/share/vim/vimrc.

Hmmmmm, now that I look at that file I see that there's lots of things I 
didn't know, like conditional statements.  I'll have to have a closer look at 
this....  :-)

-- 
Regards,
Paul Gearon

Software Engineer                Telephone:   +61 7 3876 2188
Plugged In Software              Fax:         +61 7 3876 4899
http://www.PIsoftware.com        PGP Key available via finger

Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum
immane mittam.
(Translation from latin: "I have a catapult. Give me all the money,
or I will fling an enormous rock at your head.")



--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list