简体   繁体   English

隐藏 vim 命令行

[英]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.我知道这有点强迫症,但现在我已经欺骗了我的 vim 和 tmux 配置,我很好奇是否有可能在不使用时折叠空的 vim cmdline。 It just sits there taking up a precious line of vertical real-estate!它只是坐在那里占据了一条宝贵的垂直房地产线!

Vim cmdline 是一个总的空间猪

From :help cmdheight : 来自: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. set cmdheight参数必须为正,所以不,不可能隐藏cmdline。

In Vim 9.0.0114 and Neovim 0.8 (prerelease) , set cmdheight=0 hides the command line.Vim 9.0.0114Neovim 0.8 (prerelease)中, set cmdheight=0隐藏命令行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM