From 5a7d648c17316f70e903b9b6718c972de6a9df97 Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 23 Mar 2026 20:12:32 +0800 Subject: add mac dotfiles for vim and tmux --- core/mac/.tmux.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 core/mac/.tmux.conf (limited to 'core/mac/.tmux.conf') diff --git a/core/mac/.tmux.conf b/core/mac/.tmux.conf new file mode 100644 index 0000000..fc4b931 --- /dev/null +++ b/core/mac/.tmux.conf @@ -0,0 +1,11 @@ +# Vi mode for copy +setw -g mode-keys vi + +# Mouse selection +set -g mouse on + +# v to start selection, y to yank (like vim) +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy" +bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy" +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" -- cgit