Vi only show 16 lines, how to show full screen?

22,847

Solution 1

  • You may try resizing your terminal to force vim to recalculate its size;
  • You may try quitting your vim session, typing reset and restarting vim;
  • Inside vim you may try something like: :set lines=34

Solution 2

Use the following commands to enable the full screen:

export TERM=xterm
stty rows 36 cols 150

Solution 3

I had the same issue in a docker container, I did that:

export set LINES=58

Solution 4

reopen your vim session after entering "resize" command in your linux terminal. It worked for me.

Share:
22,847

Related videos on Youtube

TheOneTeam
Author by

TheOneTeam

I am an software engineer.

Updated on September 18, 2022

Comments

  • TheOneTeam
    TheOneTeam over 1 year

    enter image description here

    My vim only show 16 lines, using terminator, how can i make it back to full screen? It is very annoying. Don't know what settings has to change.

    • romainl
      romainl almost 11 years
      Outside of Vim, what is the output of $ echo $LINES and $ echo $TERM?
  • Ravindra Bawane
    Ravindra Bawane about 7 years
    What does this setting actually do?
  • AstraSerg
    AstraSerg almost 6 years
    This will set fixed number of lines. But auto size is needed.
  • KC Baltz
    KC Baltz almost 6 years
    FYI, the current workaround for this issue in Docker seems to be to resize your window. For some reason, it's not getting the dimensions initially but a change to the window will get passed on.
  • p._phidot_
    p._phidot_ almost 5 years
    can you share some examples of the 'resize' commands used?