global .vimrc?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kurt Granroth
Date:  
Subject: global .vimrc?
On Wednesday 02 July 2003 11:14 pm, Bob Holtzman wrote:
> I set bg=dark in my ~/.vimrc file and everything is fine. The problem is
> that when I run "su -" and then run "vi" on a file I'm back to dark blue
> text on a black background. I looked for a global .vimrc file but can't
> find one. Any pointers?


The global vimrc file differs depending on how it's installed. You can find
out your copies settings by using the --version option. On SuSE, it looks
like the global vimrc file is /etc/vimrc

% vim --version
VIM - Vi IMproved 6.1 (2002 Mar 24, compiled Oct 14 2002 19:44:43)
Included patches: 1, 3-15, 17-18, 20-22, 24-34, 36-72, 74-75, 77-87, 89-92, 
94-99, 101-118, 120-146, 150
Compiled by root@Tank
Big version without GUI.  Features included (+) or not (-):
+autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +dialog_con +diff +digraphs -ebcdic +emacs_tags +eval 
+ex_extra
+extra_search +farsi +file_in_path +find_in_path +folding -footer +fork()
+gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -osfiletype +path_extra
-perl +postscript +printer -python +quickfix +rightleft -ruby +scrollbind
+signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects 
+title
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim
-xterm_clipboard -xterm_save
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/current"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -march=i586 -mcpu=i686 
-fmessage-length=0 -Wall -pipe
Linking: gcc   -L/usr/local/lib -o vim       -lncurses  -ldl