LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   please help about vi text editor(urgent) (https://www.linuxquestions.org/questions/linux-newbie-8/please-help-about-vi-text-editor-urgent-622232/)

tarinisunil 02-19-2008 07:39 AM

please help about vi text editor(urgent)
 
please sir i want to have different colors for different commands while writing a program in vi for C or C++ how is this possible
somebody told me that there is something related to .vimrc something sir please help

acid_kewpie 02-19-2008 07:40 AM

please do not mark threads as urgent. it is not urgent for anyone who donates their time to help others. and you're asking about syntax highlighting? that's *never* going to be urgent. thanks.

kmack1023 02-19-2008 08:29 AM

google is your friend
 
try using google...I did a google search for "bash script syntax highlighting vim" and found if you just run ":syntax on" in vim, it'll hightlight for you...

bigrigdriver 02-19-2008 10:10 AM

Add something like this to your .vimrc:
Code:

:syntax on
:colorscheme desert

You can find more colorschemes in /opt/kde3/share/vim/vim62/colors/ (assuming you are using Vim version 6.2).


All times are GMT -5. The time now is 11:51 AM.