Ever wanted to switch between tmux sessions or windows seamlessly, inside vim? Well, today is the day, folks!
- tmux session list and switch
- tmux windows list and switch
- tmux command list and execute(interactively)
- tmux buffer list and paste
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']
"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]
" Change Tmux sessions with CtrlP
nnoremap <Leader>s :CtrlPTmux<CR>