Vim:是否可以使用垂直选项卡列表? [英] Vim: Is vertical tab list possible?

查看:110
本文介绍了Vim:是否可以使用垂直选项卡列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在编辑器的左侧垂直显示vim的选项卡列表?

Is it possible to have vim's tab list presented vertically on the left side of the editor?

这真的很有帮助,但是我还没有找到任何可以做到这一点的插件. (我在Google上吮吸吗?)

It'd be really helpful, but I haven't managed find any plugins that can do this yet. (do i suck at google?)

推荐答案

对于选项卡的使用,我同意Randy的看法.但是我前段时间也在寻找在gvim中使用垂直制表符的可能性.为此,您必须修改源.对于gvim,由于gtk_notebook窗口小部件用于选项卡,因此不需要太多工作.对于vim来说,可能还有很多工作要做. 您可以在此处找到我制作的补丁/黑客程序. .我评论了有关窗口高度的一些信息,并添加了一个hbox和一个vbox来将gui.tabline放在我想要的位置(在左侧).我将标签长度设置为最大宽度,以设置最大标签尺寸. 它符合我的需求,但实际上只是一个hack,并不打算进行很好的编程.

I would agree with Randy about the use of tabs. But I also looked for the possibility to have vertical tabs in gvim some time ago. To do this you have to modify the sources. For gvim, it's not too much work since the gtk_notebook widget is used for the tabs. For vim, it might be quite some more work. You can find the patch/hack I've made here. I commented some stuff regarding the height of the window, and added a hbox and a vbox to put the gui.tabline where I wanted it (on the left side). I set the label length to a maximum width to set a maximum tab size... It fits my needs but it really is just a hack and doesn't intent to be nicely programmed.

很抱歉,它不是插件,并且不适用于vim,但是如果您确实需要此功能,则切换到gvim可能没有太大区别.

I'm sorry, it's not a plugin and it does not apply to vim, but if you really need this feature, switching to gvim might not be too much of a difference.

这篇关于Vim:是否可以使用垂直选项卡列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆