10
12

More than 5 years have passed since last update.

tmuxのバッファ内容をVIMで開く

Posted at

シェルから下記コマンドを入力するだけの簡単なお仕事です。

tmux capture-pane -S -10000\; show-buffer | vim +10000 -Rc 'set ts=8 nolist nonu' -

alias例

~/.zshrc
alias zp="tmux capture-pane -S -10000\; show-buffer | vim +10000 -Rc 'set ts=8 nolist nonu' -"
# vimshellを導入している人向け(シンタックスハイライトが付きます)
alias zp="tmux capture-pane -S -10000\; show-buffer | vim +10000 -Rc 'set ft=vimshell ts=8 nolist nonu' -"
10
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
12