在Vim中打开许多选项卡时加载时间很慢 [英] Slow loading time when many tabs are open in vim

查看:115
本文介绍了在Vim中打开许多选项卡时加载时间很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名标签ho积者。我平均大约有30个标签在gVim中打开。随着更多标签页的打开,通过 tabedit 打开文件的速度逐渐变慢。好像gVim会在打开一个新的选项卡之前循环浏览打开的每个选项卡。因为,滚动条在加载时闪烁,并且每个开关似乎对应于一个打开的选项卡。 (例如,水平分割中的两个缓冲区有两个滚动条)这是一个错误吗?是否可以使其仅跳至其选项卡然后打开文件?
如果我通过 tabnew 打开文件,然后 edit 则不会遇到延迟。
这是我的.vimrc副本

I am a tab hoarder. I have about 30 tabs open in gVim on average. As more tabs are open, it gets progressively slower to open a file via tabedit. It seems as though gVim cycles through every single tab that is open before opening a new one. Because, the scroll bar flickers while loading and each switch seems to corresponds to a tab that is open. (e.g. Two buffers in horizontal split has two scroll bars) Is this behavior a bug? Would it be possible to make it just jump to its tab and then open the file? If I open file via tabnew then edit it does not suffer the delay. Here is the copy of my .vimrc.

推荐答案

没有:tabopen 命令。

在新标签页中打开文件的规范命令为:

The canonical command for opening a file in a new tab is:

:tabe[dit] filename

请参见:帮助标签页

由于其设计,Vim的标签对文件/缓冲区的使用不佳。我建议您使用其他方法来管理多个缓冲区,请参见:帮助缓冲区

Because of their design, Vim's tabs are poor proxies for files/buffers. I'd suggest you use a different method for managing multiple buffers, see :help buffers.

这篇关于在Vim中打开许多选项卡时加载时间很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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