Ⅰ. 插件描述
Enhance and extend the functionality of vim native tabs.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'quanhengzhuang/vim-tabplus'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'quanhengzhuang/vim-tabplus'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'quanhengzhuang/vim-tabplus'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/quanhengzhuang/vim-tabplus
Ⅳ. 文档说明
# tabplus.vim
Enhance and extend the functionality of vim native tabs.
Installation
Plug 'quanhengzhuang/vim-tabplus'Plugin 'quanhengzhuang/vim-tabplus'Features
- Tab moves: Tab can move forward or backward.
- Tab reopen: Reopen the recently closed tab.
- Tab close: Close one tab, even the last tab. (Vim itself does not support closing the last one)
Usage
Commands provided:
:TabreopenReopen the recently closed tab;:TabclosedView recently closed tab list;:TabcloseClose the entire tab, including all split screens;:TabmovePreviousMove the current tab to the next one;:TabmoveNextMove the current tab to the previous one;
The following shortcuts are recommended:
map <silent> <leader>u :Tabreopen<CR>
map <silent> <leader>U :Tabclosed<CR>
map <silent> Q :Tabclose<CR>
map <silent> <leader>H :TabmovePrevious<CR>
map <silent> <leader>L :TabmoveNext<CR>