Albie Janse van Rensburg wrote:
Eric Leenman wrote:
Hi,

I'm doing a reinstall of gvim and placing my color and font setting in a seperate file in the plugin.
This file is located in: "C:\Program Files\Vim\vimfiles\plugin"
And it contains the following:
[START OF FILE]
:hi Comment    ctermfg=darkgreen  gui=None guifg=darkgreen
:hi Statement  ctermfg=blue       gui=None guifg=blue
:hi Identifier ctermfg=darkred    gui=None guifg=darkred
:hi PreProc    ctermfg=blue       gui=None guifg=darkblue
:hi Type       ctermfg=darkgray   gui=None guifg=darkgray
:hi Constant   ctermfg=red        gui=None guifg=red

" GUI font instellingen
set guifont=courier:h7:w7
[END OF FILE]


What now happens is that the font is taken over but the colors aren't
For example:
When I type :hi Comment
vim returns:
Comment   xxx term=bold ctermfg=1 guifg=Blue

What do I do wrong?

Regards,
Eric

_________________________________________________________________
Check out all that glitters with the MSN Entertainment Guide to the Academy Awards® http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2



Colour files should go into the vimfiles/colors directory,

Yes.

and needs to be named according to the filetype you want it to be used for. For instance, sql.vim will be loaded for .sql files.

No (see below).

You can further specify what filetype to use for a file by creating a filetypes.vim file in the vimfiles/ftdetect directory.

... a filetype.vim file in a directory in 'runtimepath', *and/or* one or more Vim script(s) of _any_ name in the ftdetect subdirectory of a directory in 'runtimepath'.

For more info about this, see

:help ftdetect

Also,

:help syntax

and also (more important)
        :help :colorscheme


Hope that helps


The files in the colors directory are what is called color schemes in Vim parlance, and correspond to what would be called "themes" or "skins" in other programs. Their names bear *no relation* to the files to be edited with them. Vim never loads them automatically but only as a result of the ":colorscheme <name>" command, which is roughly equivalent to ":runtime colors/<name>.vim" where <name>.vim is the name of an arbitrary colorscheme script.

The highlight groups to use for files of a given syntax are in the syntax subdirectory of directories in 'runtimepath', and they may define default colors for highlight groups not predefined in Vim, by using ":highlight default" commands (see ":help :highlight-default").
--
Best regards,
Tony.

The average income of the modern teenager is about 2 a.m.

Reply via email to