Ⅰ. 插件描述
Automatically syncs registers between vim instancesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ardagnir/united-front'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ardagnir/united-front'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ardagnir/united-front'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ardagnir/united-front
Ⅳ. 文档说明
united-front
United-front will automatically share the registers of any and/or all vim instances.
"Buffer separately, but yank together!"<br/>
-- Leon Robotsky
All vim instances that you want to share registers need to be started in server mode.
GVim does this automatically, but terminal vim must be told to do this.
vim --servername whateveryouwant
If you alias the vim command to always use a server, everything will be automatic and you can spend more time editing with your awesome new shared registers.
alias vim="vim --servername robotsky"
If you only want some of your vim servers united, only source united-front for those vim servers.
Installation
From your shell, with pathogen:
cd ~/.vim/bundle
git clone https://github.com/ardagnir/united-front
Or from within vim, using vizardry:
:Invoke united-front
Notes
- United-front will create a file $HOME/.unitedfront that is used to sync registers.
- United-front will lower vim's updatetime. Updatetime is also used for vim's swap files, so this has the side effect of increasing how often your swap files are saved.
License
United-front is licensed under the AGPL v3