1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00

docs(vim#window): fix type in :h SpaceVim-api-vim-window

This commit is contained in:
Shidong Wang 2021-10-22 23:07:42 +08:00
parent 3895d20589
commit b014a7e6c3
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 33 additions and 33 deletions

View File

@ -7,7 +7,7 @@
"=============================================================================
""
" @section vim#buffer, api-vim-window
" @section vim#window, api-vim-window
" @parentsection api
" @subsection Intro
"

View File

@ -221,10 +221,10 @@ CONTENTS *SpaceVim-contents*
12. time.............................................|SpaceVim-api-time|
13. unicode#box...............................|SpaceVim-api-unicode-box|
14. vim#buffer.................................|SpaceVim-api-vim-buffer|
15. vim#buffer.................................|SpaceVim-api-vim-window|
16. vim#command...............................|SpaceVim-api-vim-command|
17. vim#compatible.........................|SpaceVim-api-vim-compatible|
18. vim#message...............................|SpaceVim-api-vim-message|
15. vim#command...............................|SpaceVim-api-vim-command|
16. vim#compatible.........................|SpaceVim-api-vim-compatible|
17. vim#message...............................|SpaceVim-api-vim-message|
18. vim#window.................................|SpaceVim-api-vim-window|
9. Development................................................|SpaceVim-dev|
1. commit-style-guide..................|SpaceVim-dev-commit-style-guide|
10. FAQ.......................................................|SpaceVim-faq|
@ -5104,34 +5104,6 @@ is a dict with following keys:
cmd: the ex command which will be run after the new buffer is created
==============================================================================
VIM#BUFFER *SpaceVim-api-vim-window*
INTRO
`vim#window` API provides some basic functions for setting and getting config
of vim window.
FUNCTIONS
get_cursor({winid})
Gets the cursor position in the window {winid}, to get the ID of a window,
checkout |window-ID|.
set_cursor({winid}, {pos})
Sets the cursor position to {pos} in the window {winid}.
is_float({winnr})
Check if the window is a floating windows, return `v:true` if the window
is a floating window.
winexists({winid})
Check if the window with {winid} exists in current tabpage.
==============================================================================
VIM#COMMAND *SpaceVim-api-vim-command*
@ -5193,6 +5165,34 @@ echo({hi}, {msg})
print message with {hi} highlight group.
==============================================================================
VIM#WINDOW *SpaceVim-api-vim-window*
INTRO
`vim#window` API provides some basic functions for setting and getting config
of vim window.
FUNCTIONS
get_cursor({winid})
Gets the cursor position in the window {winid}, to get the ID of a window,
checkout |window-ID|.
set_cursor({winid}, {pos})
Sets the cursor position to {pos} in the window {winid}.
is_float({winnr})
Check if the window is a floating windows, return `v:true` if the window
is a floating window.
winexists({winid})
Check if the window with {winid} exists in current tabpage.
==============================================================================
DEVELOPMENT *SpaceVim-dev*