Wednesday, October 26, 2011

Re: :bd makes syntax highlight of the next window unavailable

Peng Yu wrote the following on 25.10.2011 22:25

Hello

-- <snip> --

>>>> I'm glad it works, but something is wrong here.

-- <snip> --

>> It seems tabbar.vim is involved, though i haven't currently figured how. Peng do
>> you also have tabbar.vim installed?
>
> No. I have the following packages installed. Does anybody know which
> one might cause the problem?

-- <snip> --

hmm it seems we do not have any plugins in commen. Though i can reproducible get
the error if i have 'set nohidden' and tabbar.vim, then open one file
'vim foo' and an other ':e bar' then ':bd'.
I have noticed not all buffers get syntax turned off, but instead if you have
three, or four files open it is reproducible the last but one that get turned
off and that even with ':echo syntax_on' = 1 in that buffer. And if you have
some other files open and switch between them syntax highlighting is turned on
again in the buffer when switching back.

Tabbar.vim has a comment saying:

,----[ tabbar.vim ]--------

" VIM sometimes turns syntax highlighting off,
" we can force it on, but this may cause weird
" behavior so this is an optional hack to force
" syntax back on when we enter a buffer
if g:Tb_ForceSyntaxEnable
if g:Tb_DBG_LVL > 0
call <SID>DEBUG('Tb_AutoUpdt: Enable Syntax', 9)
endif
exec 'syntax enable'
endif

`---------------------------------------------
This is with vim 7.2.445.
Can someone test with a up to date vim to see if it happens there, too?

--
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: