2016-04-29 33 views
1

我使用 vimtmux 如何取消映射<Ctrl> + <Shift> +在TMUX

我試圖映射

nmap <c-Tab> :bnext<CR>       
nmap <c-S-Tab> :bprevious<CR> 

,但意識到這是ridiculously difficult所以我停了下來。

現在我成功了以下4 VIM和VIM地圖+ TMUX:

nmap <c-left> :bprevious <CR> 
nmap <c-right> :bnext <CR>  
nmap <c-S-left> <c-w>h 
nmap <c-S-right> <c-w>l 

但那些以下2 vim本身的工作,但在vimtmux

nmap <c-S-up> <c-w>k 
nmap <c-S-down> <c-w>j 

不工作當我這樣做時,「tmux窗口正在向上/向下移動」。

=>這是一個tmux「問題」,我不使用這個tmux功能,所以我想在tmux中解除這些組合(Ctrl + Shift + Up/Down)(我認爲它會在VIM)。我該怎麼做 ?

EDIT1:我.tmux.conf

# Use <C-a> instead of the default <C-b> as Tmux prefix 
set-option -g prefix C-a 
unbind-key C-b 
bind-key C-a send-prefix 

# This option with vim set term=xterm-256color allow CTRL mappings 
set-option -gw xterm-keys on 

# Options to enable mouse support in Tmux 
set -g terminal-overrides 'xterm*:[email protected]:[email protected]' 
# For Tmux >= 2.1 
set -g mouse on 

# Escape time for libtermkey 
# (see https://github.com/neovim/neovim/issues/2035): 
set -sg escape-time 10 

# Act more like vi: 
set-window-option -g mode-keys vi 
bind h select-pane -L 
bind j select-pane -D 
bind k select-pane -U 
bind l select-pane -R 
unbind p 
bind p paste-buffer 
bind -t vi-copy v begin-selection 
bind -t vi-copy y copy-selection 
+0

嘗試:nunmap SibiCoder

+0

?在vim中?不應該是'.tmux.conf'屬性 – statquant

回答

2

您是否嘗試過在你的tmux.conf做:

unbind-key C-S-Up 
unbind-key C-S-Down