VIM 项目和选项卡
是否有可能将项目插件与选项卡结合起来?
如果我在项目资源管理器中打开一个文件,我想在新选项卡中打开它......:)
Is there a possibility to combine the Project Plugin with Tabs?
If i open a file in my Project Explorer, i want to open it in a new tab ... :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
你必须自己破解这个插件(我认为这不会很困难)或者给作者发电子邮件并恳请他这样做。
我还建议 NERDTree 作为项目替代品(它可以打开文件在选项卡中)。
You have to hack this plugin yourself (I do not think it would be difficult) or email the author and kindly ask him to do it.
I would also suggest NERDTree as a Project replacement (it can open files in tabs).
对于在其他选项卡中打开项目文件使用
领导者T
\T
For open file of project in other tab use
Leader T
\T
我也有同样的问题。 现在我已经学会了使用缓冲区。
为了扩展上面的缓冲区,当您打开一个新文件时,项目插件会隐藏以前的文件,但它仍然是一个活动缓冲区。 ':ls' 将列出缓冲区,使用 ':b #' 切换到缓冲区,其中 # 是缓冲区的编号,或者使用 ':sb #' 分割屏幕并打开缓冲区。 不像选项卡那么方便,但它可以工作,直到出现更好的解决方案。
I was having the same issue. For now I'vee learned to use buffers.
To expand on the buffers post above, when you open a new file the Project plugin hides the previous file but it is still an active buffer. ':ls' will list the buffers, switch to a buffer with ':b #' where # is the number of the buffer or split the screen and open a buffer with ':sb #'. Not quite as convenient as tabs but it works until a better solution comes up.
如果您打开一个新的缓冲区窗口,您可以单击在该缓冲区中打开。
If you open a new buffer window, you can click to open in that buffer.
如果您有某种 macVim 或 gVim,您可以在项目树中打开一个查找器/资源管理器窗口,并将文件拖放到窗口/选项卡中。
If you have macVim or gVim of some sort, you can open a finder/explorer window at the project's tree and drag and drop files into windows/tabs.
我也有同样的愿望,所以我创建了一个名为 Vim.ana 的便携式配置。
.vimrc
Sauce on 布局中没有太多不能轻易更改的意见项目主页的
I had this same desire, so I created a portable configuration called Vim.ana.
It doesn't have many opinions that you can't change easily in the
.vimrc
Sauce on layout at the project homepage