Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
tmux を実行していて、「ls」を使用して画面に何かを取得するとします。次に、Vim に入ってファイルを編集します。Vim を終了した後、tmux は bash プロンプトの上にあるテキストをすべて消去します (プロンプトが同じ場所に留まるため、clear コマンドとは異なります)。
この動作を防ぐ方法はありますか? OS X の Terminal.app で tmux 1.3 を使用しています。
のバージョンにこのオプションがある場合は、この行を:tmuxに追加します。~/.tmux.conf
tmux
~/.tmux.conf
set-window-option -g alternate-screen on
これを .vimrc ファイルに入れてみてください:
set t_ti= t_te=