From 18132d7281dddd98f8dcc298ec742a02ed278d86 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 19 May 2018 13:58:34 -0400 Subject: make copy-mode keybindings a bit more vim-like --- tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index d889bcb..b8bb589 100644 --- a/tmux.conf +++ b/tmux.conf @@ -38,6 +38,11 @@ bind ^[ copy-mode bind { copy-mode bind Enter run 'tmux capture-pane -p | perl -MURL::Search -E"say for URL::Search::extract_urls(do { local \$/; <> })" | tail -n1 | xargs xdg-open' +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel +bind -T copy-mode-vi ) send-keys -X start-of-line +bind -T copy-mode-vi _ send-keys -X back-to-indentation + unbind ^B # set up default sessions -- cgit v1.2.3-54-g00ecf