Ⅰ. 插件描述
plugin for combining tabs in vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'benatkin/vim-move-between-tabs'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'benatkin/vim-move-between-tabs'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'benatkin/vim-move-between-tabs'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/benatkin/vim-move-between-tabs
Ⅳ. 文档说明
# vim-move-between-tabs
This plugin is for moving the current window between tabs.
- To move the buffer from the current window to a window in the previous tab, call
MoveToPrevTabor use the mappingtP. - To move to the next tab, use
MoveToNextTabortN. - To prevent the mappings from being set, set
g:surround_no_mappingsbefore the plugin is loaded.
If there is a tab in the direction the buffer is being moved to, the current
buffer will be added above the bottom right window on the adjacent tab.
If there isn't a tab in the direction the buffer is being moved to, a
new tab will be created.
Credits
Original implementations from:
- vim wiki - function source (slightly modified)
- chillu's dotfiles - the bindings
LICENSE
Licensed under the same terms as Vim itself.