简体   繁体   English

vim:更改显示编号

[英]vim: Change display number

How do I tell tell vim to use a non-default display number. 我该如何告诉vim使用非默认显示号。 The searches I've done so far just show me line numbers, which is not what I want. 到目前为止,我所做的搜索仅显示行号,这不是我想要的。 The xserver crashed and restarted, so I'm not on the default display, but instead am on :2. xserver崩溃并重新启动,因此我不在默认显示器上,而是在:2上。 I would have assumed it would be something like :set display=:2 , but that is not the case. 我本来以为会像:set display=:2 ,但是事实并非如此。

显示错误

Check that the terminal the vim was invoked from has the correct value in the DISPLAY environment variable and restart vim. 检查从其调用vim的终端在DISPLAY环境变量中的值是否正确,然后重新启动vim。 Vim will use the display number from that variable. Vim将使用该变量的显示编号。

I don't see a way of changing the display without restarting vim and will accept that over this current answer. 我看不到在不重新启动vim的情况下更改显示的方法,因此在当前答案中仍会接受。

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

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