Sometime, we come across an issue where VIM only occupies just part of the available terminal screen space. We usually encounter this issue when we ‘
ssh‘ into a remote machine and run VIM. This is because the terminal reported wrong number of rows and columns to the VIM editor.
As a fix for this issue, execute the command: ‘
resize‘ (without quotes) on the terminal prompt and rerun VIM.