On 06/02/09 11:14, Lech Lorens wrote:
> 2009/2/6 Dewr<[email protected]>:
>> Thank you, Tony. but my Vim works well when it is working with _vimrc or
>> blahblah.vim.
>> I just wanted Vim to keep the syntax-highlighting made by ':setlocal
>> filetype=vim'. but Vim loses syntax-highlighting when ':bnext'|':bprevious'
>> command is given.
>> I thought it's a bug. isn't it a bug?
>
> It is not. :help 'ft' states that 'ft' is local to a buffer. When you
> do :bnext, you change the buffer, so the value of 'ft' changes as
> well. Seems logical to me.
>

yes, but when he does :bnext _followed by :bprev_, doesn't he go back to 
the former buffer? Or has that buffer been unloaded in the meantime and 
its filetype lost? Hm, that could be a possibility. 듀르、 if you use 
":setlocal bufhidden=hide" on the first buffer (before using ":bnext"), 
does it keep its filetype then?


Best regards,
Tony.
-- 
It is an important and popular fact that things are not always what
they seem.  For instance, on the planet Earth, man had always assumed
that he was more intelligent than dolphins because he had achieved so
much -- the wheel, New York wars and so on -- whilst all the dolphins
had ever done was muck about in the water having a good time.  But
conversely, the dolphins had always believed that they were far more
intelligent than man -- for precisely the same reasons.

Curiously enough, the dolphins had long known of the impending
destruction of the of the planet Earth and had made many attempts to
alert mankind to the danger; but most of their communications were
misinterpreted ...
                -- Douglas Admas "The Hitch-Hikers' Guide To The
                   Galaxy"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui