Yegappan,
It is actually _vimrc. I just mistyped it.

The output of :scriptnames is listed below. It looks like the _vimrc
is the first thing loaded, and it does explain the problem I am seeing
though. Did this change from gvim6.x? And is there a way to get what I
want without having to manually highlight what I want everytime (other
than editing the default syntax files).

Thanks,
Dudley

---- begin :scriptnames output ----
1: C:\util\Vim\_vimrc
 2: C:\util\Vim\vim70\vimrc_example.vim
 3: C:\util\Vim\vim70\syntax\syntax.vim
 4: C:\util\Vim\vim70\syntax\synload.vim
 5: C:\util\Vim\vim70\syntax\syncolor.vim
 6: C:\util\Vim\vim70\filetype.vim
 7: C:\util\Vim\vim70\menu.vim
 8: C:\util\Vim\vim70\autoload\paste.vim
 9: C:\util\Vim\vim70\ftplugin.vim
10: C:\util\Vim\vim70\indent.vim
11: C:\util\Vim\vim70\mswin.vim
12: C:\util\Vim\vim70\plugin\getscript.vim
13: C:\util\Vim\vim70\plugin\gzip.vim
14: C:\util\Vim\vim70\plugin\matchparen.vim
15: C:\util\Vim\vim70\plugin\netrwPlugin.vim
16: C:\util\Vim\vim70\plugin\rrhelper.vim
17: C:\util\Vim\vim70\plugin\spellfile.vim
18: C:\util\Vim\vim70\plugin\tarPlugin.vim
19: C:\util\Vim\vim70\plugin\tohtml.vim
20: C:\util\Vim\vim70\plugin\vimballPlugin.vim
21: C:\util\Vim\vim70\plugin\zipPlugin.vim
22: C:\util\Vim\vim70\syntax\cpp.vim
23: C:\util\Vim\vim70\syntax\c.vim
24: C:\util\Vim\vim70\ftplugin\cpp.vim
25: C:\util\Vim\vim70\ftplugin\c.vim
26: C:\util\Vim\vim70\indent\cpp.vim
---- end :scriptnames output ----

On 11/15/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:
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