about summary refs log tree commit diff
path: root/Src/Zle/zle_keymap.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-11-21 01:08:25 +0100
committerOliver Kiddle <opk@zsh.org>2014-11-21 11:40:00 +0100
commit58da0f495cdf2bbef6a7043f5f06c77991c79a9e (patch)
tree76a1b58d876f394eab08cdbbb6f66251e235895a /Src/Zle/zle_keymap.c
parent0151ab07491f6a0532d3c283752ad864252fc654 (diff)
downloadzsh-58da0f495cdf2bbef6a7043f5f06c77991c79a9e.tar.gz
zsh-58da0f495cdf2bbef6a7043f5f06c77991c79a9e.tar.xz
zsh-58da0f495cdf2bbef6a7043f5f06c77991c79a9e.zip
33730: vim style text objects for selecting words
Diffstat (limited to 'Src/Zle/zle_keymap.c')
-rw-r--r--Src/Zle/zle_keymap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index 216e302d0..30d25ebaa 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -1343,6 +1343,12 @@ default_bindings(void)
 	add_cursor_key(kptr, TCDOWNCURSOR, t_downline, 'B');
 	bindkey(kptr, "k", refthingy(t_upline), NULL);
 	bindkey(kptr, "j", refthingy(t_downline), NULL);
+	bindkey(kptr, "aa", refthingy(t_selectashellword), NULL);
+	bindkey(kptr, "ia", refthingy(t_selectinshellword), NULL);
+	bindkey(kptr, "aw", refthingy(t_selectaword), NULL);
+	bindkey(kptr, "iw", refthingy(t_selectinword), NULL);
+	bindkey(kptr, "aW", refthingy(t_selectablankword), NULL);
+	bindkey(kptr, "iW", refthingy(t_selectinblankword), NULL);
     }
     /* escape in operator pending cancels the operation */
     bindkey(oppmap, "\33", refthingy(t_vicmdmode), NULL);