Am 08.02.2010 23:25, schrieb Tarlika Elisabeth Schmitz:
On Mon, 08 Feb 2010 22:44:12 +0100
Andy Wokula<anw...@yahoo.de>  wrote:

Am 08.02.2010 22:04, schrieb Tarlika Elisabeth Schmitz:
On Mon, 08 Feb 2010 21:15:11 +0100
Andy Wokula<anw...@yahoo.de>   wrote:

Am 08.02.2010 20:51, schrieb Tarlika Elisabeth Schmitz:

http://uploads.mitechie.com/configs/vim/vim/syntax/moin1_6.vim
This is what I am using.

||||||||
|| a || b || c ||
||||||||

a,b,c are cell content, the bars are separators. The March version
displays separators and content in different colours.

Buggy as well ...

----------------------------------
if !exists("did_dic_syntax_inits")
   let did_dic_syntax_inits = 1
   hi link moinComment         Comment
   hi link moinInlineComment   Comment
   ...
endif
----------------------------------

Once  g:did_dic_syntax_inits  is defined, it won't ever
be reset; the ":hi" commands get no chance to be executed again.

Not sure if this "if" condition can be safely removed, but
I'd give it a try (e.g. just comment it out).


Removed if/endif - makes no difference as far as my problem is
concerned.

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 moinItalic     ctermfg=darkcyan gui=italic
    hi moinSettings   ctermfg=green guifg=green
    hi moinPragma     ctermfg=darkred guifg=darkred
    hi moinStrike     ctermfg=darkgray guifg=darkgray
    hi moinTableMark  ctermfg=yellow guifg=yellow
    hi moinTableOpt   ctermfg=darkyellow guifg=darkyellow
    hi moinCode       ctermfg=cyan guifg=cyan
    hi moinLink       ctermfg=red guifg=red
    hi moinSmileys    ctermfg=yellow guifg=yellow
endfunc
------------------------------------------

This explicitly sets the moin highlight groups again after switching to
another color scheme.


Alternatively, manually do
    :e
or
    :set syn=moin

--
Andy

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to