0

The vim documentation of the Python interface to vim mentions:

The height attribute is writable only if the screen is split horizontally. The width attribute is writable only if the screen is split vertically.

It seems to assume that a split has already been made. But I did not find on that page is how to split a window using python.

So my question is how does one split a python window horizontally/vertically using python?

1

:py vim.command("sp") did it for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.