Harry Putnam wrote:
Harry Putnam <[email protected]> writes:
Setup:
OS=Opensolaris 2008.11
vim=See full `:version output at the end
I think parts of this thread stayed on gmane.editors.vim or at least I
thought I saw a post here somewhere that asked me to post my vimrc.
In case anyone is still willing to help figure this out.
When I start vim something in .vimrc or a plugin is apparently turning
off my syn settings.
If I do `vim .bashrc' I see no syntax highlighting. Yet if I
manually source ~/.vimrc then my syntax highlight appears.
The last setting in .vimrc is `set ruler' and the ruler does appear so
I know vimrc is being sourced on startup.
All this is discussed in the thread of course but that is a short
summary.
Here is the vimrc file:
http://www.jtan.com/~reader/exp/vimrc.html
The problem is that you're setting syntax on *before* you set the value
of t_Co. Move this:
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
endif
...to the very bottom of your vimrc, and it will work (it did for me).
Cheers,
--
Shawn Walker
_______________________________________________
opensolaris-discuss mailing list
[email protected]