'vi' is driving me crazy

Bill Campbell linux-sxs
Tue Dec 28 17:05:39 PST 2004


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.

It's a bit better if I have colors set off so it just uses underlines.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``The whole aim of practical politics is to keep the populace alarmed (and
hence clamorous to be led to safety) by an endless series of hobgoblins.''
   -- H.L. Mencken, 1923


More information about the Linux-users mailing list