How to remove the last empty line in vim?

Viewed 69

Is there a way to remove the last empty line in vim? I mean the line at the bottom of the window, below the line in which I type the command with the colon symbol (see the image Line2Remove).

1 Answers

Type the following command, and check what it returns:

:set cmdheight

If it's greater than 1, set it to 1:

:set cmdheight=1
Related