Running Gentoo linux
vim 7 
(~/.vimrc follows message; compile info follows ~/.vimrc)

On a recent fresh install after setting up ~/ I'm finding that vim
appears not to be slurping ~/.vimrc.  When it starts I don't see my
settings showing line number and percentage of file.

Running `:so ~/.vimrc' sets things right but what might cause vim not to
read it at startup.
~/.vimrc is  symlinked to a cvs copy of .vimrc but if that were the
problem then it seems running `:so ~/.vimrc' would show some kind of
error but it doesn't.  And anyway I've been having ~/.vimrc as a
symlink for a very long time now.

====================================================
~/.vimrc:

":set guifont=
:colorscheme peachpuff
set nocompatible        " Use Vim defaults (much better!)
set bs=2                " allow backspacing over everything in insert mode
"set ai                 " always set autoindenting on
set backup              " keep a backup file
set viminfo='20,\"100   " read/write a .viminfo file, don't store more
                        " than 50 lines of registers
set history=50          " keep 50 lines of command line history
set ruler               " show the cursor position all the time
set laststatus=2
"set virtualedit=all
" Kill the splash screen
set shortmess+=I
set tabstop=3
"# [HP 11/13/05 13:37  This cause a big problem?] set paste
set pastetoggle=<F4>

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  :hi Search ctermfg=white ctermbg=black guifg=white guibg=black
endif

" Only do this part when compiled with support for autocommands.
if has("autocmd")

 " In text files, always limit the width of text to 78 characters
 autocmd BufRead *.txt  set tw=72
 autocmd BufRead .vimrc set tw=72
 augroup cprog
  " Remove all cprog autocommands
  au!

  " When starting to edit a file:
  "   For C and C++ files set formatting of comments and set C-indenting on.
  "   For other files switch it off.
  "   Don't change the order, it's important that the line with * comes first.
  autocmd FileType *      set formatoptions=tcql nocindent comments&
  autocmd FileType c,cpp  set formatoptions=croql cindent 
comments=sr:/*,mb:*,el:*/,://
 augroup END

"" Set these so we get sensible formating in these files with no tabs
"" and a sensible shiftwidth
:au FileType perl,awk,sh,c      set shiftwidth=2 expandtab
""======== BEGIN mappings ==========
""map  U <Home>v<End>y.:!lynx.
nnoremap \tp :set invpaste paste?<CR>
nmap <F4> \tp
imap <F4> <C-O>\tp
:nmap \ve    :if &ve == ''   <Bar>
                     \   set ve=all  <Bar>
                     \ else          <Bar>
                     \   set ve=     <Bar>
                     \ endif         <bar>
                     \ set ve?       <Cr>
"" map z to act as a register selector eliminating the need to type
"" <shift><double quote>
nnoremap z "z
" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>

" Don't use Ex mode, use Q for formatting
map Q gq
nmap <F4> 45|
map ,d "=strftime("%c")<cr>p 
nmap <F3> :g/^\(CVS:\)\( $\\|.*--[^ ]*$\\|.*Lines beginning\)/d<CR>:%s/^CVS: //
nmap <F11> :s/## //
nmap <F12> :s/^/## /
nmap <F10> :.,$s/^/## /
nmap <F9> :.,$s/^## //
nmap <F8> :r /home/reader/scripts/misc/pargt
nmap <F7> :r /home/reader/scripts/misc/pusage
"" Make Insert key non-operational
imap <Ins> <Nop>
"" ===== Begin iab ===========
"" ===== Begin Bash/Ksh  Stuff =============
iab bas $(basename $0)
iab mbas myscript=$(basename $0)
iab mybas \`$myscript'
iab bng #!/bin/sh
iab bngk #!/bin/ksh
iab bngb #/usr/bin/bash
"iab HERE usage () {<cr>cat >&2 <<EOM<cr><cr>EOM<cr>}# end usage#"
iab HERE usage(){<cr>cat >&2 <<EOM<cr>EOM<cr>} #end usage<up><up><c-o>o<left>
iab bget while getopts "flags" opt; do<cr>       case "$opt" in<cr><cr>   
esac<cr>done
iab hpcom <C-R>=strftime("# [HP %m/%d/%y %H:%M ]")<cr><left>
iab hpsep ## ======================================================
iab hpfnc ## ========= BEGIN Functions (sub routines) =============
iab hpvar ## ========= BEGIN Variables Section ====================
iab hpbod ## ========= BEGIN Body Section =========================
iab hpdoc ## ========= BEGIN Documentaion Section =================
iab hpget ## ========= BEGIN Getopts Section ======================
iab hppre ## ========= BEGIN Prescript Actions ====================
iab hpdb <space><space><space><space>print "hpdb  
\n";<left><left><left><left><left><left>
iab shget ## ==== BEGIN GETOPTS SECTION ====<CR>while getopts " " opt;do<CR>    
 case "$opt" in<CR>   A)<CR><CR>   ;;<CR>   B)<CR><CR>   ;;<C-O>?" "?s+1<CR>  
"" ===== Begin Perl Stuff =============
iab bngp #!/usr/local/bin/perl -w<c-o>
iab ulib use lib qw(/home/reader/scripts/lib); ## location of dater.pm
iab pget ## ==== BEGIN Getopts section ====<CR>## Declare vars inside 
qw()<CR>use vars qw( );<CR>use Getopt::Std;<CR>my $optstr =" 
";<CR>getopts($optstr);<C-O>?" "?s+1<CR>
iab pbase my $myscript;<CR>($myscript = $0) =~ s:^.*/::;
iab pmy \`$myscript '
iab pody or die "Can't open $ : $!";<C-O>6h
"iab pwh while (<>){<CR> }<C-O>?^?s<CR><CR>     
"iab pwh while (<>){<CR> }<C-O><C-O><CR>        
iab pwh while(<>){}
iab pel elsif(){<CR>}<C-O>?()?s<CR>
iab pif if(){<CR>}<C-O>?()?s<CR>
iab pnarg if(!$ARGV[0] \|\| $ARGV[0] eq "help"){<CR>   usage();<CR>   
exit;<CR>}<CR><C-O>hi
iab parg if($ARGV[0]){<CR>   usage();<CR>   exit;<CR>}<CR><C-O>hi
iab pu sub usage {<CR>   
print<<EOM;<CR><CR>Purpose:<CR>Usage:<CR><CR>EOM<CR>}<CR><ESC>kkkkA
iab pdie or die ": $!";<ESC>hhhhhs
"" ==== End Perl stuff ========================
iab ydate <C-R>=strftime("%b %d %T %Y")<cr>
iab sdate <C-R>=strftime("%s")<cr>
iab keyz <C-R>=strftime("Keywords:\n%b %d %T %Y %w\n&&")<cr><up><up><c-o>A
iab vkeyz <C-R>=strftime("\" Keywords:\n\" %b %d %T %Y %w\n\" 
&&")<cr><up><up><c-o>A
" inoremap elif<space> elif()<left>
"function! Pget() 
"       echo "use vars qw( );"
"       echo "use Getopts::Std;"
"       echo "my $optstr = \" \";"
"       echo "getopts(\$optstr)";
"endfunction

iab skeyz <C-R>=strftime("# Keywords:\n\# %b %d %T %Y %w\n# 
&&")<cr><up><up><c-o>A
iab hpdel --  
"This is disabled, because it changes the jumplist.  Can't use CTRL-O to go
" back to positions in previous files more than once.
 if 0
  " When editing a file, always jump to the last cursor position.
  " This must be after the uncompress commands.
   autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe 
"normal `\"" | endif
 endif

" [hp attempt to change comment hilighting May 20 2000  ] 
":hi Comment   term=bold ctermfg=darkgreen

" [hp added from section at :he color [xterm ]May 20 2000] 
endif " has("autocmd")

if &term =~ "xterm"
        if has("terminfo")
                set t_Co=8
                set t_Sf=<Esc>[3%p1%dm
                set t_Sb=<Esc>[4%p1%dm
        else
                set t_Co=8
                :set t_Sf=<Esc>[3%dm
                :set t_Sb=<Esc>[4%dm
        :endif
:endif

" Elisp
if has("fname_case")
  au BufNewFile,BufRead *.el,*.elc,.emacs,.gnus               set ft=lisp
else
  au BufNewFile,BufRead *.el                                  set ft=lisp
endif

"[HP]
" M4
if has("fname_case")
  au BufNewFile,BufRead *.m4                 set ft=sh
else
  au BufNewFile,BufRead *.m4                 set ft=sh
endif

" To test your color setup, a file has been included in the Vim distribution.
" To use it, execute these commands:
" >  :e $VIMRUNTIME/syntax/colortest.vim
" >  :so %
" 
" [HP From Donavans .vimrc: May 20 2000] 
" http://www.pegasus.rutgers.edu/~elflord/vim/.vimrc
 set background=dark
 if &background == "dark" 
""hi Comment  term=bold ctermfg=DarkCyan  
  hi StatusLineNC term=reverse cterm=reverse ctermfg=7  ctermbg=0
"" # [HP 07/08/03 21:18  Using 99 means it used default font color]
  hi StatusLine term=reverse cterm=reverse ctermfg=99 ctermbg=8
  hi Comment  term=bold ctermfg=grey
  hi Constant term=underline  ctermfg=Magenta  guifg=Magenta
  hi Special  term=bold   ctermfg=white   guifg=Red
  hi Identifier term=underline  cterm=bold   ctermfg=Cyan guifg=#40ffff
  hi Statement term=bold              ctermfg=Yellow gui=bold guifg=#aa4444
  hi PreProc  term=underline   ctermfg=grey     guifg=#ff80ff
  hi Type     term=underline   ctermfg=LightGreen    guifg=#60ff60 gui=bold
  hi Function term=bold               ctermfg=White guifg=LightRed
  hi Repeat   term=underline   ctermfg=White          guifg=LightRed
  hi Operator                         ctermfg=Red            guifg=Red
  hi Ignore                           ctermfg=black           guifg=bg
" else
"   hi Comment  term=bold ctermfg=DarkBlue guifg=Blue
"   hi Constant term=underline ctermfg=DarkRed guifg=Magenta
"   hi Special  term=bold ctermfg=DarkMagenta guifg=SlateBlue
"   hi Identifier term=underline ctermfg=DarkCyan guifg=DarkCyan
"   hi Statement term=bold ctermfg=Brown gui=bold guifg=Brown
"   hi PreProc  term=underline ctermfg=DarkMagenta guifg=Purple
"   hi Type     term=underline ctermfg=DarkGreen guifg=SeaGreen gui=bold
"   hi Ignore   ctermfg=white guifg=bg
 endif
set nohlsearch
=====================================
Compile settings:
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun 14 2006 17:41:56)
Included patches: 1-17
Modified by Gentoo-7.0.17
Compiled by [EMAIL PROTECTED]
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent 
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+cryptv -cscope +cursorshape +dialog_con +diff +digraphs -dnd -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 -mzscheme 
-netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile 
+python +quickfix +reltime +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 -xsmp 
-xterm_clipboard -xterm_save 
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: i686-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 
-march=i686 -pipe    -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm  
-I/usr/lib/perl5/5.8.8/i686-linux/CORE  -I/usr/include/python2.4 -pthread   
Linking: i686-pc-linux-gnu-gcc   -rdynamic   -L/usr/local/lib -o vim       
-lncurses -lgpm   -rdynamic  -L/usr/local/lib 
/usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.8.8/i686-linux/CORE -lperl -lutil -lc 
-L/usr/lib/python2.4/config -lpython2.4 -lpthread -lutil -lm -Xlinker 
-export-dynamic 

Reply via email to