I am using neovim-qt but cannot figure out how to set the size of the window. I tried:
nvim-qt -h
nvim-qt --help
nvim-qt --width=80
nvim-qt --geom 80x120
But nothing gave me any indication as to how to do it. The wiki is equally unhelpful.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI am using neovim-qt but cannot figure out how to set the size of the window. I tried:
nvim-qt -h
nvim-qt --help
nvim-qt --width=80
nvim-qt --geom 80x120
But nothing gave me any indication as to how to do it. The wiki is equally unhelpful.
Oh look, --geometry
is a QT GUI application's main settings thus
nvim-qt --geometry 500x320
will create a windows just big enough to have 24 lines of 80 characters.
you can create a shortcut for nvim-qt.vim and change the target to something like C:\tools\neovim\Neovim\bin\nvim-qt.exe -qwindowgeometry 1030x608
and the window becomes the size you specified.
By changing the command via regedit, you are able to use the aforementioned qwindowgeometry
flag without having to create a new shortcut.
To set the startup width and size you can open regedit (win +r
, type regedit
) and go to
Computer\HKEY_CLASSES_ROOT\Applications\nvim-qt.exe\shell\open\command
and change it to something like "C:\Program Files\nvim\bin\nvim-qt.exe" "%1" -qwindowgeometry 1024x768
Remember to close regedit to have the change applied.
Tip from post in referenced issue 108: How should window resizing behave?