Hello,

On 11/15/06, Dudley Fox <[EMAIL PROTECTED]> wrote:
Hi,
I have been using gvim 6.x a long time with no troubles, but when I
upgraded to gvim70 (on windows XP) my syntax highlighting stopped
working. Specifically it keeps using the default colors instead of
what I have set in the vimrc_ file. I list my vimrc_ file below.

Additionally when I run ":verbose highlight" I see that the last
setttings are coming from the syntax files (usually syncolor.vim), not
my vimrc_ file.


The name of the file is _vimrc (not vimrc_). Try changing the filename
to _vimrc. What is the output of the following command?

  :scriptnames

Is this a bug, or am I just doing something incorrectly?

Thanks,
Dudley Fox

---- begin vimrc_----

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

set diffexpr=MyDiff()
function MyDiff()
  let opt = '-a --binary '
  if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  let arg1 = v:fname_in
  if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  let arg2 = v:fname_new
  if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  let arg3 = v:fname_out
  if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  let eq = ''
  if $VIMRUNTIME =~ ' '
    if &sh =~ '\<cmd'
      let cmd = '""' . $VIMRUNTIME . '\diff"'
      let eq = '"'
    else
      let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
    endif
  else
    let cmd = $VIMRUNTIME . '\diff'
  endif
  silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction

set softtabstop=4
set shiftwidth=4
set tabstop=4
set viminfo='20,\"50
set laststatus=2
set exrc

:map v :cn


Note that 'v' is used for starting the character-wise visual mode.
You may want to map ":cn" to some other key.

- Yegappan


set backupdir=c:\temp

highlight Comment ctermfg=DarkGreen guifg=DarkGreen gui=none
highlight PreProc ctermfg=Red guifg=Red gui=none
highlight Constant ctermfg=DarkYellow guifg=DarkYellow gui=none
highlight Statement ctermfg=DarkBlue guifg=DarkBlue gui=none
highlight cIncluded ctermfg=Black guifg=Black gui=none
highlight Type ctermfg=DarkBlue guifg=DarkBlue gui=none
highlight StatusLine term=reverse cterm=reverse gui=reverse

---- end vimrc_----

Reply via email to