Parker Ault
Parker Ault

Reputation: 3446

Hide vim cmdline

I know this is a little OCD, but now that I've tricked out my vim and tmux configs, I'm curious if it's possible to collapse the empty vim cmdline when not in use. It just sits there taking up a precious line of vertical real-estate!

Vim cmdline being a total space hog

Upvotes: 2

Views: 1609

Answers (3)

anton
anton

Reputation: 1

But in Vim 9.0.0340 it was removed again.

Upvotes: 0

Cyrus Yip
Cyrus Yip

Reputation: 649

In Vim 9.0.0114 and Neovim 0.8 (prerelease), set cmdheight=0 hides the command line.

Upvotes: 0

imbichie
imbichie

Reputation: 1616

From :help cmdheight:

'cmdheight' 'ch'        number  (default 1)
                        global
                        {not in Vi}
Number of screen lines to use for the command-line.  Helps avoiding
hit-enter prompts.
The value of this option is stored with the tab page, so that each tab
page can have a different value.

set cmdheight argument must be positive, so no, it's not possible to hide the cmdline.

Upvotes: 9

Related Questions