A community-driven vim distribution
vim#window API provides some basic functions for setting and getting config of vim window.
let s:WINDOW = SpaceVim#api#import('vim#window') " if you want to change the cursor to [10, 3] in window winid call s:WINDOW.set_cursor(s:winid, [10, 3]) " of cause, you can get the cursor for a window let cursorpos = s:WINDOW.get_cursor(s:winid)
here is a list of functions implement in this api. When Vim has python or lua support, some of these functions are better experienced
||Gets the cursor position in the window.|
||Sets the cursor position in the window.|
Hosted on GitHub, Help improve this page — Theme by mattgraham,