summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2019-11-26 15:35:56 +0000
committernicm <nicm>2019-11-26 15:35:56 +0000
commitfef8ee23c05eb8023931a35584acdfa0c756208c (patch)
tree31dc377c69f5bfe81f9247aa22f1079a7fc6b7ce /key-bindings.c
parent58f870ef6ec4b9dfb5646cf4eafabaac6ea125bc (diff)
Add default # and * binding with vi(1) keys.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c2
1 files changed, 2 insertions, 0 deletions
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",