简体   繁体   English

在屏幕内设置vim的高度

[英]Setting vim's height inside screen

I have what I thought to be a pretty good terminal workflow going. 我有一个非常不错的终端工作流程。 I set up screen to split horizontally, and then resize the bottom portion to ten lines. 我将屏幕设置为水平分割,然后将底部的尺寸调整为十行。 But when opening up vim on the upper portion, content is cut off from the top because vim thinks that my window height is 100%, when really it's window height - 10 lines (being taken up from the bottom screen). 但是当在上部打开vim时,内容从顶部被切断,因为vim认为我的窗口高度是100%,而实际上是窗口高度-10行(从底部屏幕上取下)。

How can I tell vim that it should only display window height - 10 lines of space? 我怎么能告诉vim它应该只显示窗口高度-10行空间?

Here is my .screenrc: 这是我的.screenrc:

startup_message off
chdir /var/www/
screen -t "Development"
split
focus
chdir ~/
screen -t "Shell"
resize 10
focus

As a side note, for what it's worth I'm SSHing into a remote server from Mac OS X 10.8 using terminal. 附带说明一下,我值得使用终端从Mac OS X 10.8 SSH连接到远程服务器。

通过altscreen on我的.screenrc中添加altscreen on来解决

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

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