summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-02-06 23:46:56 +0200
committerDrNuget <drnuget@outlook.com>2025-02-06 23:46:56 +0200
commitd25a662b22aaa4301799c35d55202675ca6fb144 (patch)
treea4f852e1bb08c162a6c3f81b627d4fbc2c43f0c6
parent83f0cb6b6fac669ad0f7f9520d2b82f75fe81a0c (diff)
tmux.conf add visual mode and yank bind
-rw-r--r--.tmux.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/.tmux.conf b/.tmux.conf
index cf53d41..6005506 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -3,7 +3,9 @@ bind m split-window -v
bind r source-file ~/.tmux.conf
set -g status-fg white
set -g status-bg black
-set-window-option -g mode-keys vi
+setw -g mode-keys vi
+bind-key -T copy-mode-vi 'v' send -X begin-selection
+bind-key -T copy-mode-vi 'y' send -X copy-selection
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator