On Mar 30, 10:38 pm, Charles Campbell <charles.e.campb...@nasa.gov>
wrote:
> Clark J. Wang wrote:
> > On Mar 27, 7:16 pm, "Clark J. Wang" <dearv...@gmail.com> wrote:
>
> >> 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

The following steps can reproduce the issue for vim 7.2.69:

vim -u NONE -N
:set laststatus=2
:set statusline=%{winnr()}
:vsplit
:split

I tested with an old vim-6.3.30 on Fedora 3 but it worked fine so
different versions of vim behave differently.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to