it made me surprise a little. the default value of bufhidden is ""(none).
when the value of bufhidden is "" vim does work like the value of bufhidden
is "hide". but it unloaded the syntax-highlighting.
thank you very much.
be happy.

2009/2/7 Tony Mechelynck <[email protected]>

>
> On 07/02/09 07:27, Dewr wrote:
> > it keeps its filetype even if you didn't give ":setlocal bufhidden=hide".
> > anyway! Vim keeps syntax-highlighting when I've used ":setlocal
> > bufhidden=hide" before I use "bnext"|"bprevious".
> >
>
> Then I think it's working as it should (though it may surprise you). If
> you "hide" the buffer, it keeps everything. If you "unload" it, some of
> the information (including, maybe, the buffer-local 'syntax' set by
> hand) gets lost.
>
> Another way to keep everything is to use split-windows or tab pages.
> When not in use, it is possible to reduce a split-window to only a
> status line and nooothing else (if 'winminheight' is zero) and a tab
> page to even less than that.
>
> Best regards,
> Tony.
> --
> Five is a sufficiently close approximation to infinity.
>                -- Robert Firth
>
> >
>

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

Raspunde prin e-mail lui