Re: auto-indenting-formatting with a vi?

1998-11-02 Thread Keith Beattie
Richard E. Hawkins Esq. wrote:
 
 rick, who'd be happy as a clam in a bucket of beer if he had a classic
 vi that would handle multiple buffers and color  indent his programs

Being an Emacs fan myself, I believe what you asking for is an
oxymoron. :)

I don't use vim (obviously) but using one of the vi-modes in Emacs may
be a good choice for you.  Type `M-x viper-mode' and it is rather self
explanatory.

HTH,
ksb


auto-indenting-formatting with a vi?

1998-10-31 Thread Richard E. Hawkins Esq.

As I get more and more frustrated with emacs, it keeps occurring to me
that the *only* reason I'm using emacs instead of vi is that it
indents and color-codes my program code.  Is there a variant of vi
that can do this?  vim claims to hilite syntax, and i think elvis
claims that too, but can either be made to handle indent/exdent
automaticalyy?  And to complicate things, thoguh i need c++ at times,
it's Fortran 90 that's most important.

rick, who'd be happy as a clam in a bucket of beer if he had a classic
vi that would handle multiple buffers and color  indent his programs


RE: auto-indenting-formatting with a vi?

1998-10-31 Thread Shaleh
vim does syntax hi lighting quite well.  Having never used emacs, I have no
idea what you mean by auto indenting.

On 31-Oct-98 Richard E. Hawkins Esq. wrote:
 
 As I get more and more frustrated with emacs, it keeps occurring to me
 that the *only* reason I'm using emacs instead of vi is that it
 indents and color-codes my program code.  Is there a variant of vi
 that can do this?  vim claims to hilite syntax, and i think elvis
 claims that too, but can either be made to handle indent/exdent
 automaticalyy?  And to complicate things, thoguh i need c++ at times,
 it's Fortran 90 that's most important.
 
 rick, who'd be happy as a clam in a bucket of beer if he had a classic
 vi that would handle multiple buffers and color  indent his programs
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null


Re: auto-indenting-formatting with a vi?

1998-10-31 Thread Jon Skelton
Richard E. Hawkins Esq. wrote:
 
 As I get more and more frustrated with emacs, it keeps occurring to me
 that the *only* reason I'm using emacs instead of vi is that it
 indents and color-codes my program code.  

Try the following command...

:set autoindent

this works for me for general programming.  But if you're editing text
files and desire to cut and paste from different terms then it will reek
havoc.  If you want to turn it off then...

:set noautoindent

I can't help you with color coding.

Jon


Re: auto-indenting-formatting with a vi?

1998-10-31 Thread chandran
Richard E. Hawkins Esq. [EMAIL PROTECTED] wrote
 As I get more and more frustrated with emacs, it keeps occurring to me
 that the *only* reason I'm using emacs instead of vi is that it
 indents and color-codes my program code.

I feel your pain.  There is a solution.

 rick, who'd be happy as a clam in a bucket of beer if he had a classic
 vi that would handle multiple buffers and color  indent his programs

Well, ''classic`` vi?  It's vim that has color syntax highlighting.
Install the vim and vim-rt package, then try vi -V something.c
You will see all the syntax files be sourced for color, and then
do a :set or :set all, and see what types of indent options and
format options are set automatically.