LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   perl vim problem.... (https://www.linuxquestions.org/questions/linux-newbie-8/perl-vim-problem-634855/)

visitnag 04-12-2008 08:14 AM

perl vim problem....
 
Hi,

When I am writing a perl script using vi editor (RHEL ES4 o/s).. as I type it is giving different colors according to the variables,functions,key words. Can I change the colors as i like to see, b'coz i dont like the flouracent green of keywords.(some times i am unable to read what i have typed)

iggy_mon 04-12-2008 09:48 PM

i found a promissing lead for you...

http://www.linux.ie/articles/tutorials/vi3.php

the overview:
1: .vimrc in your home directory configures vi
2: source /usr/share/vim/current/syntax/html.vim
this will enable html (in this example) syntax highlighting
3: editing html.vim would make the changes you are looking for


hope this helps

cheers

Zmyrgel 04-13-2008 04:39 AM

You can use the :colorscheme to change the colors. At least in vim, don't know about plain vi.


All times are GMT -5. The time now is 05:28 AM.