Saturday, April 6, 2013

Re: Hidden buffers

On Sat, Apr 06, 2013 at 10:48:37PM +0300, LCD 47 wrote:
> Given a buffer number, is it possible to find out (in Vimscript)
> whether the corresponding buffer is hidden or not?

you can change to said buffer with the buffer command

:buffer <bufno>

then you can test &bufhidden for a null value or any of its other
possibilities (anything other than null will mean it's hidden)

if &bufhidden == ""
do unhidden stuff
else
do hidden stuff
endif

this help at all?

--
--
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.

No comments:

Post a Comment