[vim/tmux]works together

This commit is contained in:
Mathieu Maret 2016-09-01 10:11:55 +02:00
parent e7d09a7879
commit 6f5d14f372
2 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,8 @@ set-option -g visual-bell on
#bind-key -t vi-copy PPage page-up #bind-key -t vi-copy PPage page-up
#bind-key -t vi-copy NPage page-down #bind-key -t vi-copy NPage page-down
set-window-option -g xterm-keys on
set -g mouse on set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M bind -n WheelDownPane select-pane -t= \; send-keys -M

3
.vimrc
View File

@ -561,4 +561,7 @@ Plugin 'gregkh/kernel-coding-style.git'
" Web browsing " Web browsing
Plugin 'yuratomo/w3m.vim' Plugin 'yuratomo/w3m.vim'
" Recognize Key in screen/tmux
Plugin 'drmikehenry/vim-fixkey'
call vundle#end() call vundle#end()