Re: How to close a window by window number?
- Eric Siegel wrote:
> Awesome,I agree that its inconsistent that wincmd c doesn't accept a count.
> Your fix works mostly. The only problem is that the window numbers change after you perform the close. I simply kept the original buffer name around and checked its window after the close.
> Thanks everyone for the help!
> I can't believe how inconsistent vimscript can be.
> We need a standard library.
However, I'd expect that, if it did accept a count, that it would simply
perform [count] window closes, which would not be the same as closing
the window with winnr() of [count].
As far as window numbers changing after the close is performed - that's
what I'd expect.
At least w:vars seem to stick with the logical window that they were
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.