I am using
terminator as terminal emulator. Terminator allows to increase/decrease font size and also modifies the $COLUMNS and $LINES environment variables properly. Less and nano seem to understand this change and display long files properly. But vi/vim does not seem to pick up this change and does not layout well (it does not display from the first line of the file).
Please look at the picture below to see the problem:
At the time of issue, the values of relevant environment variables are,
$ echo $LINES 47 $ echo $COLUMNS 198
ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - enhanced vi editor ii terminator 0.96-0ubuntu1 multiple GNOME terminals in one window