From fef8ee23c05eb8023931a35584acdfa0c756208c Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 26 Nov 2019 15:35:56 +0000 Subject: [PATCH] Add default # and * binding with vi(1) keys. --- key-bindings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/key-bindings.c b/key-bindings.c index a2534b44..175af8f4 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -402,6 +402,8 @@ key_bindings_init(void) "bind -Tcopy-mode C-Up send -X scroll-up", "bind -Tcopy-mode C-Down send -X scroll-down", + "bind -Tcopy-mode-vi '#' send -FX search-backward '#{copy_cursor_word}'", + "bind -Tcopy-mode-vi * send -FX search-forward '#{copy_cursor_word}'", "bind -Tcopy-mode-vi C-c send -X cancel", "bind -Tcopy-mode-vi C-d send -X halfpage-down", "bind -Tcopy-mode-vi C-e send -X scroll-down",