diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-13 19:04:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-13 19:04:51 +0100 |
commit | 9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f (patch) | |
tree | 905ddef78df904d3060bd749cf4c073dbeb1de78 /runtime/doc | |
parent | 86edef664efccbfe685906c854b9cdd04e56f2d5 (diff) | |
download | vim-9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f.zip |
patch 7.4.1558
Problem: It is not easy to find out what windows display a buffer.
Solution: Add win_findbuf().
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 6e18df45f..14607310c 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2149,6 +2149,7 @@ values( {dict}) List values in {dict} virtcol( {expr}) Number screen column of cursor or mark visualmode( [expr]) String last visual mode used wildmenumode() Number whether 'wildmenu' mode is active +win_findbuf( {bufnr}) List find windows containing {bufnr} win_getid( [{win} [, {tab}]]) Number get window ID for {win} in {tab} win_gotoid( {expr}) Number go to window with ID {expr} win_id2tabwin( {expr}) List get tab and window nr from window ID @@ -7176,6 +7177,10 @@ wildmenumode() *wildmenumode()* (Note, this needs the 'wildcharm' option set appropriately). +win_findbuf({bufnr}) *win_findbuf()* + Returns a list with window IDs for windows that contain buffer + {bufnr}. When there is none the list is empty. + win_getid([{win} [, {tab}]]) *win_getid()* Get the window ID for the specified window. When {win} is missing use the current window. |