Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'derekprior/tmux-vim-select-pane'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'derekprior/tmux-vim-select-pane'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'derekprior/tmux-vim-select-pane'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/derekprior/tmux-vim-select-pane
Ⅳ. 文档说明
# tmux-vim-select-pane
Deprecated
This script should no longer be necessary. It's possible to inline the
script directly into the tmux configuration using tmux if-shell commands. For
more on this approach see the thoughtbot blog post or the readme
for vim-tmux-navigator. Issue with inline scripting can be opened
in the vim-tmux-navigator repository.
Overview
This is a repackaging of the split pane switching script used in
Mislav Marohnić's tmux-navigator configuration described in this
gist.
Installation
Please note that this is only the script used to switch panes. To fully enable
this functionality you will need to follow the instructions below (assumes
homebrew and vundle).
- Install tmux-vim-select-pane:
brew install
https://raw.github.com/derekprior/tmux-vim-select-pane/master/tmux-vim-select-pane.rb- Add the vim-tmux-navigator plugin to vim:
Bundle 'christoomey/vim-tmux-navigator'- Add the following configuration to your
~/.tmux-confconfiguration
# Smart pane switching with awareness of vim splits
bind -n C-k run-shell 'tmux-vim-select-pane -U'
bind -n C-j run-shell 'tmux-vim-select-pane -D'
bind -n C-h run-shell 'tmux-vim-select-pane -L'
bind -n C-l run-shell 'tmux-vim-select-pane -R'
bind -n "C-\\" run-shell 'tmux-vim-select-pane -l'Manual Installation
If you are not a homebrew user, you can download bin/tmux-vim-select-pane from
this repository, add it to a directory in your path and mark it as executable.
vim-tmux-navigator has pathogen installation instructions in its readme.