LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Enabling vi colors on a RedHat distro (https://www.linuxquestions.org/questions/linux-desktop-74/enabling-vi-colors-on-a-redhat-distro-544823/)

billiejoex 04-10-2007 09:47 AM

Enabling vi colors on a RedHat distro
 
Hi there.
I'm working on an old RedHat linux distro.
I'm trying to understand how to enable syntax colorizing in vi.
On debian (based) distros I usually add "syntax enable" line into /etc/vim/vimrc but red-hat does not have such file.
Any suggestion?

mschutte 04-10-2007 11:22 AM

On non-Debian systems, the file is usually called /etc/vimrc. If it doesn't exist, you may simply create it.

Buto 04-10-2007 08:51 PM

try searching for .vimrc. On my slackware box I didnt have any colors and the arrow keys were not working. So I went to /usr/local/share/vim/vim58 and copied the vimrc_example.vim to the home directory and renamed it to .vimrc. Hope this helps.


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