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 Answer 1

1

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

1
  • didn't work in python 8.1. I guess it need 8.2 or newer
    – wander95
    Oct 27, 2020 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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