diff options
author | jing <lhchenjw@gmail.com> | 2021-04-24 23:09:31 +0800 |
---|---|---|
committer | jing <lhchenjw@gmail.com> | 2021-05-06 23:44:47 +0800 |
commit | f6518e55164be3fd2d10bf7738c5d76970fb8d79 (patch) | |
tree | c6e0c17250995dae14848b44c7ff17d395e25ea3 /runtime | |
parent | bb7d3790bf08b5519623d261d8235bad77b5c0dd (diff) | |
download | rneovim-f6518e55164be3fd2d10bf7738c5d76970fb8d79.tar.gz rneovim-f6518e55164be3fd2d10bf7738c5d76970fb8d79.tar.bz2 rneovim-f6518e55164be3fd2d10bf7738c5d76970fb8d79.zip |
vim-patch:8.1.1418: win_execute() is not implemented yet
Problem: Win_execute() is not implemented yet.
Solution: Implement it.
https://github.com/vim/vim/commit/868b7b6712ea4f2232eeeae18c5cbbbddf2ee84d
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index b8dcfd0ff4..4d6de151f9 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2498,6 +2498,8 @@ visualmode([expr]) String last visual mode used wait({timeout}, {condition}[, {interval}]) Number Wait until {condition} is satisfied wildmenumode() Number whether 'wildmenu' mode is active +win_execute({id}, {command} [, {silent}]) + String execute {command} in window {id} win_findbuf({bufnr}) List find windows containing {bufnr} win_getid([{win} [, {tab}]]) Number get |window-ID| for {win} in {tab} win_gettype([{nr}]) String type of window {nr} @@ -3616,6 +3618,8 @@ execute({command} [, {silent}]) *execute()* Note: If nested, an outer execute() will not observe output of the inner calls. Note: Text attributes (highlights) are not captured. + To execute a command in another window than the current one + use `win_execute()`. exepath({expr}) *exepath()* Returns the full path of {expr} if it is an executable and @@ -9477,6 +9481,12 @@ wildmenumode() *wildmenumode()* < (Note, this needs the 'wildcharm' option set appropriately). +win_execute({id}, {command} [, {silent}]) *win_execute()* + Like `execute()` but in the context of window {id}. + The window will temporarily be made the current window, + without triggering autocommands. + Example: > + call win_execute(winid, 'syntax enable') win_findbuf({bufnr}) *win_findbuf()* Returns a list with |window-ID|s for windows that contain |