Selaa lähdekoodia

More tmuxination

Kevin Heinicke 8 vuotta sitten
vanhempi
commit
667c50afa5
2 muutettua tiedostoa jossa 9 lisäystä ja 10 poistoa
  1. 3 0
      nvimrc
  2. 6 10
      tmux.conf

+ 3 - 0
nvimrc

@@ -48,6 +48,9 @@ set path+=**
 " Make watchdogs possible
 set backupcopy=yes
 
+" see https://github.com/tmux/tmux/issues/543
+set clipboard=unnamed
+
 " jump between split lines
 map j gj
 map k gk

+ 6 - 10
tmux.conf

@@ -5,21 +5,17 @@ set -g @plugin 'tmux-plugins/tpm'
 set -g @plugin 'tmux-plugins/tmux-sensible'
 set -g @plugin 'christoomey/vim-tmux-navigator'
 
-# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
-run '~/.dotfiles/external/tpm/tpm'
-
 # Clear the pane and it's history
 bind -n C-k send-keys C-l \; clear-history
 
-# smart pane switching with awareness of vim splits
-bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
-bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
-bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
-bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
-bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
-
 # 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"
+
+# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
+run '~/.dotfiles/external/tpm/tpm'