5

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.


See issue 108: How should window resizing behave?.

1

3 Answers 3

3

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.

2

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.

0

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?

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.