今回はwinwidthです。
winwidth({nr}) *winwidth()*
The result is a Number, which is the width of window {nr}.
{nr} can be the window number or the |window-ID|.
When {nr} is zero, the width of the current window is
returned. When window {nr} doesn't exist, -1 is returned.
An existing window always has a width of zero or more.
/tmp $ vim
:echo winwidth(0)

80が返ってきましたが、タイトルバーにあるように80×24なので、widthは80文字ですね。
左右で画面スプリットします。
:vs

それぞれのwinwidthを確認。
:windo winwidth(win_getid())

それぞれのウィンドウ幅が返ってきました。


コメント