Ⅰ. 插件描述
switch between tmux sessions with ctrlp!Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lucidstack/ctrlp-tmux-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lucidstack/ctrlp-tmux-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lucidstack/ctrlp-tmux-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lucidstack/ctrlp-tmux.vim
Ⅳ. 文档说明
# ctrlp-tmux.vim
Ever wanted to switch between tmux sessions or windows seamlessly, inside vim? Well, today is the
day, folks!
Feature
- tmux session list and switch
- tmux windows list and switch
- tmux command list and execute(interactively)
- tmux buffer list and paste
Installation
Use your favourite method to get this repository.
Add tmux to g:ctrlp_extensions in your .vimrc(optional).
" example
let g:ctrlp_extensions = ['buffertag', 'tag', 'tmux']Usage
"w for select windows
"s for select sessions
"c for tmux command
"ci same as above,but allow user input thr argument of command
"b for tmux buffer
"bracket mean optional.Operation type is sessions without any argument.
:CtrlPTmux [s|w|c|ci|b](Optional) Add a leader shortcut
" Change Tmux sessions with CtrlP
nnoremap <Leader>s :CtrlPTmux<CR> 