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.
Related videos on Youtube
Comments
-
TheOneTeam over 1 year
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 almost 11 yearsOutside of Vim, what is the output of
$ echo $LINES
and$ echo $TERM
?
-
-
Ravindra Bawane about 7 yearsWhat does this setting actually do?
-
AstraSerg almost 6 yearsThis will set fixed number of lines. But auto size is needed.
-
KC Baltz almost 6 yearsFYI, 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_ almost 5 yearscan you share some examples of the 'resize' commands used?