Ⅰ. 插件描述
Support loading files into a VIM tabⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/gvimext-dll-support-tabs-under-vim-7'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/gvimext-dll-support-tabs-under-vim-7'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/gvimext-dll-support-tabs-under-vim-7'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/gvimext.dll--support-tabs-under-VIM-7
Ⅳ. 文档说明
Update: if you want to always open files in a tab, there is a simple solution with no need for a custom gvimext.dll. Add the below entry to .vimrc file:
autocmd BufReadPost * tab ball
This is a tip by "jackal" from the below link:
http://stackoverflow.com/questions/1891513/can-i-force-gvim-to-open-dragged-in-files-in-a-new-tab
--- The below instructions are needed if you want to switch between tab and no tab. ---
Important: this update only applies to VIM 7.
This update to gvimext.dll supports the loading of files under a new tab in VIM 7. Both the gvimext.dll and its updated source codes are provided in the attached zip file.
I believe this code change will be included in the upcoming VIM release. So this upload is for the brave and the impatient.
Below is the usage:
0. The new dll will display "Edit with ... using tabs" options upon right-click on files in Windows Explorer based on a registry key and the Shift key combination.
1. If you don't import UseTab.reg file into registry, gvimext.dll will behave just like before the change. You can still get the "using tabs" options by holding down the Shift key before right-clicking the files.
2. Shift key effect
Shift key serves as a toggle key for the "Edit with ... using tabs" context menu. If you hold down the Shift key and then right-click the selected files in Windows Explorer, the opposite of the default Vim context menu will display.
Once the Vim content menu displays, you don't need to hold down the Shift key anymore. Its effect will hold until the next Right-Click.