summaryrefslogtreecommitdiffstats
path: root/mode-key.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-04-05 18:55:38 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-04-05 18:55:38 +0000
commitf16ea60cc0eceeb1e0bd580129d99aff4423ec19 (patch)
tree2493da8ff9c3f8fe49ae7f053e8d4d51ae734a7b /mode-key.c
parentf8a218882af6dbdbf0fb8edb0db2962c3eb095a4 (diff)
Bind C-u to delete-line in vi mode like ksh does, suggested by thib.
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mode-key.c b/mode-key.c
index 1edccbef..823c4429 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -123,6 +123,7 @@ const struct mode_key_cmdstr mode_key_cmdstr_copy[] = {
const struct mode_key_entry mode_key_vi_edit[] = {
{ '\003' /* C-c */, 0, MODEKEYEDIT_CANCEL },
{ '\010' /* C-h */, 0, MODEKEYEDIT_BACKSPACE },
+ { '\025' /* C-u */, 0, MODEKEYEDIT_DELETELINE },
{ '\011' /* Tab */, 0, MODEKEYEDIT_COMPLETE },
{ '\033' /* Escape */, 0, MODEKEYEDIT_SWITCHMODE },
{ '\r', 0, MODEKEYEDIT_ENTER },