ctrlp-tmux.vim icon indicating copy to clipboard operation
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!

asciicast

Feature

  1. tmux session list and switch
  2. tmux windows list and switch
  3. tmux command list and execute(interactively)
  4. 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>