On Wed, 27 Dec 2017, Yegappan Lakshmanan wrote:

If there is only one window in the tab page, then this function will return a list with a window identifier.

If there is more than one window in the tab page, then this function will return a list where the first item is either "row" (for vertically split windows) or "col" (for horizontally split windows). The second item is a list of window identifiers or additional lists.

For example, for two horizontally split windows, this function will return ['col', [1000, 1001]]

For two vertically split windows, this function will return ['row', [1000, 1001]]

For three horizontally split windows, with two vertically split windows in the middle window, this function will return:
['col', [1002, ['row', [1003, 1001]], 1000]]

Do you think this function will be useful?

I do like this idea, as I've wanted something like it in the past. But I also think a corresponding function that can take lists like this and re-create the layout would be useful.

- Christian

--
Christian J. Robinson <hept...@gmail.com>
Veni, Vidi, Velcro: I Came, I saw, I stuck around.

--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui