ctrlp-tmux.vim
ctrlp-tmux.vim copied to clipboard
switch between tmux sessions with ctrlp!
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>
