In :help -w, I read:
-w {number}
-w{number} Set the 'window' option to {number}.
Yet, trying it, I don't see 'window' being set by this command line flag.
Instead, 'window' is always set from the terminal size:
$ vim --clean -w 10
:echo &window
59
:echo &lines
60
Expected behavior
vim --clean -w 10 should set 'window' to 10.
However, I don't really see the need for this command line parameter.
Why not just do vim --clean -c 'set window=10' instead?
I also don't see this behavior of -w {nr} documented when doing vim --help.
So perhaps we're better off removing the code and documentation of -w {nr}
if it does not work anyway? It could break compatibility with older vim
but I suspect that nobody uses it if it does not work.
Environment
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
looks like this is always reset at win_new_shellsize. I am in favor of removing it, since nobody complained about this not working and it removes an ambiguity with the -w option