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

Re: auto-indenting-formatting with a vi?



Richard E. Hawkins Esq. <hawk@eyry.econ.iastate.edu> 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.


Reply to: