LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vi problem (https://www.linuxquestions.org/questions/linux-newbie-8/vi-problem-649647/)

kashif2131971 06-16-2008 09:56 AM

vi problem
 
hello
using vi when i configure my conf file my vi editor could not show color schme e.g for remarks also in black and reserved words also in black. but i seen alot cbts in which vi is shown reserved words in color

farslayer 06-16-2008 10:26 AM

To turn on syntax highlighting

: syntax on


To turn off syntax highlighting

: syntax off

chrism01 06-16-2008 07:05 PM

Just FYI, iirc, that's actually a vim cmd. It just tends to work on Linux because the vi cmd is actually a symlink to vim, so you can add that permanently to your .vimrc file in your home dir.
I'm pretty sure real vi doesn't do colours etc.


All times are GMT -5. The time now is 10:55 PM.