On 15-Oct-09 12:05, mobi phil wrote: > Hello, > > This is related to my prev. post, but it is a derived "problem", so I > write a new email. > > I changed a bit my "monster" vim configurations, and intended to add > some info to the statusline. > > However the statusline format become dependent on filetype, so I > wonder if it would not be clever, > to be able to define a statusline depending on buffer, sthg. like: > > set b:statusline=...... > > of course there is a workaround (which I applied), by defining > autocommands, that would change the > statusline depending the buffer type you enter. But that is less > comfortable... I think any other buffer > related stuff could be seen as redundant if we consider the AU > commands, but defining > things (like keymapping) that is buffer specific is much more > confortable than to create the AU "hell"
'statusline' already is local to window (via :setlocal), that's why it cannot be local to buffer. Local to window is more flexible than local to buffer (you can display the same buffer in two windows with different "views", including different statuslines), but means you have to use autocmds (or evaluate a buffer-variable inside a statusline-expression) to change 'statusline' depending on the buffer. In my opinion, a necessary disadvantage, so grind your teeth and get over it :-) You must have a pretty advanced Vim setup (I have, too), so you should be used to those kinds of workarounds, anyway. Your proposed b:statusline syntax is a kind of mixture of setting and buffer-variable, and would be very confusing to Vim users. -- cheers, ingo -- -- Ingo Karkat -- /^-- /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ -- -- http://vim.sourceforge.net/account/profile.php?user_id=9713 -- --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
