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

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

 



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).
> 
Try putting it in $HOME/.vimrc

Here's my .vimrc:

autocmd FileType python set \
cinwords=class,def,elif,else,except,finally,for,if,try,while
set softtabstop=3
set shiftwidth=3
set autoindent
set smartindent
set noexpandtab
set nohlsearch


Auto indent works with this config. 

Roger



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