Re: Unable to get vim to read the .vimrc file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try setting the env variable EXINIT to

    EXINIT=set exrc
    
I have the line

    export EXINIT='set exrc redraw wm=8'
    
in my ~/.bashrc and this controls the global behavior of vim. If I unset
EXINIT, vim no longer reads .exrc or .vimrc on my system.

John

On Mon, 2002-11-04 at 19:42, Roger wrote:
> Around Tue,Nov 05 2002, at 02:08,  Mark C, wrote:
> > Hi, 
> > 
> > I'm trying to customise vim and gvim for coding python 
> > (ie automatically indent when it sees certain python functions, and so
> > forth), looking at the src.rpm it, seems that vim has been build with
> > the python extensions, but fails to do indenting and such., hence my
> > need to customise the .vimrc file or what ever it is called.
> > 
> > I have created a $HOME/.vimrc and just put the following in:
> > 
> > autocmd!
> > autocmd BufRead *.py set smartindent \
> > cinwords=if,elif,else,for,while,try,except,finally,def,class
> > 
> > (the above is only on two line in the .vimrc file)
> > 
> > I have tried copying it to $HOME/vim/.vimrc, $HOME/vimrc and $HOME/.vim,
> > but it still refuses to read the file (I'm assuming its not reading it
> > as the indenting isn't working).
> > 

-- 
John S. Weber
jweber@math.cudenver.edu
http://www.users.qwest.net/~weberjohns



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux