9

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

JangoCG
  • 823
  • 10
  • 23

6 Answers6

7

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

apena
  • 2,091
  • 12
  • 19
5

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

noen
  • 346
  • 3
  • 10
4

Actually,I set "padding": "0" and scrollbarState": "hidden".

It shows here.

There is still a distance at the bottom of Windows terminal where the content is never displayed.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
f7kyyy
  • 41
  • 1
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.

0

It occured to me recently, but I found a way to deal with it.
Open the settings.json and then add "padding": "0, 0, 0, -3",.

At least it works for me.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 20 '23 at 03:37
0

On Windows Terminal Preview

  1. Go to Settings > Profiles > YOUR_TERMINAL > APPEARANCE
  2. Set Padding to 0
  3. Set Scrollbar Visibility hidden
  4. Hit save.

Like so:

Windows Terminal Ubuntu Profile

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Rovaris
  • 1
  • 1