Ⅰ. 插件描述
Bring all remote Vim window buffers together in one Vim window.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/allbufferstoonewindow-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/allbufferstoonewindow-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/allbufferstoonewindow-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/AllBuffersToOneWindow.vim
Ⅳ. 文档说明
Usage:
This script adds one new command ":AllBuffersToOneWindow".
You can use the ":AllBuffersToOneWindow" command to load buffers that are
loaded in remote Vim window in main Vim window.
1. Run Vim application (process A), and edit File1, File2, FIle3.
2. Run Vim application (process B), and edit File4, File5
3. Run Vim application (process C), and input ":AllBuffersToOneWindow"
command.
4. Input ":buffers" command. (Vim application process C)
File1, File2, File3, File4 and File5 are added to buffer list.
Note:
o To run this script, Vim needs to be compiled with "+clientserver" option.
o If buffer is file and can be read, buffer will be loaded in main Vim window.
o If buffer is already loaded in main window, buffer will not be loaded.