Hi,

Geue, Stephan wrote:
>
> Hello, I would like to change the VIM colors, i.e. the C/C++ mapping of
> VIM colors to Xterm colors. First, I changed a few lines within
> /etc/X11/app-defaults/Xterm-color but this also changed the color scheme
> of the shell which is not my intention - and in some cases not
> acceptable at all. I identified a file that might be of relevance for
> that problem: /opt/vim/share/vim/vim70/syntax/cpp.vim. But I do neither
> know the syntax of that file nor if changing it is a solution. Can you
> tell me, which file has to be modified and where the doc files
> describing the necessary procedure are located? Thank you very much in
> advance!

the file syntax/cpp.vim defines the different syntax elements of C++.
You should not change this file.

The right way to change VIM's colors is to use a different color scheme.
There are already 17 color schemes supplied with VIM. You can find them
in the $VIMRUNTIME/colors directory. To use a different color scheme
just enter, e.g,

  :colorscheme morning

On www.vim.org you can find even more color schemes in the scripts
section. Just go to http://www.vim.org/search.php, select "color scheme"
in the "type" box below "Search for Scripts" and press the Search
button. If you find a scheme you like you save it to your local
~/.vim/colors directory.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

Reply via email to