On Tue, Feb 22, 2011 at 4:09 PM, krishna kumar <[email protected]> wrote:
> hello sir
>
> i am krishna kumar from kovai
>
> may i know how to copy the contents from a program file to another doc
> file with syntax lighlighting, to take color print outs, like vi
> editor

Vim has everything, not vi.

For PDF,

:hardcopy > %.ps

$ps2pdf14 foo.ps

For HTML,

:TOhtml

For syntax highlighting

:sy on

in ~/.vimrc

-Girish

-- 
Gayatri Hitech

http://gayatri-hitech.com
[email protected]
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to