From ffd2404eff77118630b1ab92af9a075941b02200 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 25 Jan 2023 23:08:59 +0200 Subject: Fixed vim-tmux settings --- .config/tmux/tmux.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config/tmux/tmux.conf') diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 76d1203..c7c30f4 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -101,11 +101,13 @@ if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \ if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \ "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'" +# Copy Mode vi-directional keys bind-key -T copy-mode-vi 'C-h' select-pane -L bind-key -T copy-mode-vi 'C-j' select-pane -D bind-key -T copy-mode-vi 'C-k' select-pane -U bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l + # Change horizontal split % and Vertical split " to h and v respectively and change current working directory bind v split-window -h -c "#{pane_current_path}" bind h split-window -v -c "#{pane_current_path}" @@ -229,7 +231,7 @@ set -g @plugin "christoomey/vim-tmux-navigator" # for neovim set -g @resurrect-strategy-nvim "session" # Automatic restore - set -g @continuum-restore "on" +# set -g @continuum-restore "on" # Change default save and restore keybindings set -g @resurrect-save "W" set -g @resurrect-restore "E" -- cgit v1.2.3