On Sun, 17 Jan 2010 18:06:29 +0100
Tony Mechelynck <[email protected]> wrote:
> Like Ben said, I suspect that you're doing ":syntax on" (which reloads
> the colorscheme if any, and if none, the compiled-in defaults) after
> your ":hi" statements, so that the latter are overriden.
No! As I mentioned in the first email, what has me confused about this is that
this is TWO identical versions of vim running the EXACT SAME .vimrc, which I
have been using for years (literally) on FC10 (and before that...). It's only
on ubuntu (9.10) that I get this strange behavior.
And the file I'm now sourcing is just that same .vimrc with a new name, so my
vimrc is now simply:
source /path/.vim
which it works fine that way...WTF? Anyway, here's what was .vimrc (and now
gets sourced), if anyone can see a problem:
" .vimrc
:syntax enable
command SpellOn setlocal spell spelllang=en_us
command SpellOff setlocal nospell
set number
set nowrap
set bs=indent,eol,start
set list listchars=tab:\|_,trail:-
set tabstop=4
set shiftwidth=4
set wildmenu
set ruler
set virtualedit=all
set hlsearch
set autoload
if SysType == "ubuntu"
set guifont=DejaVuSansMono\ 12
elseif SysType == "fedora"
set guifont=DejaVuLGCSansMono\ 12
endif
au BufNewFile,BufRead *.frag,*.vert,*.glsl setf glsl
au BufNewFile,BufRead *.comp,*.mhtml,index.html setf mason
The "if SysType" bit I just added -- then after this it is just hi colors and
keybindings.
--
MK <[email protected]>
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php