17

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.

Kit Ho
  • 5,587

5 Answers5

10
  • 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
7

Use the following commands to enable the full screen:

export TERM=xterm
stty rows 36 cols 150
mtak
  • 17,262
4

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

export set LINES=58

2

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

1

In response to "can you share some examples of the 'resize' commands used?", this is what I found.

Using bash on Ubuntu (16.04.1), the "resize" command reports the current terminal window size and seems to show commands to resize the window.

$ resize 
COLUMNS=80;  
LINES=24;  
export COLUMNS LINES;  

I entered that text as a command, and that did not seem to affect the terminal window size nor vi window size. In my Ubuntu terminal window, vi automatically uses the full of the current terminal window, anyway.

On an embedded linux platform (Technologic TS-4900, Yocto Linux), bash shell, "resize" was not recognized. However, the following shell command changed the vi window size for me.

$ stty rows 40 cols 100

Others have instructed to use "export TERM=xterm" first, but that was not necessary for me.

kevin_o
  • 31