vim/nvim not filling windows terminal

Viewed 2443

I'm runing nvim through wsl2 on ubuntu. However if I use the windows terminal nvim or vim will not fill the whole terminal

enter image description here

How can I get rid of those black borders?

It works just fine if I use the Ubuntu terminal. But I'd prefer to use the Windows Terminal enter image description here

3 Answers

In your profile in settings.json add this: "padding" : "0, 0, 0, 0"

This does not appear to be an issue with NVim. The Windows Terminal simply has padding on all the sides of the terminal window, to get rid of it adjust the padding in the terminal settings.json file. Here is a breakdown of all the text configuration settings.

With "padding": "0" I still got the black bar on the right, to get rid of it set "scrollbarState": "hidden"

Related