Eric Siegel wrote:
> Awesome,
>
> 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.
>
I agree that its inconsistent that wincmd c doesn't accept a count.
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
created in.
Regards,
Chip Campbell
--
--
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@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, July 24, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment