Clark J. Wang wrote:
> On Mar 27, 7:16 pm, "Clark J. Wang" <[email protected]> wrote:
>
>> On Mar 27, 6:42 pm, Tim Chase <[email protected]> wrote:
>>
>>
>>> What are you trying to do that involves splits and redraws?
>>>
>>> -tim
>>>
>> I included %{winnr()} in the var `statusline'. But sometimes when I
>> splitted new windows the winnr() string on screen was not updated
>> (try :vsplit and then :split). So I want to call `redraw' when I split
>> new windows but I failed to find an autocmd for that.
>>
> Any idea?
>
Hello:
I don't see any problems with %{winnr()}. I'm normally use a rather
more involved statusline setting than just %{winnr()}, but with just
:set stl=%{winnr()}
:vsplit
:split
the window numbers are all updated properly. I then used:
vim -u NONE -N
:set nocp
:filetype plugin on
:set stl=%{winnr()}
:vsplit
:split
and, again, all the window numbers are updated properly (without
recourse to ctrl-l or :redraw).
So: please give a detailed sequence of commands that causes a lack of
updated status line(s), preferably using vim -u NONE -N to avoid any
entanglements with your current .vimrc settings.
Regards,
Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---