Ver código fonte

Fix tmux finally, forgot to install tmux plugins... sigh

Kevin Heinicke 8 anos atrás
pai
commit
7c92194e53
2 arquivos alterados com 4 adições e 11 exclusões
  1. 1 5
      nvimrc
  2. 3 6
      tmux.conf

+ 1 - 5
nvimrc

@@ -55,11 +55,7 @@ set clipboard=unnamed
 map j gj
 map k gk
 
-" navigate split panes with ctrl-h/j/k/l
-nnoremap <c-j> <c-w>j
-nnoremap <c-k> <c-w>k
-nnoremap <c-l> <c-w>l
-nnoremap <c-h> <c-w>h
+nnoremap <silent> <BS> :TmuxNavigateLeft<cr>
 
 set relativenumber  " aka :set rnu
 

+ 3 - 6
tmux.conf

@@ -5,17 +5,14 @@ set -g @plugin 'tmux-plugins/tpm'
 set -g @plugin 'tmux-plugins/tmux-sensible'
 set -g @plugin 'christoomey/vim-tmux-navigator'
 
-# Clear the pane and it's history
-bind -n C-k send-keys C-l \; clear-history
-
-# C-l is taken over by vim style pane navigation
-bind C-l send-keys 'C-l'
-
 # try to use correct colors
 set -g default-terminal screen-256color
 
 # reload tmux config
 bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
 
+# rebind some clear history command
+bind-key C-l send-keys C-l \; clear-history
+
 # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
 run '~/.dotfiles/external/tpm/tpm'