Stahlman Family wrote:
>
>
> bill lam wrote:
>> On Thu, 12 Mar 2009, Harry Putnam wrote:
>>> bill lam <[email protected]> writes:
>>>
>>>>> Then all the setting I have in ~/.vimrc show up. Obvious because
>>>>> syntax highlignting suddenly comes on.
>>>> I would rather suspect the syntax coloring was altered during boot up.
>>>> What if you specifically set a testing global variable inside .vimrc
>>>> and echo that variable after booting up to prove/disprove that .vimrc
>>>> was sourced or not.
>>> What do you mean by altered? I see it is being read by putting the
>>> setting:
>>> set ruler " show the cursor position all the time
>>>
>>> At the very end, and it is enable after starting vim.
>>>
>>> I was wrong to say it wasn´t just maid a dumb assumption from the syn
>>> hilite evidence.
>>>
>>> So, something is diabling syntax hightlight. Yet sourcing ~/.vimrc
>>> manually allows to work ok.
>> I'm not sure and I'll leaved that to other vim experts to answer. My
>> experience is that :syn on or :syn enable will reset color scheme to
>> system default. So I put those commands near the end of .vimrc file.
>>
>
> As a brute-force way to determine which of the scripts sourced after
> your vimrc is disabling highlighting, you could move them all out of the
> plugins directory temporarily, verify that syntax highlighting remains
> enabled after your vimrc is sourced at startup, then move the global
> plugins back in a few at a time, starting vim each time, until you've
> zeroed in on the offending script.
If you don't want to move the plugin scripts around, you could do
something like this...
find ~/.vim/plugins /usr/local/share/vim/vim72/plugin/ -iname
'*.vim'|xargs grep 'let[[:space:]]\+\(g:\)\?loaded_'
And start adding lines to the top of your .vimrc to set the various
g:loaded_<...> vars (to prevent the plugin from loading) until things
start working. Of course, you would need to use the path or paths
appropriate to your system. You might try checking only the
non-distributed plugins first, as the most likely candidates.
Brett S.
>
> Brett S.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---