summaryrefslogtreecommitdiffstats
path: root/tmux.conf
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-05-19 13:58:34 -0400
committerJesse Luehrs <doy@tozt.net>2018-05-19 14:00:51 -0400
commit18132d7281dddd98f8dcc298ec742a02ed278d86 (patch)
treec6caf7d4a137273fb022e89bce664336fbea46b2 /tmux.conf
parent9bc6c48a082657e9985b266170c0dc8d799ba328 (diff)
downloadconf-18132d7281dddd98f8dcc298ec742a02ed278d86.tar.gz
conf-18132d7281dddd98f8dcc298ec742a02ed278d86.zip
make copy-mode keybindings a bit more vim-like
Diffstat (limited to 'tmux.conf')
-rw-r--r--tmux.conf5
1 files changed, 5 insertions, 0 deletions
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