tmux vim 导致无法使用 ctrl l 清屏

警告
本文最后更新于 2022-09-13,文中内容可能已过时。

conflicts with clear screen #9

Since I misunderstood README and lost a bit of time figuring this out, I want to clarify what can be done to restore behavior.

  1. If you use tpm, put restoring bind after calling package manager:
1
2
run '~/.tmux/plugins/tpm/tpm'
bind-key -n C-l if-shell "$is_vim" "send-keys C-l"  "send-keys C-l"

(if you don’t use tpm - just do not put “bind-key -n C-l” line in config)

  1. Do this part of README in vimrc (also wo C-l line)
1
2
3
4
5
let g:tmux_navigator_no_mappings = 1

nnoremap <silent> <C-h> :TmuxNavigateLeft<cr>
nnoremap <silent> <C-j> :TmuxNavigateDown<cr>
nnoremap <silent> <C-k> :TmuxNavigateUp<cr>

相关内容

william 支付宝支付宝
william 微信微信
0%