Am 09.02.2010 11:29, schrieb Tarlika Elisabeth Schmitz:
On Tue, 09 Feb 2010 01:04:50 +0100
Andy Wokula wrote:
Am 08.02.2010 22:04, schrieb Tarlika Elisabeth Schmitz:
http://uploads.mitechie.com/configs/vim/vim/syntax/moin1_6.vim
This is what I am using.
Ok. The moin syntax file makes use of "hi def" statements, which
define explicit colors. These color settings will be removed
(:hi clear) when loading another color scheme, whereas color links
(:hi link ...) are not affected.
You can try to add the following code to your vimrc:
------------------------------------------
au ColorScheme * call s:AfterColorScheme()
func! s:AfterColorScheme()
hi moinBold term=bold cterm=bold gui=bold
[...]
hi moinSmileys ctermfg=yellow guifg=yellow
endfunc
------------------------------------------
This explicitly sets the moin highlight groups again after switching
to another color scheme.
I have not yet tried the .vimrc suggestion (a bit of a desparate
measure)
No, it's a normal thing to do. When a syntax file provides default
colors [1] that can be overridden by the user, then switching the color
scheme will wipe out these colors. You have to somehow restore the
original colors. To make this possible, the ColorScheme auto command
was added.
There is another alternative: Move your favorite color scheme scripts to
your ~\vimfiles\colors folder [2] and add the missing highlight groups.
[1] :h :hi-default
[2] look at the first entry of your 'runtimepath' and use that instead
of ~\vimfiles
--
Andy
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php