'vi' is driving me crazy
Roger Oberholtzer
roger
Wed Dec 29 15:31:09 PST 2004
On Tue, 2004-12-28 at 23:09, Bill Campbell wrote:
> On Mon, Dec 27, 2004, Ken Moffat wrote:
> >Roger Oberholtzer wrote:
> >
> >>I really like the colorization when printing C code. In vi, I
> >>do :hardcopy and get syntax hilighting and (the best part) proper line
> >>wrapping for code lines that are too long.
>
> >I like the ":syntax on" command, which can be added to /etc/vim/vimrc
>
> I find this useful on occassion, but normally leave it off as I
> find the colors used to identify things virtually illegible. It
> can be invaluable though to find things like missing quotes in
> shell scripts. I find it less useful in perl where I can use the
> ``%'' key to find matching braces, parens, etc. and I always use
> perl's ``q(...)'' variations for quoted text since it then allows
> the same feature -- not to mention not having to backwhack quotes
> in the text.
Same when editing C. I am notorious for using parentheses to force
evaluation order. I know C has a set method. But I can't help myself.
Having vi show which parenthesis is the one that matches the one just
typed is great. Also, the command 'K' gives the man page for the word
the cursor is in. And, if you want the man page in a specific section,
type the section number before the 'K'. OK, in the world of multiple
windows, this has less wow. But I still like it.
> It's a bit better if I have colors set off so it just uses underlines.
What is this?
More information about the Linux-users
mailing list