I am trying to use PYthon to interface with VIM in my vimrc. I am aware that
this can be done in vimrc
in VIML, but I don't want to learn VIML too much,
and am already familiar with Python
.
I looked into some of the examples here: http://vimhelp.appspot.com/if_pyth.txt.html#python-window
Its mentioned here the width
is a parameter of any window
object.
However, when I do py3 print(dir(vim.current.window))
, it gives me the
following output:
['__dir__', 'buffer', 'col', 'cursor', 'height', 'number', 'options', 'row',
'tabpage', 'v alid', 'vars']
.
This doesn't contain width
as one of the attributes
of current.window
,
however, when I use the following ex
command:
:py3 print(vim.current.window.width)
It does give me a output of 90
, so it seems width
is indeed an attribute of
vim.current.window
.
Is this a bug or how this is supposed to happen?