> > Fortunately, he specifically said "VIM", not Vi.
> >
> > Vim is a very nice improvement over traditional Vi that can do, among a
> > great many other things, syntax highlighting and automatic indentation.
> >
> > Gavin -- what happens if you just put
> >
> >      set autoindent
> >
> > in your ~/.vimrc ? Does that not work ?
> >
> 
> Hi Chris, this is what I have in ~/.vimrc
> 
> " Turn off vi compatibility settings like limited undo
> set nocompatible
> " Syntax highlighting based on file extension
> syntax on
> " Automatically insert newlines after 80 characters
> set textwidth=80
> " Automatically indent
> set autoindent
> " Match SGML tags with %
> source $VIMRUNTIME/macros/matchit.vim
> 

Not sure of the difference but I use 'smartindent' instead of
'autoindent' (check the vim docs for specifics)... I have as part of my
.vimrc, 

" perform indenting smartly
:set smartindent
:set expandtab
:set tabstop=4
:set shiftwidth=4

I also assume that you have the Perl syntax file and have loaded it?  I
should probably put mine online too, but I am terribly lazy :-).

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to