my linux console don't print color in c file
Hi
I know I am asking very silly question but it late night now and I can't read any more help file.I use slackware 10 with kernel 2.6 and kde3.3.1,Now after all my installation I found out that my linux console won't print color in shell ,like; #include <stdio.h> and thye print it like blue or red colour and for printf("something\n") they print in purple colour or something but I forgot it.How do I turn those feature on in vim? thanks |
I'd try changing your syntax coloring - In vim type :colorscheme <tab> - I use default, it's the best for syntax highlighting (At least I think so)...
Let me know if that helps :) |
~/.vimrc needs the line
syntax on to turn on syntax highlighting. For color schemes, create the directories ~/.vim/colors if they don't exist mkdir -p ~/.vim/colors Then download some colors schemes from vim.org and put them in the colors directory. Then you can try them out like AMMullan said and they can also be put in .vimrc with the line colorscheme colorschemename |
Hi guy ,
Thanks for the helps ,both way work fine with me . There is no .vimrc in my /home/~ folder so I copy it from /usr/share/vim/vim/63/vimrc_example and rename it into .vimrc and I check for syntax on or syntax enable command and I switch that on.Before I copy .vimrc I found out that I could use like in vim with ":syatanx enable".One last question if I want to turn sytanx hightlighting for language pascal ,all I have to do it to find pascal.vim color vime and put it in /usr/share/vim/vim63/colours ,right? Thanks for the help ,it really it comforting to look at color hight light in termel while writing codes. Thanks!! Arkar Kyaw win |
pascal.vim should already be in
/usr/share/vim/vim63/syntax/ When you have "syntax on" all languages with files in above folder should be syntax highlighted automatically. |
I just just the /var/usr/share/vim/vim63/syntax folder and I found out that they got most of language out there .That make it a lot easier ,I just try some code and they reconigse the .pas code right away .That cool!
I need to learn a few language more and I guess I won't be downloading any file from vim.org Thanks! Arkar Kyaw Win |
You might want to download some of their color schemes. Go here
http://www.vim.org/search.php and put in the searh terms color scheme :D |
All times are GMT -5. The time now is 02:36 PM. |